✨ feat(hypr/config): add window rules tagging system and positioning improvements
This commit is contained in:
1 parent
528e3d7bdf
commit
35bc711ddc
5 files changed
+88
-372
No files matched your search
@@ -9,64 +9,101 @@ windowrulev2 = maxsize 1 1,class:^(xwaylandvideobridge)$
|
||||
windowrulev2 = noblur,class:^(xwaylandvideobridge)$
|
||||
|
||||
|
||||
# MPV/VLC
|
||||
windowrule = workspace 5, ^(.*vlc.*)$|(.*mpv.*)$
|
||||
windowrulev2 = float, class:^(.*mpv.*)$|(.*vlc.*)$
|
||||
windowrulev2 = size 70% 70%, class:^(.*mpv.*)$|(.*vlc.*)$
|
||||
|
||||
# Pavucontrol
|
||||
windowrulev2 = float, class:^(pavucontrol|org.pulseaudio.pavucontrol|com.saivert.pavucontrol)$
|
||||
# windowrule - tags - add apps under appropriate tag to use the same settings
|
||||
# browser tags
|
||||
windowrule = tag +browser, class:^([Ff]irefox|org.mozilla.firefox|[Ff]irefox-esr|[Ff]irefox-bin)$
|
||||
windowrule = tag +browser, class:^([Gg]oogle-chrome(-beta|-dev|-unstable)?)$
|
||||
windowrule = tag +browser, class:^(chrome-.+-Default)$ # Chrome PWAs
|
||||
windowrule = tag +browser, class:^([Cc]hromium)$
|
||||
windowrule = tag +browser, class:^([Mm]icrosoft-edge(-stable|-beta|-dev|-unstable))$
|
||||
windowrule = tag +browser, class:^(Brave-browser(-beta|-dev|-unstable)?)$
|
||||
windowrule = tag +browser, class:^([Tt]horium-browser|[Cc]achy-browser)$
|
||||
windowrule = tag +browser, class:^(zen-alpha|zen|zen-browser)$
|
||||
|
||||
#Zathura
|
||||
$zathura = class:^(.*zathura.*)$
|
||||
windowrulev2 = float, $zathura
|
||||
windowrulev2 = size 35% 90%, $zathura
|
||||
windowrulev2 = center 1, $zathura
|
||||
|
||||
# Fireox class settings
|
||||
windowrulev2 = workspace 3, class:^(firefox)$
|
||||
windowrulev2 = pin,title:^(Picture-in-Picture)$
|
||||
windowrulev2 = float, title:^(Picture-in-Picture)$
|
||||
windowrulev2 = size 25% 25%,title:^(Picture-in-Picture)$
|
||||
windowrulev2 = move 72% 7%,title:^(Picture-in-Picture)$
|
||||
windowrulev2 = idleinhibit fullscreen, class:^(.*firefox.*)$
|
||||
# terminal tags
|
||||
windowrule = tag +terminal, class:^(Alacritty|kitty|Kitty)$
|
||||
|
||||
# Thunar
|
||||
windowrulev2 = float, class:([Tt]hunar), title:(File Operation Progress)
|
||||
windowrulev2 = float, class:([Tt]hunar), title:(Confirm to replace files)
|
||||
windowrulev2 = workspace 4, class:(thunar)
|
||||
|
||||
# File / Folder pickers
|
||||
$center-float = class:^(center-float)$|^(.*file-roller.*)$|^(.*FileRoller.*)$
|
||||
$center-float-title = title:^(.*Open Folder.*)$|^(.*Open File.*)$|^(.*Save File.*)$|^(.*Save Folder.*)$|^(.*Save Image.*)$|^(.*Save As.*)$|^(.*Open As.*)$
|
||||
windowrulev2 = float, $center-float
|
||||
windowrulev2 = float, $center-float-title
|
||||
windowrulev2 = size 50% 50%, $center-float
|
||||
windowrulev2 = size 50% 50%, $center-float-title
|
||||
windowrulev2 = center 1, $center-float
|
||||
windowrulev2 = center 1, $center-float-title
|
||||
# project tags
|
||||
windowrule = tag +projects, class:^(codium|codium-url-handler|VSCodium)$
|
||||
windowrule = tag +projects, class:^(VSCode|code-url-handler)$
|
||||
|
||||
# File Roller
|
||||
windowrulev2 = workspace 4, class:(file-roller), title:(Archive Manager)
|
||||
windowrulev2 = float, class:(file-roller), title:(Archive Manager)
|
||||
windowrulev2 = size 45% 50%, class:(file-roller), title:(Archive Manager)
|
||||
windowrulev2 = center, class:(file-roller), title:(Archive Manager)
|
||||
windowrulev2 = float, class:(file-roller), title:(Extract archive)
|
||||
windowrulev2 = size 30% 15%, class:(file-roller), title:(Extract archive)
|
||||
windowrulev2 = center, class:(file-roller), title:(Extract archive)
|
||||
# IM tags
|
||||
windowrule = tag +im, class:^([Dd]iscord|[Ww]ebCord|[Vv]esktop)$
|
||||
windowrule = tag +im, class:^([Ff]erdium)$
|
||||
windowrule = tag +im, class:^([Ww]hatsapp-for-linux)$
|
||||
windowrule = tag +im, class:^(org.telegram.desktop|io.github.tdesktop_x64.TDesktop|materialgram)$
|
||||
windowrule = tag +im, class:^(teams-for-linux)$
|
||||
|
||||
# VS Code
|
||||
# windowrulev2 = workspace 2, class:(codium|codium-url-handler|VSCodium|code-oss|code)
|
||||
windowrulev2 = float, class:(codium|codium-url-handler|VSCodium|code-oss|code), title:(Add Folder to Workspace)
|
||||
|
||||
# Telegram
|
||||
windowrulev2 = fullscreen, class:^(.*materialgram.*)$|(.*telegram-desktop.*), title:(Media viewer)
|
||||
windowrulev2 = workspace 6, class:^(.*materialgram.*)$|(.*telegram-desktop.*)$
|
||||
windowrulev2 = size 833 455, class:^(.*materialgram.*)$|(.*telegram-desktop.*)$, title:(Choose Files)
|
||||
windowrulev2 = center, class:^(.*materialgram.*)$|(.*telegram-desktop.*), title:(Choose Files)
|
||||
# file-manager tags
|
||||
windowrule = tag +file-manager, class:^([Tt]hunar|org.gnome.Nautilus|[Pp]cmanfm-qt)$
|
||||
windowrule = tag +file-manager, class:^(app.drey.Warp)$
|
||||
|
||||
|
||||
# multimedia-video tags
|
||||
windowrule = tag +multimedia_video, class:^([Mm]pv|vlc)$
|
||||
|
||||
# settings tags
|
||||
windowrule = tag +settings, class:^(gnome-disks|wihotspot(-gui)?)$
|
||||
windowrule = tag +settings, class:^(file-roller|org.gnome.FileRoller)$ # archive manager
|
||||
windowrule = tag +settings, class:^(nm-applet|nm-connection-editor|blueman-manager)$
|
||||
windowrule = tag +settings, class:^(pavucontrol|org.pulseaudio.pavucontrol|com.saivert.pwvucontrol)$
|
||||
windowrule = tag +settings, class:^(qt5ct|qt6ct|[Yy]ad)$
|
||||
windowrule = tag +settings, class:(xdg-desktop-portal-gtk)
|
||||
windowrule = tag +settings, class:^(org.kde.polkit-kde-authentication-agent-1)$
|
||||
|
||||
# viewer tags
|
||||
windowrule = tag +viewer, class:^(gnome-system-monitor|org.gnome.SystemMonitor|io.missioncenter.MissionCenter)$ # system monitor
|
||||
windowrule = tag +viewer, class:^(evince|zathura)$ # document viewer
|
||||
windowrule = tag +viewer, class:^(eog|org.gnome.Loupe|imv|imv-dir)$ # image viewer
|
||||
|
||||
|
||||
# POSITION
|
||||
# windowrule = center,floating:1 # warning, it cause even the menu to float and center.
|
||||
windowrule = center, class:([Tt]hunar), title:negative:(.*[Tt]hunar.*)
|
||||
windowrule = center, class:^(pavucontrol|org.pulseaudio.pavucontrol|com.saivert.pwvucontrol)$
|
||||
windowrule = center, class:^([Ww]hatsapp-for-linux)$
|
||||
windowrule = center, class:^([Ff]erdium)$
|
||||
windowrule = move 72% 7%,title:^(Picture-in-Picture)$
|
||||
#windowrule = move 72% 7%,title:^(Firefox)$
|
||||
|
||||
# windowrule move to workspace
|
||||
windowrule = workspace 3, tag:browser*
|
||||
windowrule = workspace 4, class:^([Tt]hunar)$
|
||||
windowrule = workspace 6, tag:im*
|
||||
|
||||
|
||||
# FLOAT
|
||||
windowrule = float, tag:settings*
|
||||
windowrule = float, tag:viewer*
|
||||
windowrule = float, class:([Zz]oom|onedriver|onedriver-launcher)$
|
||||
windowrule = float, class:(org.gnome.Calculator), title:(Calculator)
|
||||
windowrule = float, class:^(mpv|com.github.rafostar.Clapper)$
|
||||
windowrule = float, class:^([Qq]alculate-gtk)$
|
||||
#windowrule = float, class:^([Ww]hatsapp-for-linux|ZapZap|com.rtosta.zapzap)$
|
||||
windowrule = float, class:^([Ff]erdium)$
|
||||
windowrule = float, title:^(Picture-in-Picture)$
|
||||
#windowrule = float, title:^(Firefox)$
|
||||
|
||||
# windowrule - ######### float popups and dialogue #######
|
||||
windowrule = float, title:^(Authentication Required)$
|
||||
windowrule = center, title:^(Authentication Required)$
|
||||
#windowrule = float, class:(codium|codium-url-handler|VSCodium), title:negative:(.*codium.*|.*VSCodium.*)
|
||||
windowrule = float, class:([Tt]hunar), title:negative:(.*[Tt]hunar.*)
|
||||
|
||||
windowrule = float, title:^(Add Folder to Workspace)$
|
||||
windowrule = size 70% 60%, title:^(Add Folder to Workspace)$
|
||||
windowrule = center, title:^(Add Folder to Workspace)$
|
||||
windowrule = float, title:^(Save As)$
|
||||
windowrule = size 70% 60%, title:^(Save As)$
|
||||
windowrule = center, title:^(Save As)$
|
||||
|
||||
windowrule = float, initialTitle:(Open Files)
|
||||
windowrule = size 70% 60%, initialTitle:(Open Files)
|
||||
|
||||
# discord
|
||||
windowrulev2 = workspace 7, class:^(.*discord.*)$|(.*vesktop.*)$|(.*WebCord.*)$
|
||||
|
||||
# Kitty
|
||||
windowrulev2 = float,class:^(kitty)$,title:^(Kitty)$
|
||||
@@ -75,34 +112,9 @@ windowrulev2 = move center, class^(kitty)$, title:^(Kitty)$
|
||||
windowrulev2 = animation slide, class:^(kitty)$, title:^(Kitty)$
|
||||
windowrulev2 = float, class:^(kitty)$, title:^(Kitty)$
|
||||
|
||||
# Bluetooth applet
|
||||
windowrulev2 = float, class:(blueman)
|
||||
windowrulev2 = size 680 665, class:(blueman)
|
||||
windowrulev2 = center, class:(blueman)
|
||||
|
||||
# IMV image viewer
|
||||
$center-float-large = class:^(center-float-large)$|^(.*imv.*)$|^(.*imv-dir.*)$
|
||||
windowrulev2 = float, $center-float-large
|
||||
windowrulev2 = size 70% 70%, $center-float-large
|
||||
windowrulev2 = center 1, $center-float-large
|
||||
|
||||
# qt5ct / qt6ct
|
||||
windowrulev2 = float, class:^(nwg-look|qt5ct|qt6ct)$
|
||||
windowrulev2 = size 60% 70%, class:^(qt6ct)$
|
||||
|
||||
# Other
|
||||
windowrule = float, nm-connection-editor|yad|Lxappearance
|
||||
windowrulev2 = size 543 239, class:^(polkit-gnome-authentication-agent-1)$
|
||||
windowrulev2 = float, class:^(polkit-gnome-authentication-agent-1)$
|
||||
windowrulev2 = center, class:(polkit-gnome-authentication-agent-1)
|
||||
windowrulev2 = float, class:(electron), title:(Add Folder to Workspace)
|
||||
windowrulev2 = float, class:^(org.kde.polkit-kde-authentication-agent-1)$
|
||||
windowrulev2 = float, class:(xdg-desktop-portal-gtk)
|
||||
windowrulev2 = size 70% 70%, class:^(xdg-desktop-portal-gtk)$
|
||||
windowrulev2 = stayfocused, class:(polkit-gnome-authentication-agent-1)
|
||||
|
||||
#Layer Rules
|
||||
# layerrule = noanim, popup.*
|
||||
layerrule = noanim, hyprpicker
|
||||
layerrule = noanim, selection
|
||||
|
||||
@@ -110,6 +122,7 @@ layerrule = noanim, noanim
|
||||
layerrule = ignorezero, gtk-layer-shell
|
||||
layerrule = noanim,selection
|
||||
|
||||
# layerrule = noanim, fabric
|
||||
layerrule = noanim, fabric
|
||||
# layerrule = animation slide, launcher
|
||||
|
||||
|
||||
Reference in new issue
Block a user