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

14 lines
397 B
Nix
Raw Normal View History

{ config, ... }: let
mod = config.setting.sysctrl;
2024-05-09 00:20:56 +03:00
in {
text = ''
2024-05-21 23:12:25 +03:00
bindsym ${mod}+c exec 'systemctl reboot -i'
2024-05-09 00:20:56 +03:00
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'
'';
}