aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xPanel/lemonbar/icons2
-rwxr-xr-xPanel/lemonbar/panel2
-rwxr-xr-xPanel/lemonbar/profile2
-rwxr-xr-xPanel/lemonbar/volume7
-rw-r--r--Window_Manager/ratpoison/ratpoisonrc.conf4
5 files changed, 12 insertions, 5 deletions
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=''
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/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
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
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%