mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
volume information conform with i3-status style
* icon now displays on the left of the icon, matching other bar elements * stereo speakers do not cause 2 sets of icons * if output is muted, only the mute icon is displayed
This commit is contained in:
parent
57e2bf3539
commit
4649f24b76
@ -39,7 +39,7 @@ status() { \
|
||||
|
||||
# Get the volume of ALSA's master volume output. Show an icon if or
|
||||
# not muted.
|
||||
amixer get Master | grep -o "[0-9]*%\|\[on\]\|\[off\]" | sed "s/\[on\]//;s/\[off\]//"
|
||||
amixer get Master | grep -o "[0-9]*%\|\[on\]\|\[off\]" | tr '\n' ' ' | sed -e '/off/c' -e 's/\[on\]//' | awk '{print $2 " " $1}' | xargs
|
||||
|
||||
echo "$delim"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user