nix/home/file/sway/module/System.nix

26 lines
1,000 B
Nix
Raw Normal View History

{ ... }:
let
brstep = 5;
in
{
text = ''
bindsym $sysmod input * xkb_switch_layout 0
bindsym --to-code $sysmod+a exec 'swayscript network'
bindsym --to-code $sysmod+c exec 'systemctl reboot -i'
bindsym --to-code $sysmod+d exec 'swayscript dnd'
bindsym --to-code $sysmod+g exec 'swayscript gaming'
bindsym --to-code $sysmod+l exec 'powerlimit toggle'
bindsym --to-code $sysmod+m exec 'swayscript monitor'
bindsym --to-code $sysmod+p exec 'powersave toggle'
bindsym --to-code $sysmod+r exec 'swayscript reload'
bindsym --to-code $sysmod+v exec 'swayscript vpn'
bindsym --to-code $sysmod+x exec 'systemctl poweroff -i'
bindsym --to-code $sysmod+z exec 'systemctl suspend -i'
2024-09-12 01:03:30 +03:00
bindsym --to-code $sysmod+w exec light -A ${toString brstep}
bindsym XF86MonBrightnessUp exec light -A ${toString brstep}
bindsym --to-code $sysmod+s exec light -U ${toString brstep}
bindsym XF86MonBrightnessDown exec light -U ${toString brstep}
'';
2024-05-09 00:20:56 +03:00
}