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

@ -1,9 +1,37 @@
{
{osConfig, ...}: let
monitor = builtins.elemAt osConfig.ooknet.hardware.monitors 0;
widthMinusGaps = toString (monitor.width - 23);
in {
wayland.windowManager.hyprland.windowRules = [
# TODO tag games for immediate
{
matches = {class = "factorio";};
rules = ["tag +games"];
}
{
matches = {initialTitle = "World of Warcraft";};
rules = ["tag +games"];
}
{
matches = {title = "TEKKEN8";};
rules = ["immediate"];
rules = ["tag +games"];
}
{
matches = {initialTitle = "Dolphin";};
rules = ["tag +games" "idleinhibit focus"];
}
{
matches = {tag = "games";};
rules = ["workspace 6" "immediate"];
}
{
matches = {title = "Steam";};
rules = ["workspace 5"];
}
{
matches = {title = "Steam Settings";};
rules = ["float" "size 50%" "center 1"];
}
{
matches = {class = "firefox";};
@ -29,5 +57,15 @@
matches = {title = "^(Open Files)$";};
rules = ["center 1" "float" "size 50%"];
}
{
matches = {initialTitle = "foot-dropdown";};
rules = [
"monitor 0"
"animation slide down"
"float"
"move 12 46"
"size ${widthMinusGaps} 30%"
];
}
];
}