summary refs log tree commit diff
path: root/hyprland-update-screen
diff options
context:
space:
mode:
Diffstat (limited to 'hyprland-update-screen')
-rwxr-xr-xhyprland-update-screen24
1 files changed, 24 insertions, 0 deletions
diff --git a/hyprland-update-screen b/hyprland-update-screen
new file mode 100755
index 0000000..317dd54
--- /dev/null
+++ b/hyprland-update-screen
@@ -0,0 +1,24 @@
+#!/bin/sh
+if test -n "$1"; then
+	if test "$1" != "--new-version"; then
+		printf "invalid arg %s\n" "$1" >/dev/stderr
+		exit 1
+	else
+		version="$2"
+	fi
+fi
+output=$(zenity --info \
+	--title "Hyprland updated to $version" \
+	--text "Hyprland has been updated! 😄
+
+Please check the release notes, which can be found on GitHub, as well as the news page on hypr.land.
+
+Every release may come with breaking changes, so if you get any config errors, try checking the latest release notes.
+
+If you are using plugins, you will need to rebuild them.
+
+<i>You can disable this screen in your Hyprland config.</i>" \
+	--ok-label "🔗 Open news" --extra-button "💝 Support")
+test "$?" -eq 0 && xdg-open "https://hypr.land/news"
+test "$output" = "💝 Support" && xdg-open "https://hypr.land/support"
+