From b1273694c3918c98c1474ff1cac452bda4332bf6 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Sun, 27 Oct 2019 13:29:09 +0000 Subject: Use pamixer volume script for lemonbar --- Panel/lemonbar/panel | 2 +- Panel/lemonbar/volume | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 Panel/lemonbar/volume diff --git a/Panel/lemonbar/panel b/Panel/lemonbar/panel index 4008682..88ef196 100755 --- a/Panel/lemonbar/panel +++ b/Panel/lemonbar/panel @@ -11,7 +11,7 @@ mkfifo -m 777 "$PANEL_FIFO" #bspc control --subscribe > "$PANEL_FIFO" & ./windows > "$PANEL_FIFO" & #echo "D`rpws current`" > "$PANEL_FIFO" & -volume -f 'V%i' > "$PANEL_FIFO" & +./volume > "$PANEL_FIFO" & battery -i 60 -sf 'B%s %i' > "$PANEL_FIFO" & clock -i 60 -sf 'Z%d %a %H:%M' > "$PANEL_FIFO" & ./music > "$PANEL_FIFO" & diff --git a/Panel/lemonbar/volume b/Panel/lemonbar/volume new file mode 100755 index 0000000..df38b5c --- /dev/null +++ b/Panel/lemonbar/volume @@ -0,0 +1,7 @@ +#!/bin/sh +SINK_ID=9 +while true;do + volume=$(pamixer --sink $SINK_ID --get-volume) + echo "V$volume" + sleep 70 +done -- cgit v1.2.3