irongit

Waybar configuration

dotbar/ModulesCustom
277 lines7.2 KB
1//* ---- 💫 https://github.com/JaKooLit 💫 ---- *//
2/* Waybar Modules - Custom Modules */
3/* Basically created to reduce the lines in Waybar Modules bank */
4/* NOTE: This is only for Custom Modules */
5/* Custom Modules like weather browser, tty, file manager at the beginning */
6
7{
8"custom/window-info": {
9 "exec": "$HOME/.config/waybar/scripts/window-info.sh",
10 "return-type": "json",
11 "interval": 1,
12 "tooltip": true,
13 "max-length": 40,
14},
15
16"custom/weather": {
17 "format": "{}",
18 "format-alt": "{alt}: {}",
19 "format-alt-click": "click",
20 "interval": 3600,
21 "return-type": "json",
22 "exec": "$HOME/.config/hypr/UserScripts/Weather.py",
23 //"exec": "$HOME/.config/hypr/UserScripts/Weather.sh",
24 //"exec-if": "ping wttr.in -c1",
25 "tooltip": true,
26},
27
28"custom/file_manager": {
29 "format": " ",
30 "on-click": "xdg-open . &",
31 "tooltip": true,
32 "tooltip-format": "File Manager",
33},
34
35"custom/tty": {
36 "format": " ",
37 "on-click": "$HOME/.config/hypr/scripts/WaybarScripts.sh --term",
38 "tooltip": true,
39 "tooltip-format": "Launch Terminal",
40},
41
42"custom/browser": {
43 "format": " ",
44 "on-click": "xdg-open https://",
45 "tooltip": true,
46 "tooltip-format": "Launch Browser",
47},
48
49"custom/settings": {
50 "format": " ",
51 "on-click": "$HOME/.config/hypr/scripts/Kool_Quick_Settings.sh",
52 "tooltip": true,
53 "tooltip-format": "Launch KooL Hyprland Settings Menu",
54},
55
56"custom/cycle_wall": {
57 "format": " ",
58 "on-click": "$HOME/.config/hypr/UserScripts/WallpaperSelect.sh",
59 "on-click-right": "$HOME/.config/hypr/UserScripts/WallpaperRandom.sh",
60 "on-click-middle": "$HOME/.config/hypr/scripts/WaybarStyles.sh",
61 "tooltip": true,
62 "tooltip-format": "Left Click: Wallpaper Menu\nMiddle Click: Random wallpaper\nRight Click: Waybar Styles Menu",
63},
64
65"custom/hint": {
66 "format": "󰺁 HINT!",
67 "on-click": "$HOME/.config/hypr/scripts/KeyHints.sh",
68 "on-click-right": "$HOME/.config/hypr/scripts/KeyBinds.sh",
69 "tooltip": true,
70 "tooltip-format": "Left Click: Quick Tips\nRight Click: Keybinds",
71},
72
73"custom/dot_update": {
74 "format": " 󰁈 ",
75 "on-click": "$HOME/.config/hypr/scripts/KooLsDotsUpdate.sh",
76 "tooltip": true,
77 "tooltip-format": "Check KooL Dots update\nIf available",
78},
79
80// Hypridle inhibitor
81"custom/hypridle": {
82 "format": "󱫗 ",
83 "return-type": "json",
84 "escape": true,
85 "exec-on-event": true,
86 "interval": 60,
87 "exec": "$HOME/.config/hypr/scripts/Hypridle.sh status",
88 "on-click": "$HOME/.config/hypr/scripts/Hypridle.sh toggle",
89 "on-click-right": "hyprlock"
90},
91
92"custom/keyboard": {
93 "exec": "cat $HOME/.cache/kb_layout",
94 "interval": 1,
95 "format": " {}",
96 "on-click": "$HOME/.config/hypr/scripts/SwitchKeyboardLayout.sh",
97},
98
99"custom/light_dark": {
100 "format": "󰔎 ",
101 "on-click": "$HOME/.config/hypr/scripts/DarkLight.sh",
102 "on-click-right": "$HOME/.config/hypr/scripts/WaybarStyles.sh",
103 "on-click-middle": "$HOME/.config/hypr/UserScripts/WallpaperSelect.sh",
104 "tooltip": true,
105 "tooltip-format": "Left Click: Switch Dark-Light Themes\nMiddle Click: Wallpaper Menu\nRight Click: Waybar Styles Menu",
106},
107
108"custom/lock": {
109 "format": "󰌾",
110 "on-click": "$HOME/.config/hypr/scripts/LockScreen.sh",
111 "tooltip": true,
112 "tooltip-format": "󰷛 Screen Lock",
113},
114
115"custom/menu": {
116 "format": "  ",
117 "on-click": "pkill rofi || rofi -show drun -modi run,drun,filebrowser,window",
118 "on-click-middle": "$HOME/.config/hypr/UserScripts/WallpaperSelect.sh",
119 "on-click-right": "$HOME/.config/hypr/scripts/WaybarLayout.sh",
120 "tooltip": true,
121 "tooltip-format": "Left Click: Rofi Menu\nMiddle Click: Wallpaper Menu\nRight Click: Waybar Layout Menu",
122},
123// This is a custom cava visualizer
124"custom/cava_mviz": {
125 "exec": "$HOME/.config/hypr/scripts/WaybarCava.sh",
126 "format": "{}"
127},
128
129"custom/playerctl": {
130 "format": "<span>{}</span>",
131 "return-type": "json",
132 "max-length": 25,
133 "exec": "playerctl -a metadata --format '{\"text\": \"{{artist}} {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F",
134 "on-click-middle": "playerctl play-pause",
135 "on-click": "playerctl previous",
136 "on-click-right": "playerctl next",
137 "scroll-step": 5.0,
138 "on-scroll-up": "$HOME/.config/hypr/scripts/Volume.sh --inc",
139 "on-scroll-down": "$HOME/.config/hypr/scripts/Volume.sh --dec",
140 "smooth-scrolling-threshold": 1,
141},
142
143"custom/power": {
144 "format": " ⏻ ",
145 "on-click": "$HOME/.config/hypr/scripts/Wlogout.sh",
146 "on-click-right": "$HOME/.config/hypr/scripts/ChangeBlur.sh",
147 "tooltip": true,
148 "tooltip-format": "Left Click: Logout Menu\nRight Click: Change Blur",
149},
150
151"custom/reboot": {
152 "format": "󰜉",
153 "on-click": "systemctl reboot",
154 "tooltip": true,
155 "tooltip-format": "Left Click: Reboot",
156},
157
158"custom/quit": {
159 "format": "󰗼",
160 "on-click": "hyprctl dispatch exit",
161 "tooltip": true,
162 "tooltip-format": "Left Click: Exit Hyprland",
163},
164
165"custom/swaync": {
166 "tooltip": true,
167 "tooltip-format": "Left Click: Launch Notification Center\nRight Click: Do not Disturb",
168 "format": "{} {icon} ",
169 "format-icons": {
170 "notification": "<span foreground='red'><sup></sup></span>",
171 "none": "",
172 "dnd-notification": "<span foreground='red'><sup></sup></span>",
173 "dnd-none": "",
174 "inhibited-notification": "<span foreground='red'><sup></sup></span>",
175 "inhibited-none": "",
176 "dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
177 "dnd-inhibited-none": ""
178 },
179 "return-type": "json",
180 "exec-if": "which swaync-client",
181 "exec": "swaync-client -swb",
182 "on-click": "sleep 0.1 && swaync-client -t -sw",
183 "on-click-right": "swaync-client -d -sw",
184 "escape": true,
185},
186// NOTE:! This is mainly for Arch and Arch Based Distros depend: pacman-contrib
187// Other Distro dont have notifications but can use to check for update for any other distro
188"custom/updater": {
189 "format": " {}",
190 "exec": "checkupdates | wc -l",
191 "exec-if": "[[ $(checkupdates | wc -l) ]]",
192 "interval": 43200, // (Arch Linux will try to check 12 hrs interval only
193 "on-click": "$HOME/.config/hypr/scripts/Distro_update.sh",
194 "tooltip": true,
195 "tooltip-format": "Left Click: Update System\nArch (w/ notification)\nFedora, OpenSuse, Debian/Ubuntu click to update",
196},
197// Separators
198"custom/separator#dot": {
199 "format": "",
200 "interval": "once",
201 "tooltip": false
202},
203"custom/separator#dot-line": {
204 "format": "",
205 "interval": "once",
206 "tooltip": false
207},
208"custom/separator#line": {
209 "format": "|",
210 "interval": "once",
211 "tooltip": false
212},
213"custom/separator#blank": {
214 "format": "",
215 "interval": "once",
216 "tooltip": false
217},
218"custom/separator#blank_2": {
219 "format": " ",
220 "interval": "once",
221 "tooltip": false
222},
223"custom/separator#blank_3": {
224 "format": " ",
225 "interval": "once",
226 "tooltip": false
227},
228"custom/arrow1": {
229 "format": "",
230 "tooltip": false
231},
232
233"custom/arrow2": {
234 "format": "",
235 "tooltip": false
236},
237
238"custom/arrow3": {
239 "format": "",
240 "tooltip": false
241},
242
243"custom/arrow4": {
244 "format": "",
245 "tooltip": false
246},
247
248"custom/arrow5": {
249 "format": "",
250 "tooltip": false
251},
252
253"custom/arrow6": {
254 "format": "",
255 "tooltip": false
256},
257
258"custom/arrow7": {
259 "format": "",
260 "tooltip": false
261},
262
263"custom/arrow8": {
264 "format": "",
265 "tooltip": false
266},
267
268"custom/arrow9": {
269 "format": "",
270 "tooltip": false
271},
272
273"custom/arrow10": {
274 "format": "",
275 "tooltip": false
276}
277}