Sxhkd: better shortcuts
This commit is contained in:
parent
55c3f19418
commit
b294eda7a0
1 changed files with 37 additions and 39 deletions
|
|
@ -18,6 +18,8 @@
|
|||
fileManager = "nemo";
|
||||
secondaryFileManager = "nautilus";
|
||||
emojiChooser = "rofimoji --skin-tone light -a copy";
|
||||
windowSwitcher = "rofi -show window";
|
||||
|
||||
arandr = "${pkgs.arandr}/bin/arandr";
|
||||
passwordChoser = "rofi-rbw";
|
||||
notify = "${pkgs.libnotify}/bin/notify-send";
|
||||
|
|
@ -56,50 +58,46 @@
|
|||
{
|
||||
enable = true;
|
||||
keybindings = {
|
||||
"alt + Tab" = "rofi -show window";
|
||||
"Print" = "${pkgs.gnome.gnome-screenshot}/bin/gnome-screenshot";
|
||||
"super + alt + {h,j,k,l}" = "bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}";
|
||||
"super + alt + m" = "lockscreen";
|
||||
"super + alt + p" = "${arandr}";
|
||||
"super + alt + o" = "${moveAllNodesToPrimary}";
|
||||
"super + alt + r" = "${resetBspwm}";
|
||||
"super + alt + shift + {h,j,k,l}" = "bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}";
|
||||
"super + bracket{left,right}" = "bspc desktop -f {prev,next}.local";
|
||||
"super + b" = "${pkgs.update-background}/bin/update-background";
|
||||
"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 + {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 + space" = "bspc node -p cancel";
|
||||
"super + e {_,+shift}" = "{${fileManager},${secondaryFileManager}}";
|
||||
"super + shift + p" = "clipedit";
|
||||
"super + Escape" = "pkill -USR1 -x sxhkd";
|
||||
"super + g" = "bspc node -s biggest";
|
||||
"super + {grave,Tab}" = "bspc {node,desktop} -f last";
|
||||
"super + {h,j,k,l}" = "dir={west,south,north,east}; bspc node -f $dir || bspc monitor -f $dir";
|
||||
"super + {Left,Down,Up,Right}" = "bspc node -v {-20 0,0 20,0 -20,20 0}";
|
||||
"super + m" = "bspc desktop -l next";
|
||||
"super + n {_, + shift}" = "bsp-layout {next, previous}";
|
||||
"super + {o,i}" = "bspc wm -h off;bspc node {older,newer} -f;bspc wm -h on";
|
||||
"super + {p,b,comma,period}" = "bspc node -f @{parent,brother,first,second}";
|
||||
"super + {_,shift + }{1-9,0}" = "bspc {desktop -f,node -d} 'focused:^{1-9,10}'";
|
||||
"super + {_,shift + } c" = "bspc node -f {next,prev}.local";
|
||||
"super + {_,shift + } space" = "rofi -show {drun,run}";
|
||||
"super + shift + ctrl + d" = "rofi -show ssh";
|
||||
"super + alt + e" = emojiChooser;
|
||||
"super + alt + i" = passwordChoser;
|
||||
"super + shift + {h,j,k,l}" = ''dir={west,south,north,east}; bspc node -s "$dir.local" --follow || bspc node -m "$dir" --follow'';
|
||||
"super + {_,shift + } Return" = "{${primaryTerminal} , ${secondaryTerminal}}";
|
||||
"super + {_,shift + } w" = "bspc node -{c,k}";
|
||||
"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";
|
||||
"{,shift+}Print" = "${pkgs.gnome.gnome-screenshot}/bin/gnome-screenshot {-i,-a}";
|
||||
"XF86Audio{LowerVolume,Mute,RaiseVolume}" = "${pamixer} {-d 2 -u,-t,-i 2 -u} && ${notifyVolume}";
|
||||
"XF86Audio{Next,Play,Prev}" = "${playerctl} {next,play-pause,previous}";
|
||||
"super + alt + {Right,Down,Left}" = "${playerctl} {next,play-pause,previous}";
|
||||
"XF86MonBrightness{Up,Down}" = "${xbacklight} -{inc,dec} 10 && ${notifyBrightness}";
|
||||
"XF86PowerOff" = toString powermenu;
|
||||
"button10" = "rofi -show drun";
|
||||
"alt + Tab" = windowSwitcher;
|
||||
"button10" = windowSwitcher;
|
||||
"super + Escape" = "pkill -USR1 -x sxhkd";
|
||||
"super + alt + e" = emojiChooser;
|
||||
"super + alt + i" = passwordChoser;
|
||||
"super + alt + m" = "lockscreen";
|
||||
"super + alt + o" = "${moveAllNodesToPrimary}";
|
||||
"super + alt + p" = "${arandr}";
|
||||
"super + alt + r" = "${resetBspwm}";
|
||||
"super + alt + shift + {h,j,k,l}" = "bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}";
|
||||
"super + alt + {Right,Down,Left}" = "${playerctl} {next,play-pause,previous}";
|
||||
"super + alt + {h,j,k,l}" = "bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}";
|
||||
"super + b" = "${pkgs.update-background}/bin/update-background";
|
||||
"super + bracket{left,right}" = "bspc desktop -f {prev,next}.local";
|
||||
"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 + {1-9}" = "bspc node -o 0.{1-9}";
|
||||
"super + ctrl + {h,j,k,l}" = "bspc node -p {west,south,north,east}";
|
||||
"super + e {_,+shift}" = "{${fileManager},${secondaryFileManager}}";
|
||||
"super + g" = "bspc node -s biggest";
|
||||
"super + m" = "bspc desktop -l next";
|
||||
"super + n {_, + shift}" = "bsp-layout {next, previous}";
|
||||
"super + shift + ctrl + d" = "rofi -show ssh";
|
||||
"super + shift + p" = "clipedit";
|
||||
"super + shift + {a,d}" = "bspc node @/ -C {forward,backward}";
|
||||
"super + shift + {h,j,k,l}" = ''dir={west,south,north,east}; bspc node -s "$dir.local" --follow || bspc node -m "$dir" --follow'';
|
||||
"super + {Left,Down,Up,Right}" = "bspc node -v {-20 0,0 20,0 -20,20 0}";
|
||||
"super + {_,shift + } Return" = "{${primaryTerminal} , ${secondaryTerminal}}";
|
||||
"super + {_,shift + } c" = "bspc node -f {next,prev}.local";
|
||||
"super + {_,shift + } space" = "rofi -show {drun,run}";
|
||||
"super + {_,shift + } w" = "bspc node -{c,k}";
|
||||
"super + {_,shift + }{1-9,0}" = "bspc {desktop -f,node -d} 'focused:^{1-9,10}'";
|
||||
"super + {h,j,k,l}" = "dir={west,south,north,east}; bspc node -f $dir || bspc monitor -f $dir";
|
||||
"super + {o,i}" = "bspc wm -h off;bspc node {older,newer} -f;bspc wm -h on";
|
||||
"super + {t,shift + t,s,f}" = "bspc node -t {tiled,pseudo_tiled,floating,fullscreen}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue