Activate passcode lockscreen immediately upon GUI startup on boot

This commit is contained in:
Luxferre committed 2026-10-30 09:34:09 +02:00
1 parent 8c2a337c0d
commit 8df412085b
53 files changed
+79 -22

No files matched your search

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -15,6 +15,7 @@ cur_state=""
[ "$cur_state" = "unlock" ] && exit 0
printf '1\n' > /tmp/bananarchy_screen_locked
pkill -STOP -x conky 2>/dev/null || true
if [ -z "$SXMO_DISABLE_LEDS" ]; then
sxmo_led.sh blink blue &
@@ -4,4 +4,4 @@
# Copyright 2022 Sxmo Contributors
sxmo_jobs.sh stop idle_locker 2>/dev/null || true
sxmo_state.sh set unlock &
sxmo_state.sh set lock &
@@ -78,8 +78,9 @@ if sxmo_wakelock.sh isenabled; then
sxmo_wakelock.sh lock sxmo_not_suspendable infinite
fi
# To setup initial unlock state
sxmo_state.sh set unlock
# Activate lockscreen upon GUI startup
printf '1\n' > /tmp/bananarchy_screen_locked
sxmo_state.sh set lock
# Turn on lisgd only on touch devices
if [ -z "$SXMO_NO_VIRTUAL_KEYBOARD" ] && [ ! -e "$XDG_CACHE_HOME"/sxmo/sxmo.nogesture ]; then
@@ -97,6 +98,10 @@ fi
# Start the desktop widget (e.g. clock)
pidof -s conky >/dev/null 2>&1 || DISPLAY=:0 CONKY_DPY=:0 conky -c /home/user/.config/sxmo/conky.conf -d >/dev/null 2>&1 </dev/null || true
if [ -f /tmp/bananarchy_screen_locked ]; then
pkill -STOP -x conky 2>/dev/null || true
xlocker wake >/dev/null 2>&1 &
fi
# It watch network changes and update the status bar icon by example
superctl start sxmo_networkmonitor
@@ -14,6 +14,7 @@ if [ -z "$SXMO_DISABLE_LEDS" ]; then
fi
sxmo_wm.sh display on
pkill -CONT -x conky 2>/dev/null || true
if [ -z "$SXMO_NO_VIRTUAL_KEYBOARD" ]; then
sxmo_wm.sh inputevent touchscreen on
fi