diff options
author | Kevin <[email protected]> | 2024-10-14 11:56:20 -0300 |
---|---|---|
committer | Kevin <[email protected]> | 2024-10-14 11:56:20 -0300 |
commit | ea6b3e6b24ced559c33b5f7df3fdd138409491d3 (patch) | |
tree | bd156caf615bf62ce45a6a602a54e7860c226389 /examples/lua/notification-popups/init.lua | |
parent | 1426fc6df0fa09e1b4ecd54da7e79ba06474e1d5 (diff) |
notifications lua example
Diffstat (limited to 'examples/lua/notification-popups/init.lua')
-rw-r--r-- | examples/lua/notification-popups/init.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/lua/notification-popups/init.lua b/examples/lua/notification-popups/init.lua new file mode 100644 index 0000000..ffa910c --- /dev/null +++ b/examples/lua/notification-popups/init.lua @@ -0,0 +1,21 @@ +local astal = require("astal") +local Notify = astal.require("Notify") +local timeout = astal.timeout +local App = astal.App + +local Notifications = require("widget.notifications") +local src = require("lib").src + +local scss = src("style.scss") +local css = "/tmp/style.css" + +astal.exec("sass " .. scss .. " " .. css) + +App:start({ + css = css, + main = function() + for _, mon in pairs(App.monitors) do + Notifications(mon) + end + end, +}) |