let swayidle lock the screen

master
lub 3 years ago
parent cb3784ffd1
commit b6755842ee

@ -2,8 +2,5 @@
set -e
grim - | convert - -scale 50% -blur 0x20 -fill black -colorize 50% /tmp/lockscreen.png
swaylock -i /tmp/lockscreen.png &
if [ 'suspend' = "$1" ]; then
systemctl suspend
fi
swaylock -i /tmp/lockscreen.png
rm /tmp/lockscreen.png

@ -227,13 +227,14 @@ client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
client.background #ffffff
bindsym $mod+ctrl+shift+l exec 'lockscreen'
bindsym $mod+ctrl+alt+shift+l exec 'lockscreen suspend'
smart_gaps on
gaps inner 2
default_border pixel 4
bindsym $mod+ctrl+shift+l exec 'lockscreen'
bindsym $mod+ctrl+alt+shift+l exec 'systemctl suspend'
exec swayidle -w before-sleep 'lockscreen'
exec --no-startup-id nextcloud
bindsym XF86AudioPrev exec --no-startup-id 'rhythmbox-client --no-start --previous'

Loading…
Cancel
Save