feat: add Arch update helper and web UI

This commit is contained in:
2026-05-03 22:48:01 +02:00
parent cbe105a719
commit 653ff6d298
12 changed files with 1349 additions and 0 deletions

18
internal/notify/notify.go Normal file
View File

@@ -0,0 +1,18 @@
package notify
import (
"errors"
"os/exec"
)
func Send(title, body string) error {
if _, err := exec.LookPath("notify-send"); err == nil {
return exec.Command("notify-send", "-a", "LazyUpdateManager", title, body).Run()
}
if _, err := exec.LookPath("hyprctl"); err == nil {
return exec.Command("hyprctl", "notify", "1", "8000", "rgb(73daca)", title+": "+body).Run()
}
return errors.New("neither notify-send nor hyprctl is available")
}