diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2022-04-26 09:39:37 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2022-04-26 09:39:37 +0200 |
commit | d48242ab01ca38feb3dfed91db33db6dfab7c3b9 (patch) | |
tree | 05d1d76e51394c0ef80f689b92b187a9fd0fae64 /.local/bin/mixer-set | |
parent | purge complete (diff) | |
download | dotfiles-bsd-d48242ab01ca38feb3dfed91db33db6dfab7c3b9.tar.gz dotfiles-bsd-d48242ab01ca38feb3dfed91db33db6dfab7c3b9.tar.bz2 dotfiles-bsd-d48242ab01ca38feb3dfed91db33db6dfab7c3b9.tar.xz dotfiles-bsd-d48242ab01ca38feb3dfed91db33db6dfab7c3b9.tar.zst dotfiles-bsd-d48242ab01ca38feb3dfed91db33db6dfab7c3b9.zip |
cleaner
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; |