🚀 change up polybar

dev-docs
Moritz Böhme 2022-07-02 14:09:15 +02:00
parent 2977182b8c
commit 6083a50be7
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
1 changed files with 54 additions and 42 deletions

View File

@ -13,27 +13,24 @@ in {
done done
''; '';
config = with config.scheme.withHashtag; { config = with config.scheme.withHashtag; {
"global/wm" = { margin-top = 5; };
"bar/bottom" = { "bar/bottom" = {
# position # position
monitor = "\${env:MONITOR}"; monitor = "\${env:MONITOR}";
bottom = true; bottom = true;
width = "100%:-20"; width = "100%";
heigth = 25; heigth = 20;
background = base00; background = base00;
foreground = base05; foreground = base05;
radius = 10;
offset-x = 10;
offset-y = 5;
padding = 1;
line-size = 3; border-size = 5;
line-color = base06; border-color = base00;
module-margin = 1; separator = " ";
separator = "%{F${base03}}%{F-}";
font-0 = "FiraCode Nerd Font:size=10;0"; font-0 = "FiraCode Nerd Font:size=9;0";
font-1 = "FiraCode Nerd Font:size=9;1";
font-2 = "FiraCode Nerd Font:size=9;2";
modules-left = "cpu memory network battery"; modules-left = "cpu memory network battery";
modules-center = "bspwm"; modules-center = "bspwm";
@ -53,11 +50,9 @@ in {
adapter = "ACAD"; adapter = "ACAD";
time-format = "%H:%M"; time-format = "%H:%M";
format-charging = format-charging = "<animation-charging> <label-charging>";
"%{F${base0B}}<animation-charging>%{F-} <label-charging>"; format-discharging = "<animation-discharging> <label-discharging>";
format-discharging = format-full = " <label-full>";
"%{F${base08}}<animation-discharging>%{F-} <label-discharging>";
format-full = "%{F${base08}} %{F-} <label-full>";
label-charging = "%percentage%% %time% remaining"; label-charging = "%percentage%% %time% remaining";
label-discharging = "%percentage%% %time% remaining"; label-discharging = "%percentage%% %time% remaining";
@ -105,16 +100,17 @@ in {
"module/cpu" = { "module/cpu" = {
type = "internal/cpu"; type = "internal/cpu";
interval = 2; interval = 2;
format = "<ramp-load><label>"; format = "<ramp-load><label>";
format-foreground = base00;
format-background = base0B;
format-padding = 1;
format-font = 3;
ramp-load-0 = " "; ramp-load-0 = " ";
ramp-load-0-foreground = base0B;
ramp-load-1 = " "; ramp-load-1 = " ";
ramp-load-1-foreground = base0B;
ramp-load-2 = " "; ramp-load-2 = " ";
ramp-load-2-foreground = base0A;
ramp-load-3 = " "; ramp-load-3 = " ";
ramp-load-3-foreground = base08;
label = "%percentage:2%%"; label = "%percentage:2%%";
}; };
@ -127,54 +123,66 @@ in {
label = "%time%"; label = "%time%";
format-prefix = " "; format-prefix = " ";
format-prefix-foreground = base0C; format-prefix-font = 2;
format-foreground = base00;
format-background = base0C;
format-padding = 1;
label-font = 3;
}; };
"module/date" = { "module/date" = {
type = "internal/date"; type = "internal/date";
interval = 5; interval = 5;
format = "<label>";
format-prefix = " ";
format-prefix-font = 2;
format-foreground = base00;
format-background = base0A;
format-padding = 1;
format-font = 3;
date = "%A"; date = "%A";
date-alt = "%Y-%m-%d"; date-alt = "%Y-%m-%d";
label = "%date%"; label = "%date%";
format-prefix = " "; label-font = 3;
format-prefix-foreground = base0A;
}; };
"module/memory" = { "module/memory" = {
type = "internal/memory"; type = "internal/memory";
interval = 2; interval = 2;
format = "<ramp-used><label>";
ramp-used-0 = " "; format = "<label>";
ramp-used-0-foreground = base0B; format-prefix = " ";
ramp-used-1 = " "; format-foreground = base00;
ramp-used-1-foreground = base0B; format-background = base0C;
ramp-used-2 = " "; format-padding = 1;
ramp-used-2-foreground = base0A; format-font = 2;
ramp-used-3 = " ";
ramp-used-3-foreground = base08;
label = "%gb_used%"; label = "%gb_used%";
label-font = 3;
}; };
"module/pulseaudio" = { "module/pulseaudio" = {
type = "internal/pulseaudio"; type = "internal/pulseaudio";
format-volume = "<ramp-volume> <label-volume>"; format-volume = "<ramp-volume> <label-volume>";
format-underline = base0A;
label-volume = "%percentage%%"; label-volume = "%percentage%%";
label-muted = "%{F${base08}} %{F-}muted"; format-volume-foreground = base00;
format-volume-background = base04;
format-volume-padding = 1;
format-volume-font = 2;
label-muted = "%{F${base08}} %{F${base00}}muted";
format-muted-foreground = base00;
format-muted-background = base04;
format-muted-padding = 1;
format-muted-font = 2;
ramp-volume-0 = ""; ramp-volume-0 = "";
ramp-volume-0-foreground = base0B;
ramp-volume-1 = ""; ramp-volume-1 = "";
ramp-volume-1-foreground = base0B;
ramp-volume-2 = "奔"; ramp-volume-2 = "奔";
ramp-volume-2-foreground = base0B;
ramp-volume-3 = ""; ramp-volume-3 = "";
ramp-volume-3-foreground = base0A;
ramp-volume-4 = ""; ramp-volume-4 = "";
ramp-volume-4-foreground = base08;
click-middle = "${pkgs.pavucontrol}/bin/pavucontrol"; click-middle = "${pkgs.pavucontrol}/bin/pavucontrol";
}; };
@ -184,8 +192,12 @@ in {
builtins.head (builtins.attrNames config.networking.interfaces); builtins.head (builtins.attrNames config.networking.interfaces);
interval = 3; interval = 3;
format-connected = "<label-connected>"; format-connected = "<label-connected>";
label-connected = label-connected = "%{T2}%{T3} %upspeed% %{T2}%{T3} %downspeed%";
"%{F${base0E}}%{F-} %upspeed% %{F${base06}}%{F-} %downspeed%";
format-connected-foreground = base00;
format-connected-background = base0E;
format-connected-padding = 1;
format-connected-font = 3;
}; };
}; };
}; };