aboutsummaryrefslogtreecommitdiff
path: root/.config/waybar/config
blob: ac1067005943d517b0cd151d4e6ebd78ff53f910 (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
93
94
95
{
	"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","battery","custom/keylock","mpris","pulseaudio","clock"],
	// custom modules ////////////////
	"wlr/workspaces": {
		"format": "{icon}",
		"format-active": "{icon}",
		"on-click": "activate",
	},
	"hyprland/window": {
		"format": "{}",
		"rewrite": {
			"(.*) - Mozilla Firefox": "$1",
			"(.*) - qutebrowser": "$1",
			"": "Hyprland"
		},
		"separate-outputs": true,
		"max-length": 20
	},
	"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": {
		"format": "{volume}% {icon}",
		"format-bluetooth": "{volume}% {icon} ",
		"format-muted": "",
		"format-icons": {
			"alsa_output.pci-0000_00_1f.3.analog-stereo": "󰓃",
			"headphones": "",
			"handsfree": "󰋋",
			"headset": "󰋋",
			"phone": "",
			"portable": "",
			"car": "",
			"default": ["", ""]
		},
		"scroll-step": 1,
		"on-click": "pavucontrol"
	},
	"custom/keylock": {
		"interval": "once",
		"format": "{}",
		"on-click": "keyusbctl -t && pkill -RTMIN+10 waybar",
		"exec": "keylock",
		"exec-on-event" : true,
		"signal": 10
	},
	"battery": {
		"interval": 60,
		"states": {
			"warning": 30,
			"critical": 15
		},
		"format": "{capacity}% {icon}",
		"format-icons": ["", "", "", "", ""],
	},
	"mpris": {
		"format": "{player_icon} {dynamic}",
		"format-paused": "{status_icon} <i>{dynamic}</i>",
		"player-icons": {
			"default": "▶",
			"mpv": "🎵"
		},
		"status-icons": {
			"paused": "⏸"
		},
		"interval": 0.1,
		"dynamic-len": 20,
		// "ignored-players": ["firefox"]
	}
}