Better keybindings
This commit is contained in:
parent
001e245efc
commit
f99c04c847
1 changed files with 9 additions and 12 deletions
|
|
@ -1,31 +1,27 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
|
home.packages = with pkgs; [ playerctl pcmanfm pamixer kitty terminator update-background xorg.xbacklight lockscreen ];
|
||||||
services.sxhkd =
|
services.sxhkd =
|
||||||
let
|
let
|
||||||
primaryTerminal = "kitty";
|
primaryTerminal = "kitty";
|
||||||
secondaryTerminal = "terminator";
|
secondaryTerminal = "terminator";
|
||||||
pcmanfm = "${pkgs.pcmanfm}/bin/pcmanfm";
|
fileManager = "pcmanfm -n";
|
||||||
playerctl = "${pkgs.playerctl}/bin/playerctl";
|
|
||||||
pamixer = "${pkgs.pamixer}/bin/pamixer";
|
|
||||||
terminator = "${pkgs.terminator}/bin/terminator";
|
|
||||||
update-backgroundCmd = "${pkgs.update-background}/bin/update-background";
|
|
||||||
xbacklight = "${pkgs.xorg.xbacklight}/bin/xbacklight";
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
keybindings = {
|
keybindings = {
|
||||||
"super + b" = update-backgroundCmd;
|
"super + b" = "update-background";
|
||||||
"super + alt + {h,j,k,l}" = "bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}";
|
"super + alt + {h,j,k,l}" = "bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}";
|
||||||
"super + alt + {q,r}" = "bspc {quit,wm -r}";
|
"super + alt + {q,r}" = "bspc {quit,wm -r}";
|
||||||
"super + alt + shift + {h,j,k,l}" = "bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 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 + alt + m" = "${pkgs.lockscreen}/bin/lockscreen";
|
"super + alt + m" = "lockscreen";
|
||||||
"super + bracket{left,right}" = "bspc desktop -f {prev,next}.local";
|
"super + bracket{left,right}" = "bspc desktop -f {prev,next}.local";
|
||||||
"super + ctrl + {1-9}" = "bspc node -o 0.{1-9}";
|
"super + ctrl + {1-9}" = "bspc node -o 0.{1-9}";
|
||||||
"super + ctrl + {h,j,k,l}" = "bspc node -p {west,south,north,east}";
|
"super + ctrl + {h,j,k,l}" = "bspc node -p {west,south,north,east}";
|
||||||
"super + ctrl + {m,x,y,z}" = "bspc node -g {marked,locked,sticky,private}";
|
"super + ctrl + {m,x,y,z}" = "bspc node -g {marked,locked,sticky,private}";
|
||||||
"super + ctrl + shift + space" = "bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel";
|
"super + ctrl + shift + space" = "bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel";
|
||||||
"super + ctrl + space" = "bspc node -p cancel";
|
"super + ctrl + space" = "bspc node -p cancel";
|
||||||
"super + e" = "${pcmanfm} -n";
|
"super + e" = fileManager;
|
||||||
"super + Escape" = "pkill -USR1 -x sxhkd";
|
"super + Escape" = "pkill -USR1 -x sxhkd";
|
||||||
"super + g" = "bspc node -s biggest";
|
"super + g" = "bspc node -s biggest";
|
||||||
"super + {grave,Tab}" = "bspc {node,desktop} -f last";
|
"super + {grave,Tab}" = "bspc {node,desktop} -f last";
|
||||||
|
|
@ -43,9 +39,10 @@
|
||||||
"alt + Tab" = "rofi -show window";
|
"alt + Tab" = "rofi -show window";
|
||||||
"super + {t,shift + t,s,f}" = "bspc node -t {tiled,pseudo_tiled,floating,fullscreen}";
|
"super + {t,shift + t,s,f}" = "bspc node -t {tiled,pseudo_tiled,floating,fullscreen}";
|
||||||
"super + y" = "bspc node newest.marked.local -n newest.!automatic.local";
|
"super + y" = "bspc node newest.marked.local -n newest.!automatic.local";
|
||||||
"{XF86AudioLowerVolume,XF86AudioMute,XF86AudioRaiseVolume}" = "${pamixer} {-d 2,-t,-i 2}";
|
"{XF86AudioLowerVolume,XF86AudioMute,XF86AudioRaiseVolume}" = "pamixer {-d 2,-t,-i 2} && dunstify -r 1 Volume `pamixer --get-volume-human`";
|
||||||
"XF86Audio{Next,Play,Prev}" = "${playerctl} {next,play-pause,previous}";
|
"XF86Audio{Next,Play,Prev}" = "playerctl {next,play-pause,previous}";
|
||||||
"XF86MonBrightness{Up,Down}" = "${xbacklight} {+,-}10%";
|
"super + alt + {Right,Down,Left}" = "playerctl {next,play-pause,previous}";
|
||||||
|
"XF86MonBrightness{Up,Down}" = "xbacklight {+,-}10%";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue