prettify polybar

dev-docs
Moritz Böhme 2022-02-21 17:44:24 +01:00
parent ecedf91ec9
commit c018768e86
No known key found for this signature in database
GPG Key ID: 213820E2795F5CF5
1 changed files with 23 additions and 17 deletions

View File

@ -44,13 +44,13 @@
line-color = colors.pink; line-color = colors.pink;
module-margin = 1; module-margin = 1;
separator = "|"; separator = "%{F${colors.comment}}%{F-}";
font-0 = "FiraCode Nerd Font:size=10;0"; font-0 = "FiraCode Nerd Font:size=10;0";
modules-left = "cpu memory network battery"; modules-left = "cpu memory network battery";
modules-center = "bspwm"; modules-center = "bspwm";
modules-right = "pulseaudio date"; modules-right = "pulseaudio date time";
tray-position = "right"; tray-position = "right";
tray-padding = 2; tray-padding = 2;
@ -66,14 +66,11 @@
adapter = "ACAD"; adapter = "ACAD";
time-format = "%H:%M"; time-format = "%H:%M";
format-charging = "<animation-charging> <label-charging>"; format-charging =
format-charging-foreground = colors.green; "%{${colors.green}}<animation-charging>%{F-} <label-charging>";
format-discharging =
format-discharging = "<animation-discharging> <label-discharging>"; "%{${colors.red}}<animation-discharging>%{F-} <label-discharging>";
format-discharging-foreground = colors.red; format-full = "%{${colors.green}}%{F-} <label-full>";
format-full = "<label-full>";
format-full-foreground = colors.green;
label-charging = "%percentage%% %time% remaining"; label-charging = "%percentage%% %time% remaining";
label-discharging = "%percentage%% %time% remaining"; label-discharging = "%percentage%% %time% remaining";
@ -121,10 +118,21 @@
"module/cpu" = { "module/cpu" = {
type = "internal/cpu"; type = "internal/cpu";
interval = 2; interval = 2;
format-prefix = " "; format-prefix = " ";
format-prefix-foreground = colors.red; format-prefix-foreground = colors.red;
label = "%percentage:2%%"; label = "%percentage:2%%";
}; };
"module/time" = {
type = "internal/date";
interval = 1;
time = "%H:%M";
time-alt = "%H:%M:%S";
label = "%time%";
format-prefix = " ";
format-prefix-foreground = colors.cyan;
};
"module/date" = { "module/date" = {
type = "internal/date"; type = "internal/date";
interval = 5; interval = 5;
@ -132,12 +140,10 @@
date = "%A"; date = "%A";
date-alt = "%Y-%m-%d"; date-alt = "%Y-%m-%d";
time = "%H:%M"; label = "%date%";
time-alt = "%H:%M:%S"; format-prefix = " ";
format-prefix-foreground = colors.orange;
label = "%date% %time%";
click-middle = "${pkgs.kitty}/bin/kitty cal -m3";
}; };
"module/memory" = { "module/memory" = {
type = "internal/memory"; type = "internal/memory";
@ -145,7 +151,7 @@
format-prefix = " "; format-prefix = " ";
format-prefix-foreground = colors.green; format-prefix-foreground = colors.green;
label = "%percentage_used%%"; label = "%gb_used%";
}; };
"module/pulseaudio" = { "module/pulseaudio" = {
type = "internal/pulseaudio"; type = "internal/pulseaudio";