hyprland: add animation option to windowrules module

This commit is contained in:
ooks-io 2025-01-16 23:15:35 +11:00
parent a0eed0bcc1
commit 11f014919a
3 changed files with 45 additions and 3 deletions

View file

@ -67,6 +67,7 @@
title = mkRuleOption str "Window title matcher";
initialClass = mkRuleOption str "Initial window class matcher";
initialTitle = mkRuleOption str "Initial window title matcher";
tag = mkRuleOption str "Window tag matcher";
xwayland = mkRuleOption bool "Match XWayland windows";
floating = mkRuleOption bool "Match floating windows";
fullscreen = mkRuleOption bool "Match fullscreen windows";
@ -137,4 +138,3 @@ in {
flatten (map formatWindowRule cfg.windowRules);
};
}

View file

@ -230,6 +230,10 @@
name = "minsize";
regex = ["${patterns.int} ${patterns.int}"];
};
animation = mkRegexTarget {
name = "animation";
regex = ["(slide)( (left|right|up|down|top|bottom))?|(popin)( ([0-9]+%))?"];
};
}
// toggleTargets;
in {