95 lines
2.4 KiB
Nix
95 lines
2.4 KiB
Nix
|
{ pkgs, ... }:
|
||
|
let
|
||
|
# todo add this to flake.nix
|
||
|
colors = {
|
||
|
fg = "#FFFFFF";
|
||
|
bg = "#191830";
|
||
|
border = "#F72585";
|
||
|
warn = "#f00";
|
||
|
altfg = "#F72585";
|
||
|
|
||
|
invisible = "#00400080";
|
||
|
|
||
|
currentWorkspace = "#FAD000";
|
||
|
seperatorColor = "#FAD000";
|
||
|
};
|
||
|
|
||
|
script = "~/.config/scripts";
|
||
|
in
|
||
|
{
|
||
|
|
||
|
home-manager.users.grape.services.polybar = {
|
||
|
enable = true;
|
||
|
script = "polybar --reload";
|
||
|
|
||
|
config = {
|
||
|
|
||
|
"module/cava" = {
|
||
|
type = "custom/script";
|
||
|
tail = "true";
|
||
|
exec = "$HOME/.config/scripts/cava.sh";
|
||
|
format = "<label>";
|
||
|
format-font = 5;
|
||
|
label-foreground = "${colors.fg}";
|
||
|
label = " %{T1}%output%%{T-}";
|
||
|
};
|
||
|
|
||
|
"module/a" = {
|
||
|
label = " ";
|
||
|
label-foreground = "#FAD000";
|
||
|
type = "custom/text";
|
||
|
};
|
||
|
"module/music-capsule" = {
|
||
|
exec = "${script}/music.sh";
|
||
|
format = "%{T2}%{F${colors.bg}}%{F-}%{T-}<label>%{T2}%{F${colors.bg}}%{F-}%{T-}";
|
||
|
interval = ".5";
|
||
|
label-background = "${colors.bg}";
|
||
|
type = "custom/script";
|
||
|
};
|
||
|
|
||
|
"module/audio-capsule" = {
|
||
|
label-muted = "muted";
|
||
|
format-volume = "%{T2}%{F#191830}%{F-}%{T-}<label-volume>%{T2}%{F#191830}%{F-}%{T-}";
|
||
|
format-muted = "%{T2}%{F#191830}%{F-}%{T-}<label-muted>%{T2}%{F#191830}%{F-}%{T-}";
|
||
|
label-muted-foreground = "#FF0";
|
||
|
label-volume-background = "#191830";
|
||
|
label-muted-background = "#191830";
|
||
|
label-volume = "%percentage%%";
|
||
|
type = "internal/alsa";
|
||
|
use-ui-max = "true";
|
||
|
click-right = "pavucontrol";
|
||
|
};
|
||
|
|
||
|
"module/timew" = {
|
||
|
exec = "${script}/timew.sh";
|
||
|
format = "%{T2}%{F#191830}%{F-}%{T-}<label>%{T2}%{F#191830}%{F-}%{T-}";
|
||
|
interval = "1";
|
||
|
label-background = "#191830";
|
||
|
type = "custom/script";
|
||
|
};
|
||
|
|
||
|
|
||
|
"bar/bottom" = {
|
||
|
background = "#00191830";
|
||
|
border-color = "#00400080";
|
||
|
border-size = "10px";
|
||
|
bottom = "true";
|
||
|
font-0 = "Jetbrains Mono Nerd font:size=11;3";
|
||
|
font-1 = "Jetbrains Mono Nerd font:size=22;5";
|
||
|
foreground = "#FFFFFF";
|
||
|
height = "34";
|
||
|
modules-center = "cava";
|
||
|
modules-left = "audio-capsule a music-capsule a timew";
|
||
|
modules-right = "";
|
||
|
padding-left = "5";
|
||
|
padding-right = "5";
|
||
|
radius = "20";
|
||
|
width = "100%";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
};
|
||
|
}
|
||
|
|
||
|
|