From e2fa956571ba8bdf0d4d6276765a39f0ec17e104 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 20 Oct 2016 22:47:57 +0200 Subject: [PATCH] panel > volume lemon: only initialize once (leave the rest to volume.sh) --- os/arch/.config/panel/lemons/volume.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/os/arch/.config/panel/lemons/volume.sh b/os/arch/.config/panel/lemons/volume.sh index 6f4f4be4..f0781ad1 100755 --- a/os/arch/.config/panel/lemons/volume.sh +++ b/os/arch/.config/panel/lemons/volume.sh @@ -1,10 +1,4 @@ #!/usr/bin/env bash -# volume messages will be sent when volume is changed -echo "V$(amixer get Master | sed -n 's/^.*\[\([0-9]\+\)%.*$/\1/p' | uniq)" > "$PANEL_FIFO" & - -# while : -# do -# echo "V$(amixer get Master | sed -n 's/^.*\[\([0-9]\+\)%.*$/\1/p' | uniq)" -# sleep 1 -# done > "$PANEL_FIFO" & +# initialize volume display (once) +echo "V$(volume.sh)" > "$PANEL_FIFO" &