aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/status-bar/polybar/bar/main.nix
blob: 34858d81fdec38516bf076a2e16d8d22591344b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ config }:

with config.scheme.withHashtag;
{
	width = "\${env:POLYBAR_WIDTH}";
	fixed-center = false;
	height = 35;

	border-top-size = 1;
	border-bottom-size = 1;
	border-left-size = 1;
	border-right-size = 1;
	border-color = base02;

	background = base00;
	foreground = base05;

	line-size = 3;
	line-color = base08;

	padding-left = 1;
	padding-right = 1;

	module-margin-left = 2;
	module-margin-right = 2;

	offset-x = "\${env:POLYBAR_OFFSET}";
	offset-y = "\${env:POLYBAR_OFFSET}";

	font-0 = "FiraCode Nerd Font:pixelsize=16;3";

	modules-left =
		if config.desktop.window-manager.bspwm.enable then
			"bspwm"
		else null;
	modules-center = "xwindow";
	modules-right = "memory cpu battery time date kernel-version";
}