Add old dotfiles
This commit is contained in:
commit
1cace80e48
192 files changed
+13538
No files matched your search
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# Dependencies: pactl, awk
|
||||
|
||||
volume=$(pactl list sinks | awk '/^\s+Volume:/ {print $5}' | head -n 1 | tr -d '%')
|
||||
muted=$(pactl list sinks | awk '/^\s+Mute:/ {print $2}' | head -n 1)
|
||||
|
||||
if [ "$muted" = "yes" ]; then
|
||||
icon=""
|
||||
else
|
||||
if [ "$volume" -le 20 ]; then
|
||||
icon=""
|
||||
elif [ "$volume" -le 50 ]; then
|
||||
icon=""
|
||||
elif [ "$volume" -le 100 ]; then
|
||||
icon=""
|
||||
else
|
||||
icon=""
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "$icon $volume%"
|
||||
|
||||
Reference in new issue
Block a user