Sway : Lock screen before sleep.

This commit is contained in:
Dmitry Voronin 2024-04-25 04:45:57 +03:00
parent bc04c908f7
commit 714d73eb18
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -1,6 +1,6 @@
{ key, style, ... }: {
text = ''
bindsym $mod+${key.action.wait} exec '_twice 1 swaylock -F -c 000000 -k --font "${style.font.serif.name}" --font-size ${toString(style.font.size.desktop)}'
bindsym $mod+Shift+${key.action.exit} exec '_twice 1 systemctl poweroff -i'
bindsym $mod+${key.action.wait} exec '_twice 1 swaylock -f -F -c 000000 -k --font "${style.font.serif.name}" --font-size ${toString(style.font.size.desktop)}'
bindsym $mod+Shift+${key.action.exit} exec _twice 1 bash -c 'swaylock -f -F -c 000000 -k --font "${style.font.serif.name}" --font-size ${toString(style.font.size.desktop)}; systemctl suspend -i'
'';
}