Disable re-allocate size animation under hyprland #758
-
|
Hello, I’m using Aylurs Gtk Shell (AGS) under Hyprland and created a notification widget. When multiple notifications appear, each new notification triggers an animation due to the window being resized. I understand this is a Hyprland behavior, but I’d like to disable it. I read that it can be disabled using the wmclass in a Hyprland config like: windowrulev2 = noanim, class:^(ags)$However, I haven’t been able to find the correct wmclass for AGS. Do you know how I can find it? Or is there another way to prevent this animation? I can also share my code if that helps. Thank you! <window
class="notifications"
visible={notifications((ns) => ns.length > 0)}
anchor={Astal.WindowAnchor.TOP}
layer={Astal.Layer.OVERLAY}
exclusivity={fullscreen((fullscreen) => (fullscreen ? Astal.Exclusivity.IGNORE : Astal.Exclusivity.NORMAL))}
marginTop={fullscreen((fullscreen) => (fullscreen ? Env.margin : Env.margin / 2))}
>
<box orientation={Gtk.Orientation.VERTICAL} spacing={7}>
<For each={notifications}>{(notification) => <Notification notification={notification} />}</For>
</box>
</window> |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
The namespace of windows by default is <window
namespace="my-window"
>
</window>You can also find out existing layer names on Hyprland using hyprctl layers |
Beta Was this translation helpful? Give feedback.
-
|
Thanks ! |
Beta Was this translation helpful? Give feedback.
The namespace of windows by default is
gtk-layer-shellorgtk4-layer-shelldepending on version. You can set Astal.Window.namespace to change it.You can also find out existing layer names on Hyprland using
hyprctl.