Remake sxhkd shortcuts, add more default monitors
This commit is contained in:
parent
353f307d31
commit
961a02ad16
3
nixos/home-manager/env/bspwm.nix
vendored
3
nixos/home-manager/env/bspwm.nix
vendored
|
@ -16,5 +16,8 @@
|
||||||
startupPrograms = [
|
startupPrograms = [
|
||||||
"kitty"
|
"kitty"
|
||||||
];
|
];
|
||||||
|
monitors = {
|
||||||
|
"primary" = ["I" "II" "III" "IV" "V"];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
86
nixos/home-manager/env/sxhkd.nix
vendored
86
nixos/home-manager/env/sxhkd.nix
vendored
|
@ -3,74 +3,48 @@
|
||||||
services.sxhkd = {
|
services.sxhkd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
keybindings = {
|
keybindings = {
|
||||||
"alt + shift + l" = ''
|
# Terminal emulators
|
||||||
scrot -z /tmp/i3lock.png;\
|
|
||||||
convert /tmp/i3lock.png -blur \"15x12\" /tmp/i3lock.png;\
|
|
||||||
i3lock -i /tmp/i3lock.png;\
|
|
||||||
rm /tmp/i3lock.png
|
|
||||||
'';
|
|
||||||
"super + w" = "firefox";
|
|
||||||
"super + Return" = "kitty";
|
"super + Return" = "kitty";
|
||||||
"alt + shift + Return" = "xfce4-terminal --drop-down";
|
"super + shift + Return" = "xfce4-terminal --drop-down";
|
||||||
"super + f" = "kitty -e ranger";
|
|
||||||
"super + shift + f" = "thunar";
|
# Launcher
|
||||||
"super + @space" = "rofi -show drun";
|
"super + @space" = "rofi -show drun";
|
||||||
"alt + p" = "rofi -show drun";
|
|
||||||
"alt + Tab" = "bspc node -f last.local";
|
# bspwm hotkeys
|
||||||
"super + shift + r" = "pkill -USR1 -x sxhkd";
|
"super + Escape" = "pkill -USR1 -x sxhkd";
|
||||||
"super + {_,shift + }{Left,Down,Up,Right}" = "bspc node -{f,s} {west,south,north,east}";
|
"super + alt + {q,r}" = "bspc {quit,wm -r}";
|
||||||
"super + {_,shift + }q" = "bspc node -{c,k}";
|
"super + {_,shift + }q" = "bspc node -{c,k}";
|
||||||
"alt + Return" = "bspc desktop -l next";
|
"super + m" = "bspc desktop -l next";
|
||||||
# if the current node is automatic, send it to the last manual, otherwise pull the last leaf
|
|
||||||
"super + y" = "bspc query -N -n focused.automatic && bspc node -n last.!automatic || bspc node last.leaf -n focused";
|
|
||||||
# swap the current node and the biggest node
|
|
||||||
"super + g" = "bspc node -s biggest";
|
"super + g" = "bspc node -s biggest";
|
||||||
#
|
|
||||||
# state/flags
|
# State/Flags
|
||||||
#
|
"super + {t,shift + t,s,f}" = "bspc node -t {tiled,pseudo_tiled,floating,fullscreen}";
|
||||||
# set the window state
|
|
||||||
#super + {t,shift + t,s,f}
|
# Focus/Scap
|
||||||
# bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
|
|
||||||
"alt + f" = "bspc node -t \"~\"{floating,tiled}";
|
|
||||||
# set the node flags
|
|
||||||
"super + ctrl + {x,y,z}" = "bspc node -g {locked,sticky,private}";
|
|
||||||
#
|
|
||||||
# focus/swap
|
|
||||||
#
|
|
||||||
# focus the node in the given direction
|
|
||||||
"super + {_,shift + }{h,j,k,l}" = "bspc node -{f,s} {west,south,north,east}";
|
"super + {_,shift + }{h,j,k,l}" = "bspc node -{f,s} {west,south,north,east}";
|
||||||
# focus the node for the given path jump
|
"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 + {p,b,comma,period}" = "bspc node -f @{parent,brother,first,second}";
|
||||||
# focus the next/previous node in the current desktop
|
"super + {_,shift + }c" = "bspc node -f {next,prev}.local.!hidden.window";
|
||||||
"super + {_,shift + }c" = "bspc node -f {next,prev}.local";
|
"super + {_,shift + }bracket{left,right}" = "bspc {desktop,monitor} -f {prev,next}";
|
||||||
# focus the next/previous desktop in the current monitor
|
"super + {_,shift + }{9,0}" = "bspc node {-d,-m} {prev,next} --follow";
|
||||||
"super + {_,shift + }bracket{left,right}" = "bspc {desktop -f,node -d} {prev,next}.local";
|
|
||||||
# focus the last node/desktop
|
|
||||||
"super + {grave,Tab}" = "bspc {node,desktop} -f last";
|
"super + {grave,Tab}" = "bspc {node,desktop} -f last";
|
||||||
# focus the older or newer node in the focus history
|
"super + {_,shift + }{1-8}" = "bspc {desktop -f,node -d} '^{1-8}'";
|
||||||
"super + {o,i}" = "bspc wm -h off\; bspc node {older,newer} -f\; bspc wm -h on";
|
|
||||||
# focus or send to the given desktop
|
# screenshot
|
||||||
"super + {_,shift + }{1-9,0}" = "bspc {desktop -f,node -d} '^{1-9,10}'";
|
"Print" = "flameshot gui";
|
||||||
#
|
|
||||||
# move/resize
|
# Shortcuts
|
||||||
#
|
"super + w" = "firefox";
|
||||||
# expand a window by moving one of its side outward
|
"super + shift + f" = "thunar";
|
||||||
"space + shift + {Left,Down,Up,Right}" = "bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}";
|
"super + f" = "kitty -e ranger";
|
||||||
# contract a window by moving one of its side inward
|
"alt + p" = "rofi -show drun";
|
||||||
"super + alt + shift + {h,j,k,l}" = "bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}";
|
|
||||||
# move a floating window
|
# Volume control keys
|
||||||
#super + {Left,Down,Up,Right}
|
|
||||||
# bspc node -v {-20 0,0 20,0 -20,20 0}
|
|
||||||
## Move floating windows
|
|
||||||
"alt + shift + {Left,Down,Up,Right}" = "bspc node -v {-20 0,0 20,0 -20,20 0}";
|
|
||||||
# volume control keys
|
|
||||||
"XF86AudioMute" = "pamixer -t";
|
"XF86AudioMute" = "pamixer -t";
|
||||||
"XF86AudioRaiseVolume" = "pamixer -i 2";
|
"XF86AudioRaiseVolume" = "pamixer -i 2";
|
||||||
"XF86AudioLowerVolume" = "pamixer -d 2";
|
"XF86AudioLowerVolume" = "pamixer -d 2";
|
||||||
"XF86MonBrightnessUp" = "xbacklight +10";
|
"XF86MonBrightnessUp" = "xbacklight +10";
|
||||||
"XF86MonBrightnessDown" = "xbacklight -10";
|
"XF86MonBrightnessDown" = "xbacklight -10";
|
||||||
# screenshot
|
|
||||||
"Print" = "flameshot gui";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue