From 606d7d80df26c467a0680f27b34295eb8c2da0d7 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Mon, 18 Apr 2022 12:44:07 +0300 Subject: polybar: lowe has sound now --- .config/polybar/config.ini##h.lowe | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.config/polybar/config.ini##h.lowe b/.config/polybar/config.ini##h.lowe index 4d2efee..63f671e 100644 --- a/.config/polybar/config.ini##h.lowe +++ b/.config/polybar/config.ini##h.lowe @@ -46,7 +46,7 @@ module-margin = 1 font-0 = scientifica:antialias=false;1 font-1 = Siji:size=20;1 -modules-left = i3 github iss +modules-left = i3 pulseaudio-control github iss modules-center = xwindow modules-right = toread focus date time @@ -197,19 +197,20 @@ label-background = ${colors.background_modules} label-foreground = ${colors.foreground_modules} label-padding = 1 -[module/pipewire] +[module/pulseaudio-control] type = custom/script tail = true label = %output% -interval = 5 - -exec = /home/yigit/.config/polybar/scripts/pipewire +format-prefix =  +format-prefix-background = ${colors.blue} +format-prefix-foreground = ${colors.foreground} +format-prefix-padding = 1 -click-right = /home/yigit/.config/polybar/scripts/pipewire previous-sink -click-left = /home/yigit/.config/polybar/scripts/pipewire next-sink -click-middle = /home/yigit/.config/polybar/scripts/pipewire toggle-mute -scroll-up = /home/yigit/.config/polybar/scripts/pipewire volume-up -scroll-down = /home/yigit/.config/polybar/scripts/pipewire volume-down +exec = pulseaudio-control --icons-volume " , " --icon-muted " " --format '${VOL_LEVEL}% $VOL_ICON' listen +click-right = exec pavucontrol & +click-left = pulseaudio-control togmute +scroll-up = pulseaudio-control --volume-max 130 up +scroll-down = pulseaudio-control --volume-max 130 down label-padding = 2 label-foreground = ${colors.foreground_modules} -- cgit v1.2.3-70-g09d2