full functionality restored (omg)

This commit is contained in:
2026-05-13 19:49:14 +01:00
parent f678372ee4
commit 0909e98a03
8 changed files with 210 additions and 237 deletions

32
modules/events.lua Normal file
View File

@@ -0,0 +1,32 @@
local appList = {
"waybar",
"dunst",
"wpaperd -d",
"wayvnc 0.0.0.0 --output=DP-1",
"syncthing -home=/home/user01/.config/syncthing -no-browser",
"gotify-desktop",
"sleep 10 && curl -X POST -H 'Content-Type: application/json' -d '{'ref':'$(git -C ~/.dotfiles rev-parse HEAD)', 'status':'$(git -C ~/.dotfiles diff --quiet && echo 'clean' || echo 'dirty')'}' https://n8n.voidarc.co.uk/webhook/config-checker",
}
local localAppList
if Hostname == "HACKSTATION" then
-- If on desktop do all the decoration nonsense
localAppList = {
"kitten panel --edge=background -o background_opacity=0 --output-name HDMI-A-1 sh -c 'cmatrix -b -C magenta -a -u 10'",
"kitten panel --edge=background -o background_opacity=0 --output-name DP-2 sh -c 'cava'",
}
elseif Hostname == "mobile02" then
-- If on laptop, launch way-edges
localAppList = {
"way-edges",
}
end
table.insert(appList, localAppList)
-- For everything in the applist run it on startup
hl.on("hyprland.start", function()
for _, command in ipairs(appList) do
hl.exec_cmd(command)
end
end)