parent
8ee3530330
commit
276c399f49
6 changed files with 25 additions and 19 deletions
nixosModules/ags/v2/widgets/misc
|
@ -2,8 +2,7 @@ import { Astal, Widget } from 'astal/gtk3';
|
|||
import { register, property } from 'astal/gobject';
|
||||
import { Binding, idle } from 'astal';
|
||||
|
||||
import AstalHyprland from 'gi://AstalHyprland?version=0.1';
|
||||
const Hyprland = AstalHyprland.get_default();
|
||||
import { hyprMessage } from '../../lib';
|
||||
|
||||
/* Types */
|
||||
type CloseType = 'none' | 'stay' | 'released' | 'clicked';
|
||||
|
@ -59,10 +58,7 @@ class PopupWindow extends Widget.Window {
|
|||
});
|
||||
|
||||
const setTransition = (_: PopupWindow, t: HyprTransition | Binding<HyprTransition>) => {
|
||||
Hyprland.message_async(
|
||||
`keyword layerrule animation ${t}, ${this.name}`,
|
||||
() => { /**/ },
|
||||
);
|
||||
hyprMessage(`keyword layerrule animation ${t}, ${this.name}`);
|
||||
};
|
||||
|
||||
this.connect('notify::transition', setTransition);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue