2024-06-25 04:04:39 +03:00
|
|
|
{ config, ... }: let
|
2024-06-29 18:05:39 +03:00
|
|
|
lock = "swaylock -f -F -c 000000 -k --font \"${config.style.font.serif.name}\" --font-size ${toString config.style.font.size.desktop}";
|
2024-04-27 00:45:07 +03:00
|
|
|
in {
|
2024-04-10 11:04:06 +03:00
|
|
|
text = ''
|
2024-07-28 03:51:41 +03:00
|
|
|
bindsym --to-code $mod+z exec '_twice 1 ${lock}'
|
|
|
|
bindsym --to-code $mod+Shift+Z exec _twice 1 bash -c '${lock}; systemctl suspend -i'
|
2024-04-10 11:04:06 +03:00
|
|
|
'';
|
|
|
|
}
|