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, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [ playerctl pcmanfm pamixer kitty terminator update-background xorg.xbacklight lockscreen ];
|
||||
services.sxhkd =
|
||||
let
|
||||
primaryTerminal = "kitty";
|
||||
secondaryTerminal = "terminator";
|
||||
pcmanfm = "${pkgs.pcmanfm}/bin/pcmanfm";
|
||||
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";
|
||||
fileManager = "pcmanfm -n";
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
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 + {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 + m" = "${pkgs.lockscreen}/bin/lockscreen";
|
||||
"super + alt + m" = "lockscreen";
|
||||
"super + bracket{left,right}" = "bspc desktop -f {prev,next}.local";
|
||||
"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" = "${pcmanfm} -n";
|
||||
"super + e" = fileManager;
|
||||
"super + Escape" = "pkill -USR1 -x sxhkd";
|
||||
"super + g" = "bspc node -s biggest";
|
||||
"super + {grave,Tab}" = "bspc {node,desktop} -f last";
|
||||
|
|
@ -43,9 +39,10 @@
|
|||
"alt + Tab" = "rofi -show window";
|
||||
"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";
|
||||
"{XF86AudioLowerVolume,XF86AudioMute,XF86AudioRaiseVolume}" = "${pamixer} {-d 2,-t,-i 2}";
|
||||
"XF86Audio{Next,Play,Prev}" = "${playerctl} {next,play-pause,previous}";
|
||||
"XF86MonBrightness{Up,Down}" = "${xbacklight} {+,-}10%";
|
||||
"{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}";
|
||||
"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