From 74ecc98e528eac979e0820c9fa48955a186c0cc1 Mon Sep 17 00:00:00 2001 From: joe Date: Wed, 1 Oct 2025 18:04:18 +0200 Subject: up --- .local/bin/mic | 34 +++++++--------------------------- 1 file changed, 7 insertions(+), 27 deletions(-) (limited to '.local/bin/mic') diff --git a/.local/bin/mic b/.local/bin/mic index 492c773..31c9f43 100755 --- a/.local/bin/mic +++ b/.local/bin/mic @@ -7,7 +7,7 @@ use Sys::Hostname qw(hostname); use constant { MIXER_PATH => '/usr/sbin/mixer', - NOTIF_PATH => '/usr/local/bin/notify-send' + NOTIF_PATH => '/usr/local/bin/herbe' }; sub main @@ -22,24 +22,14 @@ sub main chomp $muted; if ($muted eq "yes") { system( - '/usr/bin/notify-send', - '-u', - 'low', - '-t', - '1750', - 'mixer-set', - ' muted' + '/usr/local/bin/herbe', + ' muted' ); } else { system( - '/usr/bin/notify-send', - '-u', - 'low', - '-t', - '1750', - 'mixer-set', - ' restored' + '/usr/local/bin/herbe', + ' restored' ); } exit; @@ -52,12 +42,7 @@ sub main }; system( NOTIF_PATH, - '-u', - 'low', - '-t', - '1750', - 'mixer-set', - ' Microphone restored' + ' microphone restored' ); } else { @@ -65,12 +50,7 @@ sub main system(MIXER_PATH, 'rec', '0'); system( NOTIF_PATH, - '-u', - 'low', - '-t', - '1750', - 'mixer-set', - ' Microphone muted' + ' microphone muted' ); }; } -- cgit v1.2.3