Persist screen brightness, enable universal evdev key/lid wake, and add *+# screenshot combo

This commit is contained in:
Luxferre committed 2026-10-27 22:24:39 +02:00
1 parent eef8584a8d
commit 2e2adcc7f2
38 files changed
+574 -161

No files matched your search

@@ -19,7 +19,8 @@ stop_proximity_lock() {
STATE_FILE="${SXMO_STATE:-$XDG_RUNTIME_DIR/sxmo.state}"
if [ -r "$STATE_FILE" ]; then
read -r CURRENT_STATE < "$STATE_FILE" || CURRENT_STATE=""
CURRENT_STATE=""
read -r CURRENT_STATE < "$STATE_FILE" 2>/dev/null || true
else
CURRENT_STATE="$(sxmo_state.sh get)"
fi
@@ -32,11 +33,6 @@ if [ "$CURRENT_STATE" != "unlock" ] && sxmo_state.sh is_locked; then
else
sxmo_wm.sh display on
fi
if [ -w /sys/class/leds/white:kbd_backlight/brightness ]; then
printf '255' > /sys/class/leds/white:kbd_backlight/brightness 2>/dev/null || true
else
brightnessctl -d white:kbd_backlight set 255 >/dev/null 2>&1 || true
fi
sxmo_state.sh set unlock &
exit 0
;;
@@ -431,7 +427,7 @@ case "$ACTION" in
exit 0
;;
"powerbutton_two")
sxmo_state.sh click 2
sxmo_state.sh set screenoff
exit 0
;;
"powerbutton_three")