diff options
author | Freya Murphy <freya@freyacat.org> | 2025-06-18 11:34:06 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-06-18 11:34:06 -0400 |
commit | f11ff2f2ea4bd8ad65aa8a4fbae6f4c083117672 (patch) | |
tree | a3b4425f1e87b1aef2f0e93d6570b1d3f3c69d8d /pkgs/astal/src/widget/deck/init.lua | |
parent | update hyprland config (diff) | |
download | dotfiles-nix-f11ff2f2ea4bd8ad65aa8a4fbae6f4c083117672.tar.gz dotfiles-nix-f11ff2f2ea4bd8ad65aa8a4fbae6f4c083117672.tar.bz2 dotfiles-nix-f11ff2f2ea4bd8ad65aa8a4fbae6f4c083117672.zip |
add notifications to astal
Diffstat (limited to 'pkgs/astal/src/widget/deck/init.lua')
-rw-r--r-- | pkgs/astal/src/widget/deck/init.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/astal/src/widget/deck/init.lua b/pkgs/astal/src/widget/deck/init.lua new file mode 100644 index 0000000..0df5bb4 --- /dev/null +++ b/pkgs/astal/src/widget/deck/init.lua @@ -0,0 +1,18 @@ +local astal = require("astal") +local Widget = require("astal.gtk3.widget") + +local Notifications = require("widget.deck.notifications") + +return function(gdkmonitor) + local Anchor = astal.require('Astal').WindowAnchor + + return Widget.Window({ + class_name = "deck", + gdkmonitor = gdkmonitor, + anchor = Anchor.TOP + Anchor.RIGHT, + Widget.Box({ + vertical = true, + Notifications(), + }), + }) +end |