Files
hypr/modules/events.lua
voidarc 8b2ec0c7d7 changed endpoint becuase people are using my dotfiles
It was a known issue that the notification triggers on all my devices
because of how the automation is set up, but it also tells me that OTHER
PEOPLE ARE USING MY DOTFILES!!!!! THATS INSANE!!!! If you're reading
this because you use them too, thank you so much for validating my work,
it means alot. Just stop triggering my automations lol
2026-06-30 00:09:17 +01:00

34 lines
909 B
Lua

local appList = {
"wpaperd -d",
"syncthing -home=/home/user01/.config/syncthing -no-browser",
"gotify-desktop",
'sleep 5 && 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://192.168.1.180:5678/webhook/config-checker',
}
local localAppList
if Hostname == "HACKSTATION" then
-- If on desktop do desktop things
localAppList = {
"wayvnc 0.0.0.0 --output=DP-1",
"quickshell",
}
elseif Hostname == "mobile02" then
-- If on laptop, do laptop things
localAppList = {
"way-edges",
"waybar",
"dunst",
}
end
for _, command in ipairs(localAppList) do
table.insert(appList, command)
end
-- 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)