mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-12-04 21:28:21 -05:00
15 lines
303 B
Bash
Executable File
15 lines
303 B
Bash
Executable File
#!/bin/sh
|
|
|
|
mute=$(pulsemixer --get-mute)
|
|
|
|
if [ "$mute" -eq 1 ] || [ "$mute" = "true" ]
|
|
then
|
|
echo "婢 muted"
|
|
else
|
|
volume=$(pulsemixer --get-volume)
|
|
left=$(echo "$volume" | cut -d' ' -f1)
|
|
right=$(echo "$volume" | cut -d' ' -f2)
|
|
average=$(((left+right)/2))
|
|
echo "墳 $average%"
|
|
fi
|