dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 243e703ac23edc6f57411b19855c2a9461151608
parent 8bb6025caeec84d828e7b94404d111fbd26b4096
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue,  1 Oct 2019 19:40:59 +0200

Change prefix for volume

Diffstat:
M.local/bin/sysstatus | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.local/bin/sysstatus b/.local/bin/sysstatus @@ -14,16 +14,16 @@ printf " %s $separator" "$(setxkbmap -print | sed -n '5s/^.*pc+//;5s/+.*$//;5p') # audio volume if type mixerctl >/dev/null 2>&1; then if [ "$(mixerctl -n outputs.master.mute)" = "off" ]; then - printf " ♪ " + printf " vol " else printf " M " fi printf "%s" "$(echo $(mixerctl -n outputs.master | \ sed 's/,.*//')/255*100 | bc -l | sed 's/\..*//')%" elif type amixer >/dev/null 2>&1; then - printf " ♪ %s" "$(amixer get Master | grep -o "[0-9]*%\|\[off\]")" + printf " vol %s" "$(amixer get Master | grep -o "[0-9]*%\|\[off\]")" elif type pulsemixer >/dev/null 2>&1; then - printf " ♪ %s" "$(pulsemixer --get-volume | cut -d' ' -f1)%" + printf " vol %s" "$(pulsemixer --get-volume | cut -d' ' -f1)%" fi printf " $separator"