Skip to content

Commit d79e26f

Browse files
committed
checkin local waybar config
1 parent 84c4def commit d79e26f

2 files changed

Lines changed: 544 additions & 0 deletions

File tree

.config/waybar/config.jsonc

Lines changed: 217 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,217 @@
1+
// -*- mode: jsonc -*-
2+
{
3+
// "layer": "top", // Waybar at top layer
4+
// "position": "bottom", // Waybar position (top|bottom|left|right)
5+
"height": 30, // 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+
"hyprland/mode",
12+
"hyprland/scratchpad",
13+
"custom/media"
14+
],
15+
"modules-center": [
16+
"hyprland/window"
17+
],
18+
"modules-right": [
19+
"idle_inhibitor",
20+
"pulseaudio",
21+
"power-profiles-daemon",
22+
"cpu",
23+
"memory",
24+
"temperature",
25+
"backlight",
26+
"keyboard-state",
27+
"hyprland/language",
28+
"battery",
29+
"battery#bat2",
30+
"clock",
31+
"tray",
32+
"custom/power"
33+
],
34+
// Modules configuration
35+
// "hyprland/workspaces": {
36+
// "disable-scroll": true,
37+
// "all-outputs": true,
38+
// "warp-on-scroll": false,
39+
// "format": "{name}: {icon}",
40+
// "format-icons": {
41+
// "1": "",
42+
// "2": "",
43+
// "3": "",
44+
// "4": "",
45+
// "5": "",
46+
// "urgent": "",
47+
// "focused": "",
48+
// "default": ""
49+
// }
50+
// },
51+
"keyboard-state": {
52+
"numlock": true,
53+
"capslock": true,
54+
"format": "{name} {icon}",
55+
"format-icons": {
56+
"locked": "",
57+
"unlocked": ""
58+
}
59+
},
60+
"hyprland/mode": {
61+
"format": "<span style=\"italic\">{}</span>"
62+
},
63+
"hyprland/scratchpad": {
64+
"format": "{icon} {count}",
65+
"show-empty": false,
66+
"format-icons": ["", ""],
67+
"tooltip": true,
68+
"tooltip-format": "{app}: {title}"
69+
},
70+
"mpd": {
71+
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
72+
"format-disconnected": "Disconnected ",
73+
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
74+
"unknown-tag": "N/A",
75+
"interval": 5,
76+
"consume-icons": {
77+
"on": ""
78+
},
79+
"random-icons": {
80+
"off": "<span color=\"#f53c3c\"></span> ",
81+
"on": ""
82+
},
83+
"repeat-icons": {
84+
"on": ""
85+
},
86+
"single-icons": {
87+
"on": "1 "
88+
},
89+
"state-icons": {
90+
"paused": "",
91+
"playing": ""
92+
},
93+
"tooltip-format": "MPD (connected)",
94+
"tooltip-format-disconnected": "MPD (disconnected)"
95+
},
96+
"idle_inhibitor": {
97+
"format": "{icon}",
98+
"format-icons": {
99+
"activated": "",
100+
"deactivated": ""
101+
}
102+
},
103+
"tray": {
104+
// "icon-size": 21,
105+
"spacing": 10,
106+
// "icons": {
107+
// "blueman": "bluetooth",
108+
// "TelegramDesktop": "$HOME/.local/share/icons/hicolor/16x16/apps/telegram.png"
109+
// }
110+
},
111+
"clock": {
112+
// "timezone": "America/New_York",
113+
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
114+
"format-alt": "{:%Y-%m-%d}"
115+
},
116+
"cpu": {
117+
"format": "{usage}% ",
118+
"tooltip": false
119+
},
120+
"memory": {
121+
"format": "{}% "
122+
},
123+
"temperature": {
124+
// "thermal-zone": 2,
125+
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
126+
"critical-threshold": 80,
127+
// "format-critical": "{temperatureC}°C {icon}",
128+
"format": "{temperatureC}°C {icon}",
129+
"format-icons": ["", "", ""]
130+
},
131+
"backlight": {
132+
// "device": "acpi_video1",
133+
"format": "{percent}% {icon}",
134+
"format-icons": ["", "", "", "", "", "", "", "", ""]
135+
},
136+
"battery": {
137+
"states": {
138+
// "good": 95,
139+
"warning": 30,
140+
"critical": 15
141+
},
142+
"format": "{capacity}% {icon}",
143+
"format-full": "{capacity}% {icon}",
144+
"format-charging": "{capacity}% ",
145+
"format-plugged": "{capacity}% ",
146+
"format-alt": "{time} {icon}",
147+
// "format-good": "", // An empty format will hide the module
148+
// "format-full": "",
149+
"format-icons": ["", "", "", "", ""]
150+
},
151+
"battery#bat2": {
152+
"bat": "BAT2"
153+
},
154+
"power-profiles-daemon": {
155+
"format": "{icon}",
156+
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
157+
"tooltip": true,
158+
"format-icons": {
159+
"default": "",
160+
"performance": "",
161+
"balanced": "",
162+
"power-saver": ""
163+
}
164+
},
165+
"network": {
166+
// "interface": "wlp2*", // (Optional) To force the use of this interface
167+
"format-wifi": "{essid} ({signalStrength}%) ",
168+
"format-ethernet": "{ipaddr}/{cidr} ",
169+
"tooltip-format": "{ifname} via {gwaddr} ",
170+
"format-linked": "{ifname} (No IP) ",
171+
"format-disconnected": "Disconnected ⚠",
172+
"format-alt": "{ifname}: {ipaddr}/{cidr}"
173+
},
174+
"pulseaudio": {
175+
// "scroll-step": 1, // %, can be a float
176+
"format": "{volume}% {icon} {format_source}",
177+
"format-bluetooth": "{volume}% {icon} {format_source}",
178+
"format-bluetooth-muted": " {icon} {format_source}",
179+
"format-muted": " {format_source}",
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} {text}",
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+
"custom/power": {
206+
"format" : "",
207+
"tooltip": false,
208+
"menu": "on-click",
209+
"menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder
210+
"menu-actions": {
211+
"shutdown": "shutdown",
212+
"reboot": "reboot",
213+
"suspend": "systemctl suspend",
214+
"hibernate": "systemctl hibernate"
215+
}
216+
}
217+
}

0 commit comments

Comments
 (0)