From 74ecc98e528eac979e0820c9fa48955a186c0cc1 Mon Sep 17 00:00:00 2001 From: joe Date: Wed, 1 Oct 2025 18:04:18 +0200 Subject: up --- .local/bin/mixer-set | 35 +++++------------------------------ 1 file changed, 5 insertions(+), 30 deletions(-) (limited to '.local/bin/mixer-set') diff --git a/.local/bin/mixer-set b/.local/bin/mixer-set index 9963c91..24d6f21 100755 --- a/.local/bin/mixer-set +++ b/.local/bin/mixer-set @@ -28,9 +28,9 @@ sub main { if ($host eq "po-rbo.ln.ysosecure.com") { $curr_vol_cmd = "/usr/bin/pactl get-sink-volume \@DEFAULT_SINK\@ | /usr/bin/awk '{print \$5}'"; } - my $ns = '/usr/local/bin/notify-send'; + my $ns = '/usr/local/bin/herbe'; if (hostname() eq "po-rbo.ln.ysosecure.com") { - $ns = '/usr/bin/notify-send'; + $ns = '/usr/local/bin/herbe'; } if ($ARGV[0] eq "lower" || $ARGV[0] eq "raise") { if ($ARGV[0] eq "lower") { @@ -55,17 +55,7 @@ sub main { } $curr_vol = `$curr_vol_cmd`; chomp $curr_vol; - system( - $ns, - '-h', - 'int:value:' . $curr_vol, - '-u', - 'low', - '-t', - '1000', - 'mixer-set', - ' volume' - ); + system($ns, ' ' . $curr_vol); system('kill -68 $(pidof dwmblocks)'); exit; } @@ -91,12 +81,7 @@ sub main { } system( $ns, - '-u', - 'low', - '-t', - '1750', - 'mixer-set', - ' muted' + ' muted' ); system('kill -68 $(pidof dwmblocks)'); } @@ -117,17 +102,7 @@ sub main { ); }; } - system( - $ns, - '-h', - 'int:value:' . $curr_vol, - '-u', - 'low', - '-t', - '1750', - 'mixer-set', - ' restored' - ); + system($ns, ' ' . $curr_vol); system('kill -68 $(pidof dwmblocks)'); } exit; -- cgit v1.2.3