nix/module/desktop/sway/module/System.nix

14 lines
391 B
Nix

{ setting, ... }: let
mod = setting.sysctrl;
in {
text = ''
bindsym ${mod}+c exec 'systemctl reboot -i'
bindsym ${mod}+l exec 'powerlimit toggle'
bindsym ${mod}+m exec 'swayscript montoggle'
bindsym ${mod}+p exec 'powersave toggle'
bindsym ${mod}+v exec 'swayscript vrrtoggle'
bindsym ${mod}+x exec 'systemctl poweroff -i'
bindsym ${mod}+z exec 'systemctl suspend -i'
'';
}