55 lines
2 KiB
Nix
55 lines
2 KiB
Nix
{...}: {
|
|
services.sxhkd = {
|
|
enable = true;
|
|
keybindings = {
|
|
# Terminal emulators
|
|
"super + Return" = "wezterm";
|
|
"super + shift + Return" = "xfce4-terminal --drop-down";
|
|
|
|
# Launcher
|
|
"super + @space" = "rofi -show drun";
|
|
|
|
# bspwm hotkeys
|
|
"super + Escape" = "pkill -USR1 -x sxhkd";
|
|
"super + alt + {q,r}" = "bspc {quit,wm -r}";
|
|
"super + {_,shift + }q" = "bspc node -{c,k}";
|
|
"super + m" = "bspc desktop -l next";
|
|
"super + g" = "bspc node -s biggest";
|
|
|
|
# State/Flags
|
|
"super + {t,shift + t,s,f}" = "bspc node -t {tiled,pseudo_tiled,floating,fullscreen}";
|
|
|
|
# Focus/Scap
|
|
"super + {_,shift + }{h,j,k,l}" = "bspc node -{f,s} {west,south,north,east}";
|
|
"super + {_,shift + }{Left,Down,Up,Right}" = "bspc node -{f,s} {west,south,north,east}";
|
|
#"super + {p,b,comma,period}" = "bspc node -f @{parent,brother,first,second}";
|
|
"super + {_,shift + }c" = "bspc node -f {next,prev}.local.!hidden.window";
|
|
"super + {_,shift + }bracket{left,right}" = "bspc {desktop -f,node -d} {prev,next} --follow";
|
|
"super + {_,shift + }{comma,period}" = "bspc {monitor -f,node -m} {prev,next} --follow";
|
|
"super + {grave,Tab}" = "bspc {node,desktop} -f last";
|
|
"super + {_,shift + }{1-9,0}" = "bspc {desktop -f,node -d} '^{1-9,10}' --follow";
|
|
|
|
# Preselect
|
|
"super + ctrl + {h,j,k,l}" = "bspc node -p {west,south,north,east}";
|
|
"super + ctrl + {1-9}" = "bspc node -o 0.{1-9}";
|
|
"super + ctrl + space" = "bspc node -p cancel";
|
|
"super + ctrl + shift + space" = "bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel";
|
|
|
|
# screenshot
|
|
"Print" = "flameshot gui";
|
|
|
|
# Shortcuts
|
|
"super + w" = "firefox";
|
|
"super + e" = "thunar";
|
|
"super + p" = "i3lock";
|
|
|
|
# Volume control keys
|
|
"XF86AudioMute" = "pamixer -t";
|
|
"XF86AudioRaiseVolume" = "pamixer -i 2";
|
|
"XF86AudioLowerVolume" = "pamixer -d 2";
|
|
"XF86MonBrightnessUp" = "xbacklight +10";
|
|
"XF86MonBrightnessDown" = "xbacklight -10";
|
|
};
|
|
};
|
|
}
|