14 lines
397 B
Nix
14 lines
397 B
Nix
{ config, ... }: let
|
|
mod = config.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'
|
|
'';
|
|
}
|