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

17 lines
603 B
Nix
Raw Normal View History

2024-08-20 20:24:43 +03:00
{ ... }: let
mod = "print";
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}+g exec 'swayscript gamingtoggle'
bindsym --to-code ${mod}+l exec 'powerlimit toggle'
bindsym --to-code ${mod}+m exec 'swayscript montoggle'
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-05-09 00:20:56 +03:00
'';
}