2024-10-11 23:27:07 +03:00
|
|
|
{
|
2024-11-04 04:37:29 +03:00
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
lock = "swaylock -f -F -c 000000 -k --font \"${config.module.style.font.serif.name}\" --font-size ${toString config.module.style.font.size.desktop}";
|
|
|
|
in {
|
|
|
|
text = ''
|
|
|
|
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
|
|
|
}
|