aboutsummaryrefslogtreecommitdiff
path: root/.config/waybar/config
blob: 1a5e021dc48d2dbf542bcc974ff87371446055af (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
	"layer": "top",
	"position": "top",
	"height": 50,
	"spacing": 5,
	"margin-bottom": -11,
	"margin-left": 10,
	"margin-right": 13,
	"modules-left": ["hyprland/workspaces"],
	"modules-center": ["hyprland/window"],
	"modules-right": ["tray","custom/keylock","custom/media","pulseaudio","memory","cpu","clock"],
	// custom modules ////////////////
	"wlr/workspaces": {
		"format": "{icon}",
		"format-active": "{icon}",
		"on-click": "activate",
		"format-icons":{
			"1": "α",
			"2": "β",
			"3": "γ",
			"4": "δ",
			"5": "ε",
			"6": "ζ",
			"7": "η",
			"8": "θ",
			"9": "ι",
			"10":"κ"
		}
	},
	"hyprland/window": {
		"format": "{}",
		"rewrite": {
			"(.*) - Mozilla Firefox": "$1",
			"(.*) - qutebrowser": "$1",
			"": "Hyprland"
		},
		"separate-outputs": true
	},
	"tray": {
		// "icon-size": 21,
		"spacing": 10
	},
	"clock": {
		"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
		"interval": 60,
		"format": "{:%H:%M %d.%m.%y}",
		"max-length": 25
	},
	"cpu": {
		"interval":1,
		"format": "{icon0} {icon1} {icon2} {icon3}",
		"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
		"on-click": "alacritty -e btop"
	},
	"memory": {
		"format": "{}%  "
	},
	"pulseaudio": {
		// "scroll-step": 1, // %, can be a float
		"format": "{format_source}",
		"format-bluetooth": "{volume}% {icon}  {format_source}",
		"format-bluetooth-muted": " {icon} {format_source}",
		"format-muted": " {format_source}",
		"format-icons": {
			"headphone": "󰋋",
			"hands-free": "󰋋",
			"headset": "󰋋",
			"phone": "",
			"portable": "",
			"car": "",
			"default": ["", "", ""]
		},
		"on-click": "pavucontrol"
	},
	"custom/media": {
		"interval": "once",
		"format": "{}",
		"max-length": 40,
		"on-click": "playerctl play-pause && pkill -RTMIN+9 waybar",
		"on-click-right": "playerctl stop && pkill -RTMIN+9 waybar",
		"exec": "sleep 0.1 && playerctl status",
		"signal": 9
	},
	"custom/keylock": {
		"interval": "once",
		"format": "{}",
		"on-click": "keyusbctl -t && pkill -RTMIN+10 waybar",
		"exec": "keylock",
		"exec-on-event" : true,
		"signal": 10
	}
}