diff options
author | Kevin <[email protected]> | 2024-10-14 11:56:20 -0300 |
---|---|---|
committer | Kevin <[email protected]> | 2024-10-16 00:46:57 -0300 |
commit | 1a1c8a605c8011056a07d69b15153bcdec4c0ceb (patch) | |
tree | 8967d5eb42c97b3446b407e82ecc3ddbd9f0c440 /examples/lua/notification-popups/init.lua | |
parent | 9e255738f835c0e47cc6ae4d0cfbb96a261b4a2f (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, +}) |