summaryrefslogtreecommitdiff
path: root/dot_config/waybar/config
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/waybar/config')
-rw-r--r--dot_config/waybar/config210
1 files changed, 210 insertions, 0 deletions
diff --git a/dot_config/waybar/config b/dot_config/waybar/config
new file mode 100644
index 0000000..a1c11d5
--- /dev/null
+++ b/dot_config/waybar/config
@@ -0,0 +1,210 @@
1[
2 {
3 "position": "top",
4 "name": "main",
5 "layer": "top",
6
7 "modules-left": [
8 "temperature",
9 "cpu",
10 "memory",
11 "disk#root",
12 "battery",
13 "sway/workspaces"
14 ],
15 "modules-center": [
16 "sway/window"
17 ],
18 "modules-right": [
19 "tray",
20 "custom/recorder",
21 "custom/inbox",
22 "custom/sunset",
23 "custom/vpn",
24 // "custom/notification",
25 "idle_inhibitor",
26 "pulseaudio#source",
27 "pulseaudio#sink",
28 "sway/language",
29 "network",
30 "clock"
31 ],
32
33 "temperature": {
34 "format": "🌡{temperatureC}°C"
35 },
36
37 "cpu": {
38 "interval": 2,
39 "format": "\uf2db {usage:2}%"
40 },
41
42 "memory": {
43 "interval": 30,
44 "format": "\uf1c0 {percentage:2}%"
45 },
46
47 "disk#root": {
48 "interval": 30,
49 "format": "\uf0c7 {percentage_used:2}%",
50 "path": "/"
51 },
52
53 "network": {
54 "format-ethernet": "🔌",
55 "format-wifi": "📡",
56 "format-disconnected": "🚫",
57 "format-disabled": "⚠",
58 "on-click": "iwgtk"
59 },
60
61 "sway/workspaces": {
62 "disable-scroll": true,
63 "format": "{icon}",
64 "format-icons": {
65 "default": "",
66 "focused": "",
67 "urgent": ""
68 }
69 },
70
71 "sway/window": {},
72
73 "tray": {},
74
75 "idle_inhibitor": {
76 "format": "{icon}",
77 "format-icons": {
78 "activated": "\uf06e",
79 "deactivated": "\uf070"
80 },
81 "tooltip-format-activated": "Idle inhibitor {status}. It prevents automatic screen locking and hibernation.",
82 "tooltip-format-deactivated": "Idle inhibitor {status}."
83 },
84
85 "sway/language": {
86 "format": "{flag}"
87 },
88
89 "pulseaudio#source": {
90 "format": "{format_source}",
91 "format-source": "\uf130",
92 "format-source-muted": "\uf131",
93 "tooltip-format": "{source_desc} is on {source_volume}%",
94 "on-click": "pavucontrol --tab=4",
95 "on-click-middle": "pactl set-source-mute @DEFAULT_SOURCE@ toggle",
96 "scroll-step": 0
97 },
98
99 "pulseaudio#sink": {
100 "format": "{icon}",
101 "format-muted": "🔇",
102 "format-bluetooth": "{icon} \uf294",
103 "tooltip-format": "{desc} is on {volume}%",
104 "format-icons": {
105 "default": [
106 "🔈",
107 "🔉",
108 "🔊",
109 "📢"
110 ]
111 },
112 "on-click": "pavucontrol --tab=3",
113 "on-click-middle": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
114 "scroll-step": 5
115 },
116
117 "battery": {
118 "format": "{icon} {capacity}%",
119 "format-charging": "{icon} {capacity}⚡",
120 "tooltip-format": "Current capacity: {capacity}%\n\n{timeTo}",
121 "states": {
122 "empty": 10,
123 "low": 20,
124 "half-low": 40,
125 "half": 60,
126 "high": 90,
127 "full": 100
128 },
129 "format-icons": {
130 "empty": "\uf244",
131 "low": "\uf243",
132 "half-low": "\uf243",
133 "half": "\uf242",
134 "high": "\uf241",
135 "full": "\uf240"
136 }
137 },
138
139 "clock": {
140 "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
141 "format": "{:%Y-%m-%d %H:%M}",
142 "on-click": "emacsclient --eval \"(world-clock)\"",
143 "on-click-right": "emacsclient --eval \"(calendar)\"",
144 "interval": 60
145 },
146
147 "custom/recorder": {
148 "format": "{}",
149 "return-type": "json",
150 "exec-on-event": true,
151 "interval": "once",
152 "signal": 8,
153 "exec": "waybar-screen-recorder",
154 "on-click": "toggle-screen-capture"
155 },
156
157 "custom/inbox": {
158 "format": "{} 📥",
159 "interval": 60,
160 "exec": "notmuch count tag:inbox",
161 "on-click": "sync-mail"
162 },
163
164 "custom/sunset": {
165 "format": "{icon}",
166 "format-icons": {
167 "off": "🌞",
168 "on": "🌛"
169 },
170 "return-type": "json",
171 "interval": "once",
172 "signal": 10,
173 "exec": "waybar-sunset",
174 "on-click": "waybar-sunset toggle",
175 "on-click-right": "waybar-sunset rotate",
176 "exec-if": "waybar-sunset check"
177 },
178
179 "custom/vpn": {
180 "format": "{}",
181 "return-type": "json",
182 "exec-on-event": true,
183 "interval": "once",
184 "signal": 9,
185 "exec": "waybar-vpn",
186 "on-click": "toggle-vpn"
187 },
188
189 "custom/notification": {
190 "tooltip": false,
191 "format": "{icon}",
192 "format-icons": {
193 "none": "🔔",
194 "notification": "🔔",
195 "inhibited-none": "🔔",
196 "inhibited-notification": "🔔",
197 "dnd-none": "🔕",
198 "dnd-notification": "🔕",
199 "dnd-inhibited-none": "🔕",
200 "dnd-inhibited-notification": "🔕"
201 },
202 "return-type": "json",
203 "exec": "swaync-client -swb",
204 "on-click": "swaync-client -t -sw",
205 "on-click-right": "swaync-client -d -sw",
206 "on-click-middle": "swaync-client -C -sw",
207 "escape": true
208 }
209 }
210]