Persist screen brightness, enable universal evdev key/lid wake, and add *+# screenshot combo
This commit is contained in:
1 parent
eef8584a8d
commit
2e2adcc7f2
38 files changed
+574
-161
No files matched your search
@@ -23,7 +23,7 @@ transition() {
|
||||
state="$1"
|
||||
|
||||
sxmo_log "transitioning to stage $state"
|
||||
printf %s "$state" > "$SXMO_STATE"
|
||||
printf '%s\n' "$state" > "$SXMO_STATE"
|
||||
|
||||
lock_shared
|
||||
|
||||
@@ -76,7 +76,7 @@ idle() {
|
||||
|
||||
store() {
|
||||
storeid="$(tr -dc 'a-zA-Z0-9' < /dev/urandom 2>/dev/null | head -c 10)"
|
||||
printf %s "$state" > "$SXMO_STATE.stored.$storeid"
|
||||
printf '%s\n' "$state" > "$SXMO_STATE.stored.$storeid"
|
||||
printf %s "$storeid"
|
||||
}
|
||||
|
||||
@@ -87,7 +87,8 @@ flushstored() {
|
||||
restore() {
|
||||
storeid="$1"
|
||||
if [ -f "$SXMO_STATE.stored.$storeid" ]; then
|
||||
read -r state < "$SXMO_STATE.stored.$storeid" 2>/dev/null || state=""
|
||||
state=""
|
||||
read -r state < "$SXMO_STATE.stored.$storeid" 2>/dev/null || true
|
||||
transition "$state"
|
||||
flushstored
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user