From 8a77bed1514f7aca90dd53a5e0af562c4d79c9e0 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Tue, 17 Oct 2023 23:03:35 +0200 Subject: [PATCH] pinwheel: Rename mute scripts for input/output --- hosts/pinwheel/modules/sound/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/pinwheel/modules/sound/default.nix b/hosts/pinwheel/modules/sound/default.nix index cf6640b..3e94ade 100644 --- a/hosts/pinwheel/modules/sound/default.nix +++ b/hosts/pinwheel/modules/sound/default.nix @@ -2,13 +2,13 @@ let hyprlandEnabled = config.mod.hyprland.enable; - toggle-output-mute = pkgs.writeShellScript "foo" '' + toggle-output-mute = pkgs.writeShellScript "toggle-output-mute" '' ${pkgs.wireplumber}/bin/wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle MUTED=$(${pkgs.wireplumber}/bin/wpctl get-volume @DEFAULT_AUDIO_SINK@ | grep MUTED | wc -l) echo $MUTED > /sys/class/leds/platform::mute/brightness ''; - toggle-input-mute = pkgs.writeShellScript "foo" '' + toggle-input-mute = pkgs.writeShellScript "toggle-input-mute" '' ${pkgs.wireplumber}/bin/wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle MUTED=$(${pkgs.wireplumber}/bin/wpctl get-volume @DEFAULT_AUDIO_SOURCE@ | grep MUTED | wc -l) echo $MUTED > /sys/class/leds/platform::micmute/brightness