summary refs log tree commit diff stats
path: root/user/settings
diff options
context:
space:
mode:
authorAlan Pearce2022-11-05 05:23:59 +0100
committerAlan Pearce2022-11-13 17:44:46 +0100
commitafb912babbb2d444c29247d0f936123f600c8cc9 (patch)
tree2b68ce6f347218c577346762510af991819491e6 /user/settings
parenteb3cf46f60b4d86d320dfa6d250053a26536b826 (diff)
downloadnixfiles-afb912babbb2d444c29247d0f936123f600c8cc9.tar.lz
nixfiles-afb912babbb2d444c29247d0f936123f600c8cc9.tar.zst
nixfiles-afb912babbb2d444c29247d0f936123f600c8cc9.zip
sxhkd: realise nix package paths explicitly
Diffstat (limited to 'user/settings')
-rw-r--r--user/settings/music.nix1
-rw-r--r--user/settings/sxhkd.nix24
2 files changed, 15 insertions, 10 deletions
diff --git a/user/settings/music.nix b/user/settings/music.nix
index 357dfd39..43940755 100644
--- a/user/settings/music.nix
+++ b/user/settings/music.nix
@@ -4,7 +4,6 @@
   ...
 }: {
   home.packages = with pkgs; [
-    playerctl
     sonixd
     (tauon.override {withDiscordRPC = true;})
   ];
diff --git a/user/settings/sxhkd.nix b/user/settings/sxhkd.nix
index cc21264b..801fc94b 100644
--- a/user/settings/sxhkd.nix
+++ b/user/settings/sxhkd.nix
@@ -2,30 +2,36 @@
   config,
   pkgs,
   ...
-}: {
+}: let
+  pamixer = "${pkgs.pamixer}/bin/pamixer";
+  disper = "${pkgs.disper}/bin/disper";
+  light = "${pkgs.light}/bin/light";
+  playerctl = "${pkgs.playerctl}/bin/playerctl";
+  networkmanager_dmenu = "${pkgs.networkmanager_dmenu}/bin/networkmanager_dmenu";
+in {
   xdg.configFile."sxhkd/sxhkdrc".text = ''
     XF86AudioMute
-      pamixer --toggle-mute
+      ${pamixer} --toggle-mute
 
     XF86Audio{Lower,Raise}Volume
-      pamixer --{decrease,increase} 1
+      ${pamixer} --{decrease,increase} 1
 
     @XF86AudioMicMute
-      pamixer --source 2 --toggle-mute
+      ${pamixer} --source 2 --toggle-mute
 
     XF86MonBrightness{Down,Up}
-      light -{U,A} 2%
+      ${light} -{U,A} 2%
 
     XF86Display
-      disper -C
+      ${disper} -C
 
     XF86AudioPlay
-      playerctl play-pause
+      ${playerctl} play-pause
 
     XF86Audio{Prev,Next}
-      playerctl {previous,next}
+      ${playerctl} {previous,next}
 
     XF86Tools
-      networkmanager_dmenu
+      ${networkmanager_dmenu}
   '';
 }