-
Notifications
You must be signed in to change notification settings - Fork 304
Open
Description
App required : xfce-power-manager , bc
To install : yay -S xfce-power-manager bc
1️⃣ Create the missing key
xfconf-query -c xfce4-session \
-p /general/LockCommand \
-n -t string \
-s "/home/ **username** /.config/bspwm/bin/ScreenLocker"-n/--create– creates the property if it isn’t there.-t string– tells xfconf the value type (a plain string).
You can verify it afterwards:
xfconf-query -c xfce4-session -p /general/LockCommand
# → should output the full path to ScreenLocker2️⃣ Make sure the script is executable
chmod +x /home/ **username** /.config/bspwm/bin/ScreenLocker3️⃣ Configure XFCE‑Power‑Manager to use the lock command
Run xfce4-power-manager-settings on terminal
-
In the System tab, set “When laptop lid is closed” to “Lock screen”.
The power manager will now call the LockCommand you just created.
4️⃣ Test the integration
# Direct test – should show your custom lock screen
/home/ **username** /.config/bspwm/bin/ScreenLocker
# XFCE‑triggered test
xfce4-session-logout --lock
# → same lock screen appears
# Lid‑close test (or simulate)
loginctl lock-session
# → lock screen appearsMetadata
Metadata
Assignees
Labels
No labels