summaryrefslogtreecommitdiffstats
path: root/.local/bin/mixer-set
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/mixer-set')
-rwxr-xr-x.local/bin/mixer-set17
1 files changed, 5 insertions, 12 deletions
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;
}