From 22cc32b064f92ef3dc62568b734688cb3cc77b72 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Mon, 2 Jan 2023 19:16:44 +0100 Subject: [PATCH] Cleaner environment --- hm_modules/sxhkd.nix | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/hm_modules/sxhkd.nix b/hm_modules/sxhkd.nix index 5764dd8..91cd70b 100644 --- a/hm_modules/sxhkd.nix +++ b/hm_modules/sxhkd.nix @@ -4,15 +4,10 @@ # ./thunar.nix ]; home.packages = with pkgs; [ - bc gnome.gnome-screenshot lockscreen - - playerctl terminator bsp-layout - update-background - clipedit ]; services.sxhkd = @@ -24,6 +19,7 @@ yad = "${pkgs.yad}/bin/yad"; notify = "${pkgs.libnotify}/bin/notify-send"; pamixer = "${pkgs.pamixer}/bin/pamixer"; + playerctl = "${pkgs.playerctl}/bin/playerctl"; xbacklight = "${pkgs.xorg.xbacklight}/bin/xbacklight"; resetBspwm = pkgs.writeShellScript "resetBspwm" '' bspc wm -r @@ -55,10 +51,9 @@ ''; "super + alt + o" = "${moveAllNodesToPrimary}"; "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"; - "super + b" = "update-background"; + "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}"; @@ -88,7 +83,8 @@ "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"; "XF86Audio{LowerVolume,Mute,RaiseVolume}" = "${pamixer} {-d 2 -u,-t,-i 2 -u} && ${notifyVolume}"; - "XF86Audio{Next,Play,Prev}" = "playerctl {next,play-pause,previous}"; + "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}"; }; };