summaryrefslogtreecommitdiff
path: root/examples/gtk3/lua/notifications/init.lua
blob: 886e9ab20c54e7f110a3be0b577bf3b6d20d623c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
local astal = require("astal")
local App = require("astal.gtk3.app")

local NotificationPopups = require("notifications.NotificationPopups")
local src = require("lib").src

local scss = src("style.scss")
local css = "/tmp/style.css"

astal.exec("sass " .. scss .. " " .. css)

App:start({
	instance_name = "notifications",
	css = css,
	main = function()
		for _, mon in pairs(App.monitors) do
			NotificationPopups(mon)
		end
	end,
})