From 9f20f5c1c69f25247f741418478d613958b05a51 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Wed, 5 Jul 2023 17:38:50 +0300 Subject: [PATCH] overlays for later --- config/polybar/config.ini | 26 +++++++------------------- configuration.nix | 1 + overlays/default.nix | 1 + 3 files changed, 9 insertions(+), 19 deletions(-) create mode 100644 overlays/default.nix diff --git a/config/polybar/config.ini b/config/polybar/config.ini index 1abd6153..3a204202 100644 --- a/config/polybar/config.ini +++ b/config/polybar/config.ini @@ -51,7 +51,7 @@ separator-foreground = ${colors.disabled} font-0 = JetBrainsMono ;2 modules-left = xworkspaces xwindow -modules-right = battery pipewire date +modules-right = battery pulseaudio date cursor-click = pointer cursor-scroll = ns-resize @@ -103,26 +103,14 @@ label-unmounted-foreground = ${colors.disabled} [module/pulseaudio] type = internal/pulseaudio -; Sink to be used, if it exists (find using `pacmd list-sinks`, name field) -; If not, uses default sink -; sink = alsa_output.pci-0000_12_00.3.analog-stereo +format-volume-prefix = "VOL " +format-volume-prefix-foreground = ${colors.primary} +format-volume = -; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false -; Default: true -use-ui-max = true +label-volume = %percentage%% -; Interval for volume increase/decrease (in percent points) -; Default: 5 -interval = 5 - -[module/pipewire] -type = custom/script -exec = /home/sako/.config/polybar/pipewire-polybar.sh -interval = 3 -click-right = exec pavucontrol & -click-left = /home/sako/.config/polybar/pipewire-polybar.sh --mute & -scroll-up = /home/sako/.config/polybar/pipewire-polybar.sh --up & -scroll-down = /home/sako/.config/polybar/pipewire-polybar.sh --down & +label-muted = muted +label-muted-foreground = ${colors.disabled} [module/xkeyboard] type = internal/xkeyboard diff --git a/configuration.nix b/configuration.nix index 89c1e231..f28a1ef6 100644 --- a/configuration.nix +++ b/configuration.nix @@ -177,6 +177,7 @@ # TODO(sako):: make overlays in different folder nixpkgs.overlays = [ (final: prev: { qutebrowser = prev.qutebrowser.override { enableWideVine = true; }; }) + (final: prev: { polybar = prev.polybar.override { pulseSupport = true;}; }) ]; # garbage collection diff --git a/overlays/default.nix b/overlays/default.nix new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/overlays/default.nix @@ -0,0 +1 @@ +{}