Sway : Lock screen before sleep.
This commit is contained in:
parent
bc04c908f7
commit
714d73eb18
|
@ -1,6 +1,6 @@
|
||||||
{ key, style, ... }: {
|
{ key, style, ... }: {
|
||||||
text = ''
|
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+${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 systemctl poweroff -i'
|
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'
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue