diff options
Diffstat (limited to 'user')
-rw-r--r-- | user/settings/music.nix | 1 | ||||
-rw-r--r-- | user/settings/sxhkd.nix | 24 |
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} ''; } |