summaryrefslogtreecommitdiffstats
path: root/.config/waybar/config.jsonc
diff options
context:
space:
mode:
Diffstat (limited to '.config/waybar/config.jsonc')
-rw-r--r--.config/waybar/config.jsonc247
1 files changed, 247 insertions, 0 deletions
diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc
new file mode 100644
index 0000000..373ac78
--- /dev/null
+++ b/.config/waybar/config.jsonc
@@ -0,0 +1,247 @@
1// -*- mode: jsonc -*-
2{
3 "layer": "top", // Waybar at top layer
4 "position": "top", // Waybar position (top|bottom|left|right)
5 "height": 20, // Waybar height (to be removed for auto height)
6 // "width": 1280, // Waybar width
7 "spacing": 4, // Gaps between modules (4px)
8 // Choose the order of the modules
9 "modules-left": [
10 "hyprland/workspaces",
11 "custom/focus"
12 ],
13 "modules-center": [
14 "hyprland/window"
15 ],
16 "modules-right": [
17 "mpris",
18 // "mpd",
19 // "idle_inhibitor",
20 "pulseaudio",
21 // "network",
22 // "cpu",
23 // "memory",
24 // "temperature",
25 // "backlight",
26 // "keyboard-state",
27 // "sway/language",
28 "battery",
29 // "battery#bat2",
30 "clock",
31 "privacy",
32 "tray"
33 ],
34 // Modules configuration
35 "hyprland/window": {
36 "max-length": 40
37 },
38 "hyprland/workspaces": {
39 "disable-scroll": true,
40 "all-outputs": true,
41 "warp-on-scroll": false,
42 // "format": "{name}: {icon}",
43 "format": "{icon}",
44 "format-icons": {
45 "1": "1",
46 "2": "2",
47 "3": "3",
48 "4": "4",
49 "5": "5",
50 "6": "6",
51 "7": "7",
52 "8": "8",
53 "9": "9",
54 "desktop": "",
55 "console": "",
56 "browser": "",
57 "zotero": "",
58 "music": "",
59 // "urgent": "",
60 // "active": "◎",
61 "default": ""
62 }
63 },
64 "keyboard-state": {
65 "numlock": true,
66 "capslock": true,
67 "format": "{name} {icon}",
68 "format-icons": {
69 "locked": "",
70 "unlocked": ""
71 }
72 },
73 "sway/mode": {
74 "format": "<span style=\"italic\">{}</span>"
75 },
76 "sway/scratchpad": {
77 "format": "{icon} {count}",
78 "show-empty": false,
79 "format-icons": ["", ""],
80 "tooltip": true,
81 "tooltip-format": "{app}: {title}"
82 },
83 "mpd": {
84 "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
85 "format-disconnected": "Disconnected ",
86 "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
87 "unknown-tag": "N/A",
88 "interval": 2,
89 "consume-icons": {
90 "on": " "
91 },
92 "random-icons": {
93 "off": "<span color=\"#f53c3c\"></span> ",
94 "on": " "
95 },
96 "repeat-icons": {
97 "on": " "
98 },
99 "single-icons": {
100 "on": "1 "
101 },
102 "state-icons": {
103 "paused": "",
104 "playing": ""
105 },
106 "tooltip-format": "MPD (connected)",
107 "tooltip-format-disconnected": "MPD (disconnected)"
108 },
109 "idle_inhibitor": {
110 "format": "{icon}",
111 "format-icons": {
112 "activated": "",
113 "deactivated": ""
114 }
115 },
116 "tray": {
117 // "icon-size": 21,
118 "spacing": 10
119 },
120 "clock": {
121 "format": "{:%H:%M | %B %d, %A}",
122 "tooltip-format": "<tt><small>{calendar}</small></tt>",
123 },
124 "cpu": {
125 "format": "{usage}% ",
126 "tooltip": false
127 },
128 "memory": {
129 "format": "{}% "
130 },
131 "temperature": {
132 // "thermal-zone": 2,
133 // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
134 "critical-threshold": 80,
135 // "format-critical": "{temperatureC}°C {icon}",
136 "format": "{temperatureC}°C {icon}",
137 "format-icons": ["", "", ""]
138 },
139 "backlight": {
140 // "device": "acpi_video1",
141 "format": "{percent}% {icon}",
142 "format-icons": ["", "", "", "", "", "", "", "", ""]
143 },
144 "battery": {
145 "states": {
146 // "good": 95,
147 "warning": 30,
148 "critical": 15
149 },
150 "format": "{capacity}% {icon}",
151 "format-full": "{capacity}% {icon}",
152 "format-charging": "{capacity}% ",
153 "format-plugged": "{capacity}% ",
154 "format-alt": "{time} {icon}",
155 // "format-good": "", // An empty format will hide the module
156 // "format-full": "",
157 "format-icons": ["", "", "", "", ""]
158 },
159 "battery#bat2": {
160 "bat": "BAT2"
161 },
162 "network": {
163 // "interface": "wlp2*", // (Optional) To force the use of this interface
164 "format-wifi": "{signalStrength}% ",
165 "format-ethernet": "{ipaddr}/{cidr} ",
166 "tooltip-format": "{ifname} via {gwaddr} ",
167 "format-linked": "{ifname} (No IP) ",
168 "format-disconnected": "Disconnected",
169 "format-alt": "{ifname}: {ipaddr}/{cidr}"
170 },
171 "pulseaudio": {
172 // "scroll-step": 1, // %, can be a float
173 "format": "{volume}% {icon}",
174 "format-bluetooth": "{volume}% {icon} ",
175 "format-bluetooth-muted": " {icon} ",
176 // "format": "{volume}% {icon} {format_source}",
177 // "format-bluetooth": "{volume}% {icon}  {format_source}",
178 // "format-bluetooth-muted": " {icon}  {format_source}",
179 "format-muted": "  ",
180 // "format-source": "{volume}% ",
181 // "format-source-muted": "",
182 "format-icons": {
183 "headphone": "",
184 "hands-free": "",
185 "headset": "",
186 "phone": "",
187 "portable": "",
188 "car": "",
189 "default": [" ", " ", " "]
190 },
191 "on-click": "pavucontrol"
192 },
193 "custom/media": {
194 "format": "{icon} {}",
195 "return-type": "json",
196 "max-length": 40,
197 "format-icons": {
198 "spotify": "",
199 "default": "🎜"
200 },
201 "escape": true,
202 "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
203 // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
204 },
205 "mpris": {
206 "format": "{player_icon} {dynamic}",
207 "format-paused": "{status_icon} {dynamic}",
208 "dynamic-len": 36,
209 "player-icons": {
210 "default": "",
211 "mpv": "🎵"
212 },
213 "status-icons": {
214 "playing": "",
215 "paused": "",
216 "stopped": ""
217 },
218 "dynamic-order": [
219 "artist",
220 "title"
221 ]
222 // "ignored-players": ["firefox"]
223 },
224 "privacy": {
225 "icon-spacing": 4,
226 "icon-size": 18,
227 "transition-duration": 120,
228 "modules": [
229 {
230 "type": "screenshare",
231 "tooltip": true,
232 "tooltip-icon-size": 24
233 },
234 {
235 "type": "audio-in",
236 "tooltip": true,
237 "tooltip-icon-size": 24
238 }
239 ]
240 },
241 "custom/focus": {
242 "exec": "/home/yigit/.config/polybar/scripts/focus",
243 "interval": 5,
244 "format": "{}"
245 }
246}
247