diff options
Diffstat (limited to '')
-rwxr-xr-x | .local/bin/mixer-set | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/.local/bin/mixer-set b/.local/bin/mixer-set index 27412b1..26db132 100755 --- a/.local/bin/mixer-set +++ b/.local/bin/mixer-set @@ -1,4 +1,4 @@ -#!/usr/local/bin/perl -w +#!/usr/local/bin/perl use strict; use warnings; @@ -36,7 +36,6 @@ sub main { } $curr_vol = `$curr_vol_cmd`; chomp $curr_vol; - my $icon = '墳'; system( '/usr/local/bin/notify-send', '-h', @@ -46,7 +45,7 @@ sub main { '-t', '1000', 'mixer-set', - $icon . ' Volume' + '墳 Volume' ); exit; } @@ -88,22 +87,24 @@ sub main { }; my $icon; if ($curr_vol <= 33) { - $icon = '奄'; + $icon = '奄 '; } elsif ($curr_vol <= 66) { - $icon = '奔'; + $icon = '奔 '; } else { - $icon = '墳'; + $icon = '墳 '; } system( '/usr/local/bin/notify-send', + '-h', + 'int:value:' . $curr_vol, '-u', 'low', '-t', '1750', 'mixer-set', - $icon . ' Volume restored - ' . $curr_vol . '%' + $icon . ' Volume restored' ); } exit; |