16 lines
267 B
Bash
Executable File
16 lines
267 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
function pashowvolume {
|
|
timeout="${RUMNO_TIMEOUT:-2.5}"
|
|
if paismuted; then
|
|
rumno notify -t "$timeout" -m
|
|
else
|
|
actual=$(pavolume)
|
|
max=100
|
|
show=$(( actual < max ? actual : max ))
|
|
rumno notify -t "$timeout" -v "$show"
|
|
fi
|
|
}
|
|
|
|
pashowvolume
|