From d0b7f01cc858e648ff14fb21e4cdb660a5562933 Mon Sep 17 00:00:00 2001 From: Isaac Shoebottom Date: Sun, 8 Jun 2025 05:50:22 -0300 Subject: [PATCH] Make script more variable --- dot_config/systemd/user/amixer-autounmute.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dot_config/systemd/user/amixer-autounmute.service b/dot_config/systemd/user/amixer-autounmute.service index cb152d5..c1104e9 100644 --- a/dot_config/systemd/user/amixer-autounmute.service +++ b/dot_config/systemd/user/amixer-autounmute.service @@ -1,6 +1,6 @@ [Unit] -Description=Disable Auto-Mute on sound card 3 +Description=Disable Auto-Mute on sound card on a range of 10 cards, since it can vary [Service] Type=oneshot -ExecStart=/usr/bin/amixer -c 3 sset "Auto-Mute Mode" Disabled +ExecStart=/usr/bin/bash -c 'for i in {1..10}; do amixer -c $i sset "Auto-Mute Mode" Disabled; done; exit 0'