hyprwm / Hyprland

Hyprland is a highly customizable dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
17.88k stars 752 forks source link

Rule for specific layer #6646

Closed shvedes closed 5 days ago

shvedes commented 5 days ago

Description

I searched the wiki for this information, but found nothing. For example, I want to make a custom bezier (for example, change the animation speed), which will only apply to swaync-control-center, and not to any other layer. Is it possible?

fufexan commented 5 days ago

https://wiki.hyprland.org/Configuring/Window-Rules/#layer-rules

shvedes commented 5 days ago

You misunderstood me. What I mean is the ability to use separate rules for a specific layer.

shvedes commented 5 days ago

Nevermind

DADA30000 commented 5 days ago

Nevermind

have you found out how to change properties of animation for layers?

shvedes commented 5 days ago

Nevermind

have you found out how to change properties of animation for layers?

Sort of. Use this lines as refer.

animations {

    animation = layers, 1, 4, default, fade
    animation = layersIn, 1, 3.5, default, slide
   animation = layersOut, 1, 3.5, default, slide
}

layerrule = animation fade, rofi
layerrule = animation fade, swayosd
layerrule = animation fade, logout_dialog
layerrule = animation slide right, swaync-control-center
layerrule = animation slide, swaync-notification-window

This is not like i wanted, but it works at least.

DADA30000 commented 4 days ago

Nevermind

have you found out how to change properties of animation for layers?

Sort of. Use this lines as refer.

animations {

    animation = layers, 1, 4, default, fade
    animation = layersIn, 1, 3.5, default, slide
   animation = layersOut, 1, 3.5, default, slide
}

layerrule = animation fade, rofi
layerrule = animation fade, swayosd
layerrule = animation fade, logout_dialog
layerrule = animation slide right, swaync-control-center
layerrule = animation slide, swaync-notification-window

This is not like i wanted, but it works at least.

oh, didn't know I can set animation rule for layers, thx

musjj commented 22 hours ago

Is there a way to set the speed for a specific layerrule?