xmobar - restructure and clean sound/music
This commit is contained in:
parent
c0c460f006
commit
286d5cb0ec
91 changed files with 64 additions and 17 deletions
|
@ -1,8 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
status=$(quodlibet --status | cut -d' ' -f1)
|
||||
case "$status" in
|
||||
"playing") quodlibet --print-playing "<title~album>" ;;
|
||||
*) ;;
|
||||
esac
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
if grep -q "\[on\]" <(amixer get Master); then
|
||||
current="$(amixer get Master | sed -n '/%/s/.*\[\(.*\)%\].*/\1/p' | head -1)"
|
||||
if (( current <= 25 )); then
|
||||
echo "none"
|
||||
elif (( current <= 50 )); then
|
||||
echo "low"
|
||||
elif (( current <= 75 )); then
|
||||
echo "medium"
|
||||
else
|
||||
echo "high"
|
||||
fi
|
||||
else
|
||||
echo "mute"
|
||||
fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue