mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
removed AFKCommands moved moonfly plugin to correct location switched from alacritty to st
53 lines
2.7 KiB
Nix
53 lines
2.7 KiB
Nix
{
|
|
services.sxhkd = {
|
|
enable = true;
|
|
keybindings = {
|
|
#terminal
|
|
"super + Return" = "st";
|
|
#application launcher
|
|
"super + @space" = "rofi -show drun";
|
|
#kill sxhkd
|
|
"super + Escape" = "pkill -USR1 -x sxhkd";
|
|
#restart bspwm
|
|
"super + alt + {q,r}" = "bspc {quit,wm -r}";
|
|
#kill current windows
|
|
"alt + {F4, shift + F4}" = "bspc node -{c,k}";
|
|
#media keybindings
|
|
"XF86AudioPlay" = "playerctl play-pause";
|
|
"XF86AudioPause" = "playerctl play-pause";
|
|
"XF86AudioStop" = "playerctl stop";
|
|
"XF86AudioNext" = "playerctl next";
|
|
"XF86AudioPrev" = "playerctl previous";
|
|
"XF86AudioRaiseVolume" = "amixer sset Master 40+";
|
|
"XF86AudioLowerVolume" = "amixer sset Master 40-";
|
|
"XF86AudioMute" = "amixer sset Master toggle ";
|
|
"XF86MonBrightnessUp" = "brightnessctl s 20+";
|
|
"XF86MonBrightnessDown" = "brightnessctl s 20-";
|
|
#switch windows
|
|
"alt + Tab" = "~/.config/rofi/window-switcher/window-switcher.sh";
|
|
#screenshot stuff
|
|
"Print" = "maim $HOME/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg";
|
|
"super + Print" = "maim -s $HOME/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg";
|
|
#stuff i'm not so sure about
|
|
"super + m" = "bspc desktop -l next";
|
|
"super + y" = "bspc node newest.marked.local -n newest.!automatic.local";
|
|
"super + g" = "bspc node -s biggest.window";
|
|
"super + {t,shift + t,s,f}" = "bspc node -t {tiled,pseudo_tiled,floating,fullscreen}";
|
|
"super + ctrl + {m,x,y,z}" = "bspc node -g {marked,locked,sticky,private}";
|
|
"super + {_,shift + }{h,j,k,l}" = "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 + bracket{left,right}" = "bspc desktop -f {prev,next}.local";
|
|
"super + {grave,Tab}" = "bspc {node,desktop} -f last";
|
|
"super + {o,i}" = "bspc wm -h off; bspc node {older,newer} -f; bspc wm -h on";
|
|
"super + {_,shift + }{1-9,0}" = "bspc {desktop -f,node -d} '^{1-9,10}'";
|
|
"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";
|
|
"super + alt + {h,j,k,l}" = "bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}";
|
|
"super + alt + shift + {h,j,k,l}" ="bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}";
|
|
"super + {Left,Down,Up,Right}" = "bspc node -v {-20 0,0 20,0 -20,20 0}";
|
|
};
|
|
};
|
|
}
|