summaryrefslogtreecommitdiff
path: root/common/home/programs/waybar/default.nix
blob: 8415b02d17972ecd8fa97d4e3965e67f65cf41dc (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{ ... }:
{
	enable = true;
	systemd.enable = true;
	settings = {
		mainBar = {
			layer = "top";
			position = "top";
			height = 20;
			outputs = "*";
			spacing = 0;
			modules-left = [
				"pulseaudio"
				"bluetooth"
				"hyprland/language"
				"battery"
			];
			modules-center = [
				"clock"
			];
			modules-right = [
				"tray"
			];


			"hyprland/window" = {
				separate-outputs = true;
			};

			bluetooth = {
				format = "";
				format-disabled = "󰂲";
				format-off = "󰂲";
				format-on = "";
				format-connected = "󰂱";
				on-click = "blueman";
			};

			battery = {
				states = {
					warning = 15;
					critical = 5;
				};
			};

			tray = {
				icon-size = 12;
				spacing = 10;
			};

			"pulseaudio/slider" = {
				min = 0;
				max = 100;
				orientation = "horizontal";
			};
			
			"hyprland/language" = {
				format = "{}";
				format-en = "US";
				"format-de" = "CH";
			};
		};
	};
	style = ./style.css;
}