From 713418d7e1a66346d94a31cf3e3a42140e7d34fd Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Thu, 21 Jul 2022 13:28:45 +0200 Subject: [PATCH] polybar: alsa -- --- polybar/conf.d/mod_alsa | 23 ----------------------- polybar/conf.d/mod_pulseaudio | 17 +++++++++++++++++ polybar/config | 4 ++-- 3 files changed, 19 insertions(+), 25 deletions(-) delete mode 100644 polybar/conf.d/mod_alsa create mode 100644 polybar/conf.d/mod_pulseaudio diff --git a/polybar/conf.d/mod_alsa b/polybar/conf.d/mod_alsa deleted file mode 100644 index a0628a7..0000000 --- a/polybar/conf.d/mod_alsa +++ /dev/null @@ -1,23 +0,0 @@ -[module/alsa] -type = internal/alsa -format-volume = -label-volume-foreground = ${root.foreground} -format-muted-prefix = " " -format-muted-foreground = ${colors.foreground-alt} -label-muted = sound muted -bar-volume-width = 10 -bar-volume-foreground-0 = #55aa55 -bar-volume-foreground-1 = #55aa55 -bar-volume-foreground-2 = #55aa55 -bar-volume-foreground-3 = #55aa55 -bar-volume-foreground-4 = #55aa55 -bar-volume-foreground-5 = #f5a70a -bar-volume-foreground-6 = #ff5555 -bar-volume-gradient = false -bar-volume-indicator = | -bar-volume-indicator-font = 2 -bar-volume-fill = ─ -bar-volume-fill-font = 2 -bar-volume-empty = ─ -bar-volume-empty-font = 2 -bar-volume-empty-foreground = ${colors.foreground-alt} diff --git a/polybar/conf.d/mod_pulseaudio b/polybar/conf.d/mod_pulseaudio new file mode 100644 index 0000000..ee786d2 --- /dev/null +++ b/polybar/conf.d/mod_pulseaudio @@ -0,0 +1,17 @@ +[module/pulseaudio] +type = internal/pulseaudio + +; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false +use-ui-max = true + +format-volume = +format-volume-prefix = "VOL " +format-volume-prefix-foreground =${colors.foreground-alt} + + +label-muted = muted + +format-muted-prefix = "VOL " +format-muted-prefix-foreground =${colors.foreground-alt} + +click-right = pavucontrol diff --git a/polybar/config b/polybar/config index e63acaa..43074a9 100644 --- a/polybar/config +++ b/polybar/config @@ -23,7 +23,7 @@ margin-bottom = 5 inherit = bar/defaults modules-left = i3 modules-center = -modules-right = alsa backlight cpu system-cpu-loadavg memory df battery time +modules-right = backlight cpu system-cpu-loadavg memory df battery time tray-position = right tray-padding = 2 @@ -32,4 +32,4 @@ inherit = bar/defaults bottom = true modules-left = modules-center = polywins -modules-right = +modules-right = pulseaudio