mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
shortened sb-volume code
This commit is contained in:
parent
606905268f
commit
3b692f4680
@ -17,14 +17,11 @@ esac
|
||||
|
||||
vol="$(pamixer --get-volume)"
|
||||
|
||||
if [ "$vol" -gt "70" ]; then
|
||||
icon="🔊"
|
||||
elif [ "$vol" -gt "30" ]; then
|
||||
icon="🔉"
|
||||
elif [ "$vol" -gt "0" ]; then
|
||||
icon="🔈"
|
||||
icons=("🔈" "🔉" "🔊")
|
||||
if [ "$vol" -gt "0" ]; then
|
||||
icon=${icons[((vol / 33))]}
|
||||
else
|
||||
echo 🔇 && exit
|
||||
echo 🔇 && exit
|
||||
fi
|
||||
|
||||
echo "$icon$vol%"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user