2024-12-20 18:56:07 +00:00
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
services.polybar = {
|
|
|
|
enable = true;
|
|
|
|
script = "polybar &";
|
|
|
|
settings =
|
|
|
|
let
|
|
|
|
background = "#0000";
|
|
|
|
foreground = "#030910";
|
|
|
|
color0 = "#d9eafd";
|
|
|
|
color1 = "#bcccdc";
|
|
|
|
color2 = "#9aa6b2";
|
|
|
|
in {
|
|
|
|
"global/wm" = {
|
|
|
|
margin-top = 2;
|
|
|
|
margin-bottom = 2;
|
|
|
|
};
|
|
|
|
"bar/top" = {
|
|
|
|
background = background;
|
|
|
|
foreground = foreground;
|
|
|
|
width = "100%";
|
|
|
|
height = 32;
|
|
|
|
font-0 = "GohuFont:style=Regular:size=14;3";
|
2024-12-30 01:01:29 +00:00
|
|
|
modules-left = "xworkspaces audio";
|
2024-12-29 03:26:07 +00:00
|
|
|
modules-right = "cpu memory date";
|
2024-12-20 18:56:07 +00:00
|
|
|
module-margin = 1;
|
|
|
|
offset-y = 14;
|
|
|
|
padding = 2;
|
2024-12-29 03:34:51 +00:00
|
|
|
bottom = true;
|
2024-12-20 18:56:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
"module/cpu" = {
|
|
|
|
type = "internal/cpu";
|
|
|
|
label = "CPU: %percentage%%";
|
|
|
|
label-background = color0;
|
|
|
|
label-padding = 2;
|
|
|
|
interval = 2;
|
|
|
|
};
|
|
|
|
"module/memory" = {
|
|
|
|
type = "internal/memory";
|
|
|
|
label = "RAM: %percentage_used%%";
|
|
|
|
label-background = color1;
|
|
|
|
label-padding = 2;
|
|
|
|
interval = 2;
|
|
|
|
};
|
|
|
|
"module/xwindow" = {
|
|
|
|
type = "internal/xwindow";
|
|
|
|
label-active-font = 0;
|
|
|
|
};
|
|
|
|
"module/xworkspaces" = {
|
|
|
|
type = "internal/xworkspaces";
|
|
|
|
enable-scroll = false;
|
|
|
|
label-active = "%name%";
|
2024-12-29 03:34:51 +00:00
|
|
|
label-active-background = color1;
|
2024-12-20 18:56:07 +00:00
|
|
|
label-active-padding = 1;
|
|
|
|
label-occupied = "%name%";
|
2024-12-29 03:34:51 +00:00
|
|
|
label-occupied-background = color2;
|
2024-12-20 18:56:07 +00:00
|
|
|
label-occupied-padding = 1;
|
|
|
|
label-empty = "%name%";
|
|
|
|
label-empty-foreground = "#fff";
|
|
|
|
label-empty-padding = 1;
|
|
|
|
label-urgent = "%name%";
|
|
|
|
label-urgent-background = color0;
|
|
|
|
label-urgent-padding = 1;
|
|
|
|
};
|
|
|
|
"module/audio" = {
|
2024-12-30 01:01:29 +00:00
|
|
|
type = "internal/alsa";
|
2024-12-30 01:12:20 +00:00
|
|
|
format-volume = "<label-volume>";
|
|
|
|
format-muted = "<label-muted>";
|
|
|
|
label-volume = "SND: %percentage%%";
|
|
|
|
label-muted = "SND: 0%";
|
|
|
|
label-volume-background = color0;
|
|
|
|
label-volume-padding = 2;
|
|
|
|
label-muted-background = color0;
|
|
|
|
label-muted-padding = 2;
|
|
|
|
click-right = "pavucontrol";
|
2024-12-20 18:56:07 +00:00
|
|
|
};
|
|
|
|
"module/battery" = {
|
|
|
|
type = "internal/battery";
|
|
|
|
battery = "BAT0";
|
|
|
|
adapter = "ADP1";
|
|
|
|
label-charging = "BAT: %percentage%%++";
|
|
|
|
label-discharging = "BAT: %percentage%%";
|
|
|
|
label-background = color1;
|
|
|
|
label-padding = 2;
|
|
|
|
};
|
|
|
|
"module/date" = {
|
|
|
|
type = "internal/date";
|
|
|
|
date = "%b %d %y";
|
|
|
|
time = "%I:%M %p";
|
2024-12-29 03:34:51 +00:00
|
|
|
label-background = color2;
|
2024-12-20 18:56:07 +00:00
|
|
|
label-padding = 2;
|
|
|
|
interval = 5;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|