aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/status-bar/polybar/bar/main.nix
blob: d1f05b2a63538247533178a1229557403e59b532 (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
39
40
{ 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 = base03;

	background = base00;
	foreground = base05;

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

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

	separator = "%{F${base03}}│%{F-}";

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

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

	font-0 = "${config.fonts.normal}:pixelsize=${toString config.fonts.size};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";
}