aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/configs/WindowRules.conf
blob: 03ad5984df9e8531c99e0e2c23400b22c86b28a6 (plain) (blame)
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
# ==================================================
#  KoolDots (2026)
#  Project URL: https://github.com/LinuxBeginnings
#  License: GNU GPLv3
#  SPDX-License-Identifier: GPL-3.0-or-later
# ==================================================
# Vendor defaults for window rules
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more

# NOTES: This is only for Hyprland >= 0.53

#  Some samples on hwo to start apps on specific workspaces
# windowrule = match:tag email*, workspace 1
# windowrule = match:tag browser*, workspace 2
# windowrule = match:tag projects*, workspace 3
# windowrule = match:tag screenshare*, workspace 4 silent
# windowrule = match:tag gamestore*, workspace 5
# windowrule = match:class ^(virt-manager)$, workspace 6 silent
# windowrule = match:class ^(.virt-manager-wrapped)$, workspace 6 silent
# windowrule = match:tag im*, workspace 7
# windowrule = match:class obsidian, workspace 8
# windowrule = match:tag games*, workspace 8
# windowrule = match:tag multimedia*, workspace 9 silent

# TAGS - add apps under appropriate tag to use the same settings
# browser tags
# name: tag-browser-firefox
windowrule = match:class ^([Ff]irefox|org.mozilla.firefox|[Ff]irefox-esr|[Ff]irefox-bin)$, tag +browser
# name: tag-browser-google-chrome
windowrule = match:class ^([Gg]oogle-chrome(-beta|-dev|-unstable)?)$, tag +browser
# name: tag-browser-chrome-default-profile
windowrule = match:class ^(chrome-.+-Default)$, tag +browser
# name: tag-browser-chromium
windowrule = match:class ^([Cc]hromium)$, tag +browser
# name: tag-browser-microsoft-edge
windowrule = match:class ^([Mm]icrosoft-edge(-stable|-beta|-dev|-unstable))$, tag +browser
# name: tag-browser-brave
windowrule = match:class ^([Bb]rave-browser(-beta|-dev|-unstable)?)$, tag +browser
# name: tag-browser-thorium-cachy
windowrule = match:class ^([Tt]horium-browser|[Cc]achy-browser)$, tag +browser
# name: tag-browser-zen
windowrule = match:class ^(zen-alpha|zen)$, tag +browser

# notif tags
# name: tag-notifications-swaync
windowrule = match:class ^(swaync-control-center|swaync-notification-window|swaync-client|class)$, tag +notif

# KooL settings tag
# name: tag-kool-cheat-sheet
windowrule = match:title ^(KooL Quick Cheat Sheet)$, tag +KooL_Cheat
# name: tag-kool-hyprland-settings
windowrule = match:title ^(KooL Hyprland Settings)$, tag +KooL_Settings
# name: tag-kool-settings-nwg-tools
windowrule = match:class ^(nwg-displays|nwg-look)$, tag +KooL-Settings

# terminal tags
# name: tag-terminal-emulators
windowrule = match:class ^(ghostty|wezterm|Alacritty|kitty|kitty-dropterm)$, tag +terminal

# email tags
# name: tag-email-thunderbird
windowrule = match:class ^([Tt]hunderbird|org.mozilla.Thunderbird)$, tag +email
# name: tag-email-betterbird
windowrule = match:class ^(eu.betterbird.Betterbird)$, tag +email
# name: tag-email-evolution
windowrule = match:class ^(org.gnome.Evolution)$, tag +email

# project tags
# name: tag-projects-vscodium
windowrule = match:class ^(codium|codium-url-handler|VSCodium)$, tag +projects
# name: tag-projects-vscode
windowrule = match:class ^(VSCode|code|code-url-handler)$, tag +projects
# name: tag-projects-jetbrains
windowrule = match:class ^(jetbrains-.+)$, tag +projects
# name: tag-projects-zed
windowrule = match:class ^(dev.zed.Zed|antigravity)$, tag +projects

# screenshare tags
# name: tag-screenshare-obs
windowrule = match:class ^(com.obsproject.Studio)$, tag +screenshare
windowrule = match:class ^(com.obsproject.Studio)$, workspace 10 silent

# IM tags
# name: tag-im-discord-family
windowrule = match:class ^([Dd]iscord|[Ww]ebCord|[Vv]esktop)$, tag +im
# name: tag-im-ferdium
windowrule = match:class ^([Ff]erdium)$, tag +im
# name: tag-im-whatsapp
windowrule = match:class ^([Ww]hatsapp-for-linux|ZapZap|com.rtosta.zapzap)$, tag +im
# name: tag-im-telegram
windowrule = match:class ^(org.telegram.desktop|io.github.tdesktop_x64.TDesktop)$, tag +im
# name: tag-im-teams
windowrule = match:class ^(teams-for-linux)$, tag +im
# name: tag-im-element
windowrule = match:class ^(im.riot.Riot|Element)$, tag +im

# game tags
# name: tag-games-gamescope
windowrule = match:class ^(gamescope)$, tag +games
# name: tag-games-steam-app
windowrule = match:class ^(steam_app_\\d+)$, tag +games
# name: tag-games-proton
windowrule = match:xdg_tag ^(proton-game)$, tag +games

# gamestore tags
# name: tag-gamestore-steam
windowrule = match:class ^([Ss]team)$, tag +gamestore
# name: tag-gamestore-lutris
windowrule = match:title ^([Ll]utris)$, tag +gamestore
# name: tag-gamestore-heroic
windowrule = match:class ^(com.heroicgameslauncher.hgl)$, tag +gamestore

# file-manager tags
# name: tag-file-manager-common
windowrule = match:class ^([Tt]hunar|org.gnome.Nautilus|[Pp]cmanfm-qt)$, tag +file-manager
# name: tag-file-manager-warp
windowrule = match:class ^(app.drey.Warp)$, tag +file-manager

# wallpaper tags
# name: tag-wallpaper-waytrogen
windowrule = match:class ^([Ww]aytrogen)$, tag +wallpaper

# multimedia tags
# name: tag-multimedia-audacious
windowrule = match:class ^([Aa]udacious)$, tag +multimedia

# multimedia-video tags
# name: tag-multimedia-video-players
windowrule = match:class ^([Mm]pv|vlc)$, tag +multimedia_video

# settings tags
# name: tag-settings-rog-control
windowrule = match:title ^(ROG Control)$, tag +settings
# name: tag-settings-wihotspot
windowrule = match:class ^(wihotspot(-gui)?)$, tag +settings
# name: tag-settings-baobab
windowrule = match:class ^([Bb]aobab|org.gnome.[Bb]aobab)$, tag +settings
# name: tag-settings-disks-and-hotspot
windowrule = match:class ^(gnome-disks|wihotspot(-gui)?)$, tag +settings
# name: tag-settings-kvantum
windowrule = match:title (Kvantum Manager), tag +settings
# name: tag-settings-file-roller
windowrule = match:class ^(file-roller|org.gnome.FileRoller)$, tag +settings
# name: tag-settings-network-blueman
windowrule = match:class ^(nm-applet|nm-connection-editor|blueman-manager)$, tag +settings
# name: tag-settings-pavucontrol
windowrule = match:class ^(pavucontrol|org.pulseaudio.pavucontrol|com.saivert.pwvucontrol)$, tag +settings
# name: tag-settings-qtct
windowrule = match:class ^(qt5ct|qt6ct)$, tag +settings
# name: tag-settings-xdg-portal-gtk
windowrule = match:class (xdg-desktop-portal-gtk), tag +settings
# name: tag-settings-polkit-kde
windowrule = match:class ^(org.kde.polkit-kde-authentication-agent-1)$, tag +settings
# name: tag-settings-rofi
windowrule = match:class ^([Rr]ofi)$, tag +settings
# name: tag-settings-btrfs-assistant
windowrule = match:class ^(btrfs-assistant)$, tag +settings
# name: tag-settings-timeshift
windowrule = match:class ^(timeshift-gtk)$, tag +settings

# viewer tags
# name: tag-viewer-system-monitor
windowrule = match:class ^(gnome-system-monitor|org.gnome.SystemMonitor|io.missioncenter.MissionCenter)$, tag +viewer
# name: tag-viewer-evince
windowrule = match:class ^(evince)$, tag +viewer
# name: tag-viewer-image-viewers
windowrule = match:class ^(eog|org.gnome.Loupe)$, tag +viewer

# Some special override rules
# name: multimedia-disable-blur
windowrule = match:tag multimedia, no_blur on
# name: multimedia-force-opacity
windowrule = match:tag multimedia, opacity 1.0

# FLOAT
# name: float-zoom-onedriver
windowrule = match:class ([Zz]oom|onedriver|onedriver-launcher), float on
# name: float-video-players
windowrule = match:class ^(mpv|com.github.rafostar.Clapper)$, float on
# name: float-qalculate
windowrule = match:class ^([Qq]alculate-gtk)$, float on

# float popups and dialogue
# name: float-center-auth-required-title
windowrule = match:title ^(Authentication Required)$, float on, center on
# name: float-center-polkit-auth-dialog
windowrule = match:class ^(xfce-polkit|mate-polkit|polkit-mate-authentication-agent-1)$, match:title ^(Authentication required|Authentication Required)$, float on, center on, size (monitor_w*0.35) (monitor_h*0.35)
# name: float-vscodium-secondary-window
windowrule = match:class (codium|codium-url-handler|VSCodium), match:title negative:(.*codium.*|.*VSCodium.*), float on
# name: float-heroic-secondary-window
windowrule = match:class ^(com.heroicgameslauncher.hgl)$, match:title negative:(Heroic Games Launcher), float on
# name: float-steam-secondary-window
windowrule = match:class ^([Ss]team)$, match:title negative:^([Ss]team)$, float on
# name: float-center-add-folder-dialog
windowrule = match:title ^(Add Folder to Workspace)$, float on, size (monitor_w*0.7) (monitor_h*0.6), center on
# name: float-center-save-as-dialog
windowrule = match:title ^(Save As)$, float on, size (monitor_w*0.7) (monitor_h*0.6), center on
# name: float-open-files-dialog
windowrule = match:initial_title (Open Files), float on, size (monitor_w*0.7) (monitor_h*0.6)
# name: float-center-sddm-background
windowrule = match:title ^(SDDM Background)$, float on, center on, size (monitor_w*0.16) (monitor_h*0.12)
# name: float-center-yad-dialog
windowrule = match:class ^(yad)$, float on, center on, size (monitor_w*0.2) (monitor_h*0.2)
# name: float-center-hyprland-donate
windowrule = match:class ^(hyprland-donate-screen)$, float on, center on

# SIZE

# POSITION
# name: center-rog-control
windowrule = match:title ^(ROG Control)$, center on
# name: center-keybindings
windowrule = match:title ^(Keybindings)$, center on
# name: center-pavucontrol
windowrule = match:class ^(pavucontrol|org.pulseaudio.pavucontrol|com.saivert.pwvucontrol)$, center on
# name: center-whatsapp
windowrule = match:class ^([Ww]hatsapp-for-linux|ZapZap|com.rtosta.zapzap)$, center on
# name: center-network-editor
windowrule = match:class ^(nm-connection-editor)$, center on
# name: center-nm-auth-dialog
windowrule = match:class ^(nm-applet)$, match:title ^(Wi-Fi Network Authentication Required)$, center on

# windowrule to avoid idle for fullscreen apps
# name: idle-inhibit-fullscreen-bool
windowrule = match:fullscreen true, idle_inhibit fullscreen
# name: idle-inhibit-fullscreen-int
windowrule = idle_inhibit fullscreen, match:fullscreen 1
# name: idle-inhibit-any-class
windowrule = idle_inhibit fullscreen, match:class .*
# name: idle-inhibit-any-title
windowrule = idle_inhibit fullscreen, match:title .*

# OPACITY
# name: opacity-browser-tag
windowrule = match:tag browser, opacity 0.99 0.8
# name: opacity-projects-tag
windowrule = match:tag projects, opacity 0.9 0.8
# name: opacity-im-tag
windowrule = match:tag im, opacity 0.94 0.86
# name: opacity-multimedia-tag
windowrule = match:tag multimedia, opacity 0.94 0.86
# name: opacity-file-manager-tag
windowrule = match:tag file-manager, opacity 0.9 0.8
# name: opacity-terminal-tag
windowrule = match:tag terminal, opacity 0.9 0.7
# name: opacity-text-editors
windowrule = match:class ^(gedit|org.gnome.TextEditor|mousepad)$, opacity 0.8 0.7
# name: opacity-deluge
windowrule = match:class ^(deluge)$, opacity 0.9 0.8
# name: opacity-seahorse
windowrule = match:class ^(seahorse)$, opacity 0.9 0.8

# BLUR & FULLSCREEN

# This not gonna take the focus to the window that appears
# when hovering over some of the parts of the IntelliJ Products
# name: no-initial-focus-jetbrains
windowrule = match:class ^(jetbrains-.*)$, no_initial_focus on
# name: no-initial-focus-wind-title
windowrule = match:title ^(wind.*)$, no_initial_focus on


windowrule {
    name = Picture-in-Picture
    match:title = ^[Pp]icture-in-[Pp]icture$
    float = on
    move = 72% 7%
    opacity = 0.95 0.75
    pin = on
    keep_aspect_ratio = on
    size = (monitor_w*0.3) (monitor_h*0.3)
}

# Named rule for CachyOS Kernel Manager
windowrule {
    name = CachyOS Kernel Manager
    match:class = ^(org.cachyos.KernelManager)$
    match:title = ^(CachyOS Kernel Manager)$
    match:initial_class = ^(org.cachyos.KernelManager)$
    match:initial_title = ^(CachyOS Kernel Manager)$
    float = on
    center = on
    size = (monitor_w*0.6) (monitor_h*0.6)
}

# Named rule for Mainline Kernels
windowrule {
    name = Mainline Kernels
    match:class = ^(mainline-gtk)$
    match:title = ^(Mainline Kernels)$
    match:initial_class = ^(mainline-gtk)$
    match:initial_title = ^(Mainline Kernels)$
    float = on
    center = on
    size = (monitor_w*0.45) (monitor_h*0.55)
}

# Named rule for Kwallet
windowrule {
    name =  Kwallet
    match:class = ^(org.kde.kwalletmanager)$
    match:title = ^(Wallet Manager)$
    match:initial_class = ^(org.kde.kwalletmanager)$
    match:initial_title = ^(Wallet Manager)$
    float = on
    center = on
    size = (monitor_w*0.6) (monitor_h*0.6)
}
# Named rule for NVIDIA Settings
windowrule {
    name = NVIDIA Settings
    match:class = ^(nvidia-settings)$
    match:title = ^(NVIDIA Settings)$
    match:initial_class = ^(nvidia-settings)$
    match:initial_title = ^(NVIDIA Settings)$
    float = on
    center = on
    size = (monitor_w*0.6) (monitor_h*0.6)
}
# Named rule for CachyOS Package Installer
windowrule {
    name = CachyOS Package Installer
    match:class = ^(org.cachyos.cachyos-pi)$
    match:title = ^(CachyOS Package Installer)$
    match:initial_class = ^(org.cachyos.cachyos-pi)$
    match:initial_title = ^(CachyOS Package Installer)$
    float = on
    center = on
    size = (monitor_w*0.6) (monitor_h*0.6)
}
# Named rule for Shelly
windowrule {
    name = Shelly
    match:class = ^(com.shellyorg.shelly)$
    match:title = ^(Shelly)$
    match:initial_class = ^(com.shellyorg.shelly)$
    match:initial_title = ^(Shelly)$
    float = on
    center = on
    size = (monitor_w*0.6) (monitor_h*0.6)
}

# Named rule for CachyOS Hello
windowrule {
    name = CachyOS Hello
    match:class = ^(CachyOSHello)$
    match:title = ^(CachyOS Hello)$
    match:initial_class = ^(CachyOSHello)$
    match:initial_title = ^(CachyOS Hello)$
    float = on
    center = on
    size = (monitor_w*0.6) (monitor_h*0.6)
}

# Named rule for Cache Cleaner - Octopi
windowrule {
    name = Cache Cleaner - Octopi
    match:class = ^(octopi-cachecleaner)$
    match:title = ^(Cache Cleaner - Octopi)$
    match:initial_class = ^(octopi-cachecleaner)$
    match:initial_title = ^(Cache Cleaner - Octopi)$
    float = on
    center = on
    size = (monitor_w*0.6) (monitor_h*0.6)
}

# Named rule for Octopi Package Manager
windowrule {
    name = Octopi Package Manager
    match:class = ^(octopi)$
    match:title = ^(Octopi)$
    match:initial_class = ^(octopi)$
    match:initial_title = ^(Octopi)$
    float = on
    center = on
    size = (monitor_w*0.6) (monitor_h*0.6)
}

# Named rule for Repository Editor - Octopi
windowrule {
    name = Repository Editor - Octopi
    match:class = ^(octopi-repoeditor)$
    match:title = ^(Repository Editor - Octopi)$
    match:initial_class = ^(octopi-repoeditor)$
    match:initial_title = ^(Repository Editor - Octop)$
    float = on
    center = on
    size = (monitor_w*0.6) (monitor_h*0.6)
}

# Named rule for KooL Cheat (tag)
windowrule {
    name = KooL Cheat (tag)
    match:tag = KooL_Cheat
    float = on
    center = on
    size = (monitor_w*0.65) (monitor_h*0.9)
}

# Named rule for Wallpaper (tag)
windowrule {
    name = Wallpaper (tag)
    match:tag = wallpaper
    float = on
    center = on
    size = (monitor_w*0.7) (monitor_h*0.7)
    opacity = 0.9 0.7
}

# Named rule for Settings (tag)
windowrule {
    name = Settings (tag)
    match:tag = settings
    float = on
    center = on
    size = (monitor_w*0.7) (monitor_h*0.7)
    opacity = 0.8 0.7
}

# Named rule for Viewer (tag)
windowrule {
    name = Viewer (tag)
    match:tag = viewer
    float = on
    center = on
    opacity = 0.82 0.75
}

# Named rule for KooL Settings (tag)
windowrule {
    name = KooL Settings (tag)
    match:tag = KooL-Settings
    float = on
    center = on
}

# Named rule for Multimedia Video (tag)
windowrule {
    name = Multimedia Video (tag)
    match:tag = multimedia_video
    no_blur = on
    opacity = 1.0
}

# Named rule for Games (tag)
windowrule {
    name = Games (tag)
    match:tag = games
    no_blur = on
    fullscreen = 0
}

# Named rule for Ferdium
windowrule {
    name = Ferdium
    match:class = ^([Ff]erdium)$
    float = on
    center = on
    size = (monitor_w*0.6) (monitor_h*0.7)
}

# Named rule for Gnome Calculator
windowrule {
    name = Gnome Calculator 
    match:class = (org.gnome.Calculator)
    float = on
    center = on
    size = (monitor_w*0.55) (monitor_h*0.45)
}

# Named rule for qa
windowrule {
    name = qalculate-gtk
    match:class = (qalculate-gtk)
    float = on
    center = on
    size = (monitor_w*0.25) (monitor_h*0.50)
}

# Named rule for Thunar Dialogs
windowrule {
    name = Thunar Dialogs
    match:class = ([Tt]hunar)
    match:title = negative:(.*[Tt]hunar.*)
    float = on
    center = on
}

# Named rule for Bitwarden
windowrule {
    name = Bitwarden
    match:class = ^(Bitwarden)$
    match:title = ^(Bitwarden)$
    match:initial_class = ^(Bitwarden)$
    match:initial_title = ^(Bitwarden)$
    float = on
    center = on
    size = (monitor_w*0.6) (monitor_h*0.6)
}

# Named rule for hyprpwcenter audio control panel
windowrule {
    name = hyprland audio panel
    match:class = ^(hyprpwcenter)$
    match:title = ^(Pipewire Control Center)$
    match:initial_class = ^(hyprpwcenter)$
    match:initial_title = ^(Pipewire Control Center)$
    float = on
    center = on
    size = (monitor_w*0.6) (monitor_h*0.6)
}

# Named rule for Garuda Assistant
windowrule {
    name = Garuda Assistant
    match:class = ^(garuda-assistant)$
    match:title = ^(Garuda Assistant)$
    match:initial_class = ^(garuda-assistant)$
    match:initial_title = ^(Garuda Assistant)$
    float = on
    center = on
    size = (monitor_w*0.6) (monitor_h*0.6)
}

# Named rule for HyprMod HL config GUI
windowrule {
    name = HyprMod GUI
    match:class = ^(com.github.hyprmod)$
    match:title = ^(HyprMod)$
    match:initial_class = ^(com.github.hyprmod)$
    match:initial_title = ^(HyprMod)$
    float = on
    center = on
    size = (monitor_w*0.7) (monitor_h*0.75)
}

# Named rule for EasyEffects
windowrule {
    name = EasyEffects
    match:class = ^(com.github.wwmm.easyeffects)$
    match:title = ^(Easy Effects)$
    match:initial_class = ^(com.github.wwmm.easyeffects)$
    match:initial_title = ^(Easy Effects)$
    float = on
    center = on
    size = (monitor_w*0.6) (monitor_h*0.65)
}

# Named rule for Megasync
windowrule {
    name = Megasync
    match:class = ^(nz\.co\.mega\.megasync)$
    match:initial_class = ^(nz\.co\.mega\.megasync)$
    float = on
    center = on
    size = (monitor_w*0.1) (monitor_h*0.3)
}

# Named rule for Mousam weather GUI
windowrule {
    name = Mousam Weather
    match:class = ^(io.github.amit9838.mousam)$
    match:title = ^(Mousam)$
    match:initial_class = ^(io.github.amit9838.mousam)$
    match:initial_title = ^(Mousam)$
    float = on
    center = on
    size = (monitor_w*0.7) (monitor_h*0.75)
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage