hyprland: modify window rules
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
3002252539
commit
4d0f1ae22c
1 changed files with 15 additions and 15 deletions
|
@ -155,7 +155,7 @@ in {
|
||||||
];
|
];
|
||||||
editor = rules: [
|
editor = rules: [
|
||||||
(class "codium-url-handler" rules) # VSCode
|
(class "codium-url-handler" rules) # VSCode
|
||||||
(class "obsidian" (rules ++ ["group barred"]))
|
(class "obsidian" (rules ++ ["group override barred"]))
|
||||||
];
|
];
|
||||||
files = rules: [
|
files = rules: [
|
||||||
(class "org\\.gnome\\.Nautilus" rules)
|
(class "org\\.gnome\\.Nautilus" rules)
|
||||||
|
@ -212,7 +212,7 @@ in {
|
||||||
in
|
in
|
||||||
flatten [
|
flatten [
|
||||||
### Defaults
|
### Defaults
|
||||||
(class ".*" ["float" "suppressevent maximize" "syncfullscreen"])
|
(class ".*" ["float" "group barred" "suppressevent maximize"])
|
||||||
(floating false ["noshadow"])
|
(floating false ["noshadow"])
|
||||||
(floating true ["noborder"])
|
(floating true ["noborder"])
|
||||||
(fullscreen true ["idleinhibit focus"])
|
(fullscreen true ["idleinhibit focus"])
|
||||||
|
@ -221,31 +221,31 @@ in {
|
||||||
(tag.android ["tile" "workspace special:android"])
|
(tag.android ["tile" "workspace special:android"])
|
||||||
(tag.clipboard ["move ${clipboard.x} ${clipboard.y}" "pin" "size ${clipboard.w} ${clipboard.h}" "stayfocused"])
|
(tag.clipboard ["move ${clipboard.x} ${clipboard.y}" "pin" "size ${clipboard.w} ${clipboard.h}" "stayfocused"])
|
||||||
(tag.dropdown ["move ${dropdown.x} ${dropdown.y}" "pin" "size ${dropdown.w} ${dropdown.h}"])
|
(tag.dropdown ["move ${dropdown.x} ${dropdown.y}" "pin" "size ${dropdown.w} ${dropdown.h}"])
|
||||||
(tag.editor ["group invade" "tile"])
|
(tag.editor ["group override set invade" "tile"])
|
||||||
(tag.files ["center" "size 1000 625"])
|
(tag.files ["center" "size 1000 625"])
|
||||||
(tag.game ["fullscreen" "group barred" "idleinhibit always" "noborder" "noshadow" "renderunfocused" "workspace name:game"])
|
(tag.game ["fullscreen" "idleinhibit always" "noborder" "noshadow" "renderunfocused" "workspace name:game"])
|
||||||
#// (tag.media ["tile" "workspace special:scratchpad"])
|
(tag.media ["center" "keepaspectratio"])
|
||||||
(tag.music ["tile" "workspace special:music"])
|
(tag.music ["tile" "workspace special:music"])
|
||||||
(tag.office ["workspace special:office"])
|
(tag.office ["group override set" "workspace special:office"])
|
||||||
(tag.password ["center" "workspace special:password"])
|
(tag.password ["center" "workspace special:password"])
|
||||||
(tag.pip ["keepaspectratio" "move ${pip.x} ${pip.y}" "pin" "size ${pip.w} ${pip.h}"])
|
(tag.pip ["keepaspectratio" "move ${pip.x} ${pip.y}" "noinitialfocus" "pin" "size ${pip.w} ${pip.h}"])
|
||||||
(tag.social ["group invade lock" "tile"])
|
(tag.social ["group override set invade" "tile"])
|
||||||
(tag.steam ["suppressevent activate activatefocus" "workspace special:steam"])
|
(tag.steam ["suppressevent activate activatefocus" "workspace special:steam"])
|
||||||
(tag.terminal ["tile"])
|
(tag.terminal ["tile"])
|
||||||
(tag.vm ["workspace special:vm"])
|
(tag.vm ["workspace special:vm"])
|
||||||
(tag.wine ["noborder" "noshadow"])
|
(tag.wine ["noborder" "noshadow"])
|
||||||
|
|
||||||
### Overrides
|
### Overrides
|
||||||
(class "signal" ["group new"])
|
(class "signal" ["group override new lock"])
|
||||||
(class "steam_app_1473350" ["workspace 0"]) # (the) Gnorp Apologue
|
(class "steam_app_1473350" ["workspace 0"]) # (the) Gnorp Apologue
|
||||||
(class "Tap Wizard 2.x86_64" ["workspace 0"])
|
(class "Tap Wizard 2\\.x86_64" ["workspace 0"])
|
||||||
(class "Xdg-desktop-portal-gtk" ["noborder" "noshadow"])
|
(class "Xdg-desktop-portal-gtk" ["noborder" "noshadow"])
|
||||||
|
|
||||||
#!! Expressions are not wrapped in ^$
|
#!! Expressions are not wrapped in ^$
|
||||||
(fields {
|
(fields {
|
||||||
class = "^com\\.github\\.wwmm\\.easyeffects$";
|
class = "^com\\.github\\.wwmm\\.easyeffects$";
|
||||||
title = "^Easy Effects$"; # Main window
|
title = "^Easy Effects$"; # Main window
|
||||||
} ["size 50% 50%"])
|
} ["center" "size 50% 50%"])
|
||||||
(fields {
|
(fields {
|
||||||
class = "^discord$";
|
class = "^discord$";
|
||||||
title = "^Discord Updater$"; # Update dialog
|
title = "^Discord Updater$"; # Update dialog
|
||||||
|
@ -257,15 +257,15 @@ in {
|
||||||
(fields {
|
(fields {
|
||||||
class = "^org\\.gnome\\.Nautilus$";
|
class = "^org\\.gnome\\.Nautilus$";
|
||||||
title = "^New Folder$";
|
title = "^New Folder$";
|
||||||
} ["stayfocused"])
|
} ["center" "stayfocused"])
|
||||||
(fields {
|
(fields {
|
||||||
class = "^org\\.remmina\\.Remmina$";
|
class = "^org\\.remmina\\.Remmina$";
|
||||||
title = "^Remmina Remote Desktop Client$"; # Main window
|
title = "^Remmina Remote Desktop Client$"; # Main window
|
||||||
} ["center" "size 1000 500" "workspace +1"])
|
} ["center" "size 1000 500"])
|
||||||
(fields {
|
(fields {
|
||||||
class = "^steam$";
|
class = "^steam$";
|
||||||
title = "^notificationtoasts$"; # Steam notifications
|
title = "^notificationtoasts$"; # Steam notifications
|
||||||
} ["pin"])
|
} ["nofocus" "pin"])
|
||||||
(fields {
|
(fields {
|
||||||
class = "^steam$";
|
class = "^steam$";
|
||||||
title = "^Steam$"; # Main window
|
title = "^Steam$"; # Main window
|
||||||
|
@ -273,7 +273,7 @@ in {
|
||||||
(fields {
|
(fields {
|
||||||
class = "^virt-manager$";
|
class = "^virt-manager$";
|
||||||
title = "^.+on QEMU/KVM$"; # VM window
|
title = "^.+on QEMU/KVM$"; # VM window
|
||||||
} ["tile"])
|
} ["group override set" "tile"])
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue