polybar pipewire

This commit is contained in:
CDaut 2024-04-18 23:37:26 +02:00
parent 049aa645ab
commit 832c3f4e52
Signed by: clara
GPG key ID: 223391B52FAD4463
3 changed files with 30 additions and 2 deletions

View file

@ -128,6 +128,7 @@
packageOverrides = pkgs: rec {
polybar = pkgs.polybar.override {
i3Support = true;
pulseSupport = true;
};
};
};

View file

@ -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
];

View file

@ -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> <bar-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;
};
};
};
}