add lockscreen command and bindsyms

master
lub 5 years ago
parent faf1093469
commit e3721bc932

@ -0,0 +1,9 @@
#!/bin/bash
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

@ -214,8 +214,8 @@ bar {
}
}
bindsym $mod+ctrl+shift+l exec 'swaylock'
bindsym $mod+ctrl+alt+shift+l exec 'swaylock & systemctl suspend'
bindsym $mod+ctrl+shift+l exec '/home/lub/.bin/lockscreen'
bindsym $mod+ctrl+alt+shift+l exec '/home/lub/.bin/lockscreen suspend'
smart_gaps on
gaps inner 3

Loading…
Cancel
Save