summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2021-03-01 15:46:35 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2021-03-01 15:46:35 +0100
commitae8ef01cdd9c970bfd18a99dc2306571ffc58282 (patch)
treef0198c2406307c897b97c2f57765a280c824bc3f /.local/bin
parentEnv update (diff)
downloaddotfiles-bsd-ae8ef01cdd9c970bfd18a99dc2306571ffc58282.tar.gz
dotfiles-bsd-ae8ef01cdd9c970bfd18a99dc2306571ffc58282.tar.bz2
dotfiles-bsd-ae8ef01cdd9c970bfd18a99dc2306571ffc58282.tar.xz
dotfiles-bsd-ae8ef01cdd9c970bfd18a99dc2306571ffc58282.tar.zst
dotfiles-bsd-ae8ef01cdd9c970bfd18a99dc2306571ffc58282.zip
Update
Diffstat (limited to '.local/bin')
-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;
}