2023-04-04 14:20:49 +01:00
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
services.sxhkd = {
|
|
|
|
enable = true;
|
|
|
|
keybindings = {
|
2023-04-05 09:48:05 +01:00
|
|
|
# Terminal emulators
|
2023-04-04 14:20:49 +01:00
|
|
|
"super + Return" = "kitty";
|
2023-04-05 09:48:05 +01:00
|
|
|
"super + shift + Return" = "xfce4-terminal --drop-down";
|
|
|
|
|
|
|
|
# Launcher
|
2023-04-07 09:42:12 +01:00
|
|
|
"super + @space" = "rofi -show drun";
|
2023-04-05 09:48:05 +01:00
|
|
|
|
|
|
|
# bspwm hotkeys
|
|
|
|
"super + Escape" = "pkill -USR1 -x sxhkd";
|
|
|
|
"super + alt + {q,r}" = "bspc {quit,wm -r}";
|
2023-04-04 14:20:49 +01:00
|
|
|
"super + {_,shift + }q" = "bspc node -{c,k}";
|
2023-04-05 09:48:05 +01:00
|
|
|
"super + m" = "bspc desktop -l next";
|
2023-04-04 14:20:49 +01:00
|
|
|
"super + g" = "bspc node -s biggest";
|
2023-04-05 09:48:05 +01:00
|
|
|
|
2023-04-05 11:17:41 +01:00
|
|
|
# Custom scripts
|
2023-05-16 09:59:04 +01:00
|
|
|
"super + p" = "powermenu";
|
|
|
|
"super + e" = "power-profiles";
|
2023-04-05 11:17:41 +01:00
|
|
|
|
2023-04-05 09:48:05 +01:00
|
|
|
# State/Flags
|
|
|
|
"super + {t,shift + t,s,f}" = "bspc node -t {tiled,pseudo_tiled,floating,fullscreen}";
|
|
|
|
|
|
|
|
# Focus/Scap
|
2023-04-04 14:20:49 +01:00
|
|
|
"super + {_,shift + }{h,j,k,l}" = "bspc node -{f,s} {west,south,north,east}";
|
2023-04-05 09:48:05 +01:00
|
|
|
"super + {_,shift + }{Left,Down,Up,Right}" = "bspc node -{f,s} {west,south,north,east}";
|
2023-04-05 11:17:41 +01:00
|
|
|
#"super + {p,b,comma,period}" = "bspc node -f @{parent,brother,first,second}";
|
2023-04-05 09:48:05 +01:00
|
|
|
"super + {_,shift + }c" = "bspc node -f {next,prev}.local.!hidden.window";
|
2023-04-05 11:17:41 +01:00
|
|
|
"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";
|
2023-04-04 14:20:49 +01:00
|
|
|
"super + {grave,Tab}" = "bspc {node,desktop} -f last";
|
2023-04-05 11:17:41 +01:00
|
|
|
"super + {_,shift + }{1-9,0}" = "bspc {desktop -f,node -d} '^{1-9,10}' --follow";
|
2023-04-05 09:48:05 +01:00
|
|
|
|
2023-04-05 09:53:20 +01:00
|
|
|
# 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";
|
|
|
|
|
2023-04-05 09:48:05 +01:00
|
|
|
# screenshot
|
|
|
|
"Print" = "flameshot gui";
|
|
|
|
|
|
|
|
# Shortcuts
|
|
|
|
"super + w" = "firefox";
|
|
|
|
"super + shift + f" = "thunar";
|
|
|
|
"super + f" = "kitty -e ranger";
|
2023-04-08 10:52:01 +01:00
|
|
|
"super + n" = "thunar";
|
2023-04-05 09:48:05 +01:00
|
|
|
|
|
|
|
# Volume control keys
|
2023-04-04 14:20:49 +01:00
|
|
|
"XF86AudioMute" = "pamixer -t";
|
|
|
|
"XF86AudioRaiseVolume" = "pamixer -i 2";
|
|
|
|
"XF86AudioLowerVolume" = "pamixer -d 2";
|
|
|
|
"XF86MonBrightnessUp" = "xbacklight +10";
|
|
|
|
"XF86MonBrightnessDown" = "xbacklight -10";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|