volume in bar

This commit is contained in:
kento2 2026-02-09 06:56:48 +01:00
parent 74e6cfec06
commit c373245cbc
3 changed files with 39 additions and 3 deletions

View file

@ -40,7 +40,7 @@ battery()
volume()
{
vol="$(amixer sget Master | awk -F"[][]" '/(Mono|Left):/ { print $2 }')"
vol="$(pactl get-sink-volume @DEFAULT_SINK@ | grep -oE '[1-9]+%' | head -n1)"
echo "V vol: ${vol}"
}