2024-12-18 09:40:11 +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
|
2024-10-11 23:27:07 +03:00
|
|
|
{
|
2024-12-18 09:40:11 +03:00
|
|
|
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
|
|
|
}
|