Large module update

This commit is contained in:
Filippo Berto 2021-06-01 22:19:24 +02:00
parent 492ae9d92a
commit a61bfe3c50
18 changed files with 463 additions and 87 deletions

View file

@ -5,56 +5,56 @@
bash
betterlockscreen
bspwm
dunst
# dunst
findutils
gnome3.nautilus
playerctl
pulseaudio-ctl
rofi
sxhkd
terminator
i3lock-color
];
services.sxhkd = let
alacritty = "${pkgs.alacritty}/bin/alacritty";
terminator = "${pkgs.terminator}/bin/terminator";
bspc = "${pkgs.bspwm}/bin/bspc";
betterlockscreen = "${pkgs.betterlockscreen}/bin/betterlockscreen";
dunstify = "${pkgs.dunst}/bin/dunstify";
i3lock-color = "${pkgs.i3lock-color}/bin/i3lock-color";
playerctl = "${pkgs.playerctl}/bin/playerctl";
pulseaudio-ctl = "${pkgs.pulseaudio-ctl}/bin/pulseaudio-ctl";
rofi = "${pkgs.rofi}/bin/rofi";
terminator = "${pkgs.terminator}/bin/terminator";
in {
enable = true;
keybindings = {
"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 + {,+ shift} + m" = ''${betterlockscreen} {-l,-s} -t "Welcome back $USER"'';
"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 + 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" = ''i3lock-color -B 10 --greetertext="Welcome back $USER"'';
"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" = "nautilus -w";
"super + Escape" = "pkill -USR1 -x sxhkd";
"super + g" = "${bspc} node -s biggest";
"super + {grave,Tab}" = "${bspc} {node,desktop} -f last";
"super + {Left,Down,Up,Right}" = "${bspc} node -v {-20 0,0 20,0 -20,20 0}";
"super + m" = "${bspc} desktop -l next";
"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 + } Return" = "{${alacritty},${terminator}}";
"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 + }{h,j,k,l}" = "${bspc} node -{f,s} {west,south,north,east}";
"super + {_,shift + }w" = "${bspc} node -{c,k}";
"super + g" = "bspc node -s biggest";
"super + {grave,Tab}" = "bspc {node,desktop} -f last";
"super + {Left,Down,Up,Right}" = "bspc node -v {-20 0,0 20,0 -20,20 0}";
"super + m" = "bspc desktop -l next";
"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 + } Return" = "{alacritty,terminator}";
"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 + }{h,j,k,l}" = "bspc node -{f,s} {west,south,north,east}";
"super + {_,shift + }w" = "bspc node -{c,k}";
"super + @space" = "rofi -show drun";
"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" = "pulseaudio-ctl down";
"XF86AudioMute" = "pulseaudio-ctl mute";
"XF86AudioNext" = "playerctl next";
"XF86AudioPlay" = "playerctl play-pause";
"XF86AudioPrev" = "playerctl previous";
"XF86AudioRaiseVolume" = "pulseaudio-ctl up";
"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}" = "${dunstify} ${pulseaudio-ctl} {down,mute,up}";
# "XF86Audio{LowerVolume,Mute,RaiseVolume}" = "${pulseaudio-ctl} {down,mute,up}";
"XF86Audio{Next,Play,Prev}" = "${playerctl} {next,play-pause,previous}";
};
};
}