nix/home/config/sway/module/System.nix

21 lines
760 B
Nix
Raw Normal View History

2024-08-20 20:24:43 +03:00
{ ... }: let
mod = "print";
2024-09-12 01:03:30 +03:00
brstep = 5;
2024-05-09 00:20:56 +03:00
in {
text = ''
bindsym ${mod} input * xkb_switch_layout 0
bindsym --to-code ${mod}+c exec 'systemctl reboot -i'
bindsym --to-code ${mod}+l exec 'powerlimit toggle'
bindsym --to-code ${mod}+p exec 'powersave toggle'
2024-08-20 11:27:59 +03:00
bindsym --to-code ${mod}+r exec 'swayscript reload'
bindsym --to-code ${mod}+v exec 'swayscript vpntoggle'
bindsym --to-code ${mod}+x exec 'systemctl poweroff -i'
bindsym --to-code ${mod}+z exec 'systemctl suspend -i'
2024-09-12 01:03:30 +03:00
bindsym --to-code ${mod}+w exec light -U ${toString brstep}
bindsym XF86MonBrightnessDown exec light -U ${toString brstep}
bindsym --to-code ${mod}+s exec light -A ${toString brstep}
bindsym XF86MonBrightnessUp exec light -A ${toString brstep}
2024-05-09 00:20:56 +03:00
'';
}