~yerinalexey/dotfiles

144a38b0aa0a39003633d53b77fe4e3ca29c054b — Alexey Yerin a month ago 3e5f5bb
river,update-volume: fix old wob crashes
2 files changed, 6 insertions(+), 7 deletions(-)

M river/init
M scripts/update-volume
M river/init => river/init +5 -6
@@ 115,12 115,11 @@ start_wob() {

	mkfifo /tmp/wob-in
	tail -f /tmp/wob-in | wob \
	  -a top -a right -M 20 \
	  -W 35 -H 400 \
	  --overflow-mode nowrap \
	  --bar-color "#ff61afef" --overflow-bar-color "#ffec7171" \
	  --border-color "$border" --overflow-border-color "$border" \
	  --background-color "$background" --overflow-background-color "$background" &
	  -a top -a right -M 0 \
	  -W 400 -H 42 \
	  --bar-color "#ff61afef" \
	  --border-color "$border" \
	  --background-color "$background" &
}

killall wob

M scripts/update-volume => scripts/update-volume +1 -1
@@ 13,5 13,5 @@ case "$1" in
	;;
esac

newvol"$(amixer sget Master | grep "Mono:" | awk -F"[][]" '{ print $2 }')"
newvol="$(amixer sget Master | grep "Mono:" | awk -F"[][]" '{ print $2 }' | sed 's/%$//')"
printf "%s\n" "$newvol" >> /tmp/wob-in