prettify polybar

nixos
Moritz Böhme 2022-02-11 22:22:50 +01:00
parent 60590e1230
commit 27fb92b8bd
No known key found for this signature in database
GPG Key ID: 213820E2795F5CF5
1 changed files with 16 additions and 21 deletions

View File

@ -38,10 +38,14 @@
radius = 10; radius = 10;
offset-x = 10; offset-x = 10;
offset-y = 5; offset-y = 5;
padding = 1;
line-size = 3; line-size = 3;
line-color = colors.pink; line-color = colors.pink;
module-margin = 1;
separator = "|";
font-0 = "FiraCode Nerd Font:size=10;0"; font-0 = "FiraCode Nerd Font:size=10;0";
modules-left = "cpu memory wlan eth battery"; modules-left = "cpu memory wlan eth battery";
@ -60,16 +64,13 @@
time-format = "%H:%M"; time-format = "%H:%M";
format-charging = "<animation-charging> <label-charging>"; format-charging = "<animation-charging> <label-charging>";
format-charging-underline = colors.green; format-charging-foreground = colors.green;
format-charging-padding = 1;
format-discharging = "<animation-discharging> <label-discharging>"; format-discharging = "<animation-discharging> <label-discharging>";
format-discharging-underline = colors.red; format-discharging-foreground = colors.red;
format-discharging-padding = 1;
format-full = "<label-full>"; format-full = "<label-full>";
format-full-underline = colors.green; format-full-foreground = colors.green;
format-full-padding = 1;
label-charging = "%percentage%% %time% remaining"; label-charging = "%percentage%% %time% remaining";
label-discharging = "%percentage%% %time% remaining"; label-discharging = "%percentage%% %time% remaining";
@ -119,8 +120,6 @@
interval = 2; interval = 2;
format-prefix = " "; format-prefix = " ";
format-prefix-foreground = colors.red; format-prefix-foreground = colors.red;
format-underline = colors.red;
format-padding = 2;
label = "%percentage:2%%"; label = "%percentage:2%%";
}; };
"module/date" = { "module/date" = {
@ -133,9 +132,6 @@
time = "%H:%M"; time = "%H:%M";
time-alt = "%H:%M:%S"; time-alt = "%H:%M:%S";
format-underline = colors.purple;
format-padding = 2;
label = "%date% %time%"; label = "%date% %time%";
click-middle = "${pkgs.kitty}/bin/kitty cal -m3"; click-middle = "${pkgs.kitty}/bin/kitty cal -m3";
@ -145,8 +141,6 @@
interval = 2; interval = 2;
format-prefix = " "; format-prefix = " ";
format-prefix-foreground = colors.green; format-prefix-foreground = colors.green;
format-underline = colors.green;
format-padding = 2;
label = "%percentage_used%%"; label = "%percentage_used%%";
}; };
@ -154,16 +148,21 @@
type = "internal/pulseaudio"; type = "internal/pulseaudio";
format-volume = "<ramp-volume> <label-volume>"; format-volume = "<ramp-volume> <label-volume>";
format-padding = 2;
format-underline = colors.orange; format-underline = colors.orange;
label-volume = "%percentage%%"; label-volume = "%percentage%%";
label-volume-foreground = colors.foreground;
label-muted = " muted"; label-muted = " muted";
label-muted-foreground = colors.red; label-muted-foreground = colors.red;
ramp-volume-0 = ""; ramp-volume-0 = "";
ramp-volume-1 = "奔"; ramp-volume-0-foreground = colors.green;
ramp-volume-2 = ""; ramp-volume-1 = "";
ramp-volume-1-foreground = colors.green;
ramp-volume-2 = "奔";
ramp-volume-2-foreground = colors.green;
ramp-volume-3 = "";
ramp-volume-3-foreground = colors.orange;
ramp-volume-4 = "";
ramp-volume-4-foreground = colors.red;
click-middle = "${pkgs.pavucontrol}/bin/pavucontrol"; click-middle = "${pkgs.pavucontrol}/bin/pavucontrol";
}; };
@ -171,19 +170,15 @@
type = "internal/network"; type = "internal/network";
interface = "enp42s0"; interface = "enp42s0";
interval = 3; interval = 3;
format-connected-underline = colors.purple;
format-connected = "<label-connected>"; format-connected = "<label-connected>";
label-connected = " %upspeed% %downspeed%"; label-connected = " %upspeed% %downspeed%";
format-connected-padding = 2;
}; };
"module/wlan" = { "module/wlan" = {
type = "internal/network"; type = "internal/network";
interface = "wlp1s0"; interface = "wlp1s0";
interval = 3; interval = 3;
format-connected-underline = colors.purple;
format-connected = "<label-connected>"; format-connected = "<label-connected>";
label-connected = " %upspeed% %downspeed%"; label-connected = " %upspeed% %downspeed%";
format-connected-padding = 2;
}; };
}; };
}; };