diff --git a/configuration.nix b/configuration.nix index 36b0961..fe141e5 100644 --- a/configuration.nix +++ b/configuration.nix @@ -128,6 +128,7 @@ packageOverrides = pkgs: rec { polybar = pkgs.polybar.override { i3Support = true; + pulseSupport = true; }; }; }; diff --git a/home.nix b/home.nix index 2ba1054..746d3bd 100644 --- a/home.nix +++ b/home.nix @@ -28,7 +28,7 @@ in ./programm_configs/zsh.nix ./programm_configs/gnome.nix ./programm_configs/autorandr.nix - ./programm_configs/polybar/polybar.nix + ./programm_configs/polybar.nix ./programm_configs/redshift.nix ]; diff --git a/programm_configs/polybar/polybar.nix b/programm_configs/polybar.nix similarity index 84% rename from programm_configs/polybar/polybar.nix rename to programm_configs/polybar.nix index 8dd7a8c..7e55af7 100644 --- a/programm_configs/polybar/polybar.nix +++ b/programm_configs/polybar.nix @@ -36,7 +36,7 @@ in module-margin-right = 2; border-top-size = 4; - font-0 = "DejaVu Sans Mono:style=Book:size=10"; + font-0 = "DejaVu Sans Mono:style=Book:size=12"; font-1 = "Siji:style=Regular"; modules-left = "i3"; @@ -194,6 +194,33 @@ in label-disconnected = "%ifname% disconnected"; label-disconnected-foreground = colors.foreground-alt; }; + "module/pulseaudio" = { + type = "internal/pulseaudio"; + + format-volume = " "; + label-volume = "VOL %percentage%%"; + label-volume-foreground = colors.foreground; + + label-muted = "🔇 muted"; + label-muted-foreground = "#666"; + + 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 = 1; + bar-volume-fill = "–"; + bar-volume-fill-font = 1; + bar-volume-empty = "–"; + bar-volume-empty-font = 1; + bar-volume-empty-foreground = colors.foreground-alt; + }; }; }; }