Better bspwm and sxhdkd

This commit is contained in:
Filippo Berto 2022-12-26 15:56:07 +01:00
parent 1f8c424512
commit 091fc65b2f
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
4 changed files with 8 additions and 3 deletions

View file

@ -34,7 +34,6 @@ in
};
startupPrograms = [
"${monitorSetupScript}" # Setup monitors
"systemctl --user restart polybar" # Restart polybar
"${xsetroot} -solid black -cursor_name left_ptr" # Set cursor
"${pkgs.update-background}/bin/update-background" # Set background
];

View file

@ -23,6 +23,10 @@
emojiChooser = "rofimoji --skin-tone light -a copy";
yad = "${pkgs.yad}/bin/yad";
notify = "${pkgs.libnotify}/bin/notify-send";
resetBspwm = pkgs.writeShellScript "resetBspwm" ''
bspc wm -r
systemctl --user restart polybar # Restart polybar
'';
moveAllNodesToPrimary = pkgs.writeShellScript "moveAllNodesToPrimary" ''
comm -23 <(bspc query -N | sort) <(bspc query -m primary -N | sort) | while read n; do bspc node $n -m primary; done
'';
@ -40,7 +44,7 @@
${yad} --question --center --on-top --sticky --timeout=30 --timeout-indicator=bottom --image=gnome-shutdown --title "Shutdown" --text "Do you want to shutdown?" && bspc quit
'';
"super + alt + o" = "${moveAllNodesToPrimary}";
"super + alt + r" = "bspc wm -r";
"super + alt + r" = "${resetBspwm}";
"super + alt + {Right,Down,Left}" = "playerctl {next,play-pause,previous}";
"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";

View file

@ -9,6 +9,7 @@
arandr
authy
bitwarden
calibre
cava
discord
dmenu
@ -131,7 +132,7 @@
../hm_modules/obs-studio.nix
../hm_modules/office.nix
../hm_modules/pass.nix
# ../hm_modules/picom.nix
../hm_modules/picom.nix
../hm_modules/polybar.nix
# ../hm_modules/pro_audio.nix
# ../hm_modules/pycharm.nix

View file

@ -8,6 +8,7 @@
packages = with pkgs; [
arandr
authy
calibre
bitwarden
discord
dmenu