From 2f75a8d9939eda70afdcfc7e14106c3d7873031c Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Thu, 15 Aug 2024 16:20:09 +0100 Subject: [PATCH] Add pulseaudio-control --- config/home.nix | 3 ++- config/packages/polybar/config.ini | 17 +++++++++-------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/config/home.nix b/config/home.nix index 275d6a8..a169847 100644 --- a/config/home.nix +++ b/config/home.nix @@ -63,9 +63,10 @@ in { os-prober pavucontrol picom - pm2 plexamp + pm2 polybar + polybar-pulseaudio-control ranger rofi rofi-emoji diff --git a/config/packages/polybar/config.ini b/config/packages/polybar/config.ini index b7f0fbd..1716e3a 100644 --- a/config/packages/polybar/config.ini +++ b/config/packages/polybar/config.ini @@ -53,7 +53,7 @@ font-1 = Font Awesome 6 Free:style=Regular;2 font-2 = Font Awesome 6 Free:style=Solid;2 modules-left = xworkspaces xwindow -modules-right = filesystem audiooutput pulseaudio xkeyboard memory cpu battery date +modules-right = filesystem pulseaudio-control-output xkeyboard memory cpu battery date cursor-click = pointer cursor-scroll = ns-resize @@ -114,14 +114,15 @@ label-volume = %percentage%% label-muted = muted label-muted-foreground = ${colors.disabled} -[module/audiooutput] +[module/pulseaudio-control-output] type = custom/script -exec = cat ~/.cache/scripts/get-sink-name.txt -interval = 1 -format =