From f44c192a5ee9e5fd99f646a4bba2ef608140d22e Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Sun, 27 Oct 2019 13:26:21 +0000 Subject: Fix music icon --- Panel/lemonbar/icons | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Panel/lemonbar/icons b/Panel/lemonbar/icons index 1be901e..6268492 100755 --- a/Panel/lemonbar/icons +++ b/Panel/lemonbar/icons @@ -18,7 +18,7 @@ ICON_VOLUME_DOWN='' ICON_VOLUME_UP='' ICON_VOLUME_OFF='' ICON_HPHONES='' -ICON_MUSIC='' +ICON_MUSIC='♫' ICON_PLUG='' ICON_FACE='' ICON_PRIV='' -- cgit v1.2.3-54-g00ecf From 7506a654d4bc2cacb22acd7caafe56ffa3ea8677 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Sun, 27 Oct 2019 13:28:05 +0000 Subject: Set Operator font correctly for lemonbar --- Panel/lemonbar/profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Panel/lemonbar/profile b/Panel/lemonbar/profile index 67b2b96..4ae8fab 100755 --- a/Panel/lemonbar/profile +++ b/Panel/lemonbar/profile @@ -2,7 +2,7 @@ PANEL_FIFO=/tmp/panel-fifo PANEL_HEIGHT=40 -FONT_FONT="OperatorMonoLigBook-12" +FONT_FONT="OperatorMonoSSmLigBook-12" #ICON_FONT="FontAwesome-10" export PANEL_FIFO PANEL_HEIGHT PANEL_FONT_FAMILY FONT_FONT ICON_FONT -- cgit v1.2.3-54-g00ecf 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-54-g00ecf From 4080a8ba826cc52297aa0174d03fb8534e45246e Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Sun, 27 Oct 2019 13:29:59 +0000 Subject: Replace volume command with pamixer in rat --- Window_Manager/ratpoison/ratpoisonrc.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Window_Manager/ratpoison/ratpoisonrc.conf b/Window_Manager/ratpoison/ratpoisonrc.conf index 7dc91d1..70430fb 100644 --- a/Window_Manager/ratpoison/ratpoisonrc.conf +++ b/Window_Manager/ratpoison/ratpoisonrc.conf @@ -171,8 +171,8 @@ definekey top KP_Enter exec ~/Dropbox/speech/run-duplex.sh #------------------------------------------------------------- # Volume Control #------------------------------------------------------------- -alias volup exec pactl set-sink-volume `pactl list sinks short | perl -ne '/^(\d*)/; $x=$1; END { print $x }'` +2% && volume -f 'V%i' > /tmp/panel-fifo -alias voldown exec pactl set-sink-volume `pactl list sinks short | perl -ne '/^(\d*)/; $x=$1; END { print $x }'` -2% && volume -f 'V%i' > /tmp/panel-fifo +alias volup exec pactl set-sink-volume `pactl list sinks short | perl -ne '/^(\d*)/; $x=$1; END { print $x }'` +2% && echo "V$(pamixer --sink 9 --get-volume)" > /tmp/panel-fifo +alias voldown exec pactl set-sink-volume `pactl list sinks short | perl -ne '/^(\d*)/; $x=$1; END { print $x }'` -2% && echo "V$(pamixer --sink 9 --get-volume)" > /tmp/panel-fifo alias spvolup exec pactl set-sink-input-volume `.config/ratpoison/get_spotify_sink` +2% alias spvoldown exec pactl set-sink-input-volume `.config/ratpoison/get_spotify_sink` -2% -- cgit v1.2.3-54-g00ecf