Changed xmobar look to be cleaner
This commit is contained in:
parent
666396c9ab
commit
5168508b7e
21 changed files with 900 additions and 150 deletions
11
.config/xmobar/scripts/volume.sh
Executable file
11
.config/xmobar/scripts/volume.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
MUTE=$(pactl get-sink-mute @DEFAULT_SINK@ | sed -En 's/Mute: (.)/\1/p')
|
||||
VOLUME=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -Po '[0-9]*%' | sed -En 's/(.)\%/\1/p' | head -n1)
|
||||
|
||||
if [ "$MUTE" = "yes" ]; then
|
||||
echo "<fc=#696B71><fn=3></fn></fc>"
|
||||
elif [ "$VOLUME" -eq 0 ]; then
|
||||
echo "<fc=#696B71><fn=3></fn></fc>"
|
||||
else
|
||||
echo "<fc=#DFDFDF><fn=3></fn><fn=2> $VOLUME</fn></fc>"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue