8 lines
197 B
Bash
Executable File
8 lines
197 B
Bash
Executable File
#!/bin/bash
|
|
print_volume() {
|
|
[ "$(pulsemixer --get-mute)" = "1" ] && printf "🔇" && exit
|
|
vol=$(pulsemixer --get-volume | awk '{print $1}')
|
|
printf "%s%%\\n" "🔊 $vol"
|
|
}
|
|
print_volume
|