From ae8ef01cdd9c970bfd18a99dc2306571ffc58282 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 1 Mar 2021 15:46:35 +0100 Subject: Update --- .local/bin/mixer-set | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to '.local/bin/mixer-set') diff --git a/.local/bin/mixer-set b/.local/bin/mixer-set index 4de3825..27412b1 100755 --- a/.local/bin/mixer-set +++ b/.local/bin/mixer-set @@ -36,24 +36,17 @@ sub main { } $curr_vol = `$curr_vol_cmd`; chomp $curr_vol; - my $icon; - if ($curr_vol <= 33) { - $icon = '奄'; - } - elsif ($curr_vol <= 66) { - $icon = '奔'; - } - else { - $icon = '墳'; - } + my $icon = '墳'; system( '/usr/local/bin/notify-send', + '-h', + 'int:value:' . $curr_vol, '-u', 'low', '-t', - '400', + '1000', 'mixer-set', - $icon . ' Volume - ' . $curr_vol . '%' + $icon . ' Volume' ); exit; } -- cgit v1.2.3