nix/home/config/sway/module/Session.nix

9 lines
319 B
Nix
Raw Normal View History

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 = ''
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
'';
}