New functions/bin structure
This commit is contained in:
15
dotfiles/lib/functions/pashowvolume
Executable file
15
dotfiles/lib/functions/pashowvolume
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
function pashowvolume {
|
||||
if paismuted; then
|
||||
volnoti-show -m
|
||||
else
|
||||
actual=$(pavolume)
|
||||
max=100
|
||||
show=$(( actual < max ? actual : max ))
|
||||
volnoti-show "$show"
|
||||
fi
|
||||
}
|
||||
|
||||
pashowvolume
|
||||
|
||||
Reference in New Issue
Block a user