From b79ae82a8068111201176fd3c55af5952cc09aa7 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Tue, 30 Dec 2025 22:00:01 -0800 Subject: [PATCH] add: gnome-shell-extension-grand-theft-focus (#8777) (#8778) --- .../anda.hcl | 6 ++++ ...ome-shell-extension-grand-theft-focus.spec | 35 +++++++++++++++++++ .../update.rhai | 1 + 3 files changed, 42 insertions(+) create mode 100644 anda/desktops/gnome/gnome-shell-extension-grand-theft-focus/anda.hcl create mode 100644 anda/desktops/gnome/gnome-shell-extension-grand-theft-focus/gnome-shell-extension-grand-theft-focus.spec create mode 100644 anda/desktops/gnome/gnome-shell-extension-grand-theft-focus/update.rhai diff --git a/anda/desktops/gnome/gnome-shell-extension-grand-theft-focus/anda.hcl b/anda/desktops/gnome/gnome-shell-extension-grand-theft-focus/anda.hcl new file mode 100644 index 0000000000..2e23cb347e --- /dev/null +++ b/anda/desktops/gnome/gnome-shell-extension-grand-theft-focus/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "gnome-shell-extension-grand-theft-focus.spec" + } +} diff --git a/anda/desktops/gnome/gnome-shell-extension-grand-theft-focus/gnome-shell-extension-grand-theft-focus.spec b/anda/desktops/gnome/gnome-shell-extension-grand-theft-focus/gnome-shell-extension-grand-theft-focus.spec new file mode 100644 index 0000000000..5c818b4275 --- /dev/null +++ b/anda/desktops/gnome/gnome-shell-extension-grand-theft-focus/gnome-shell-extension-grand-theft-focus.spec @@ -0,0 +1,35 @@ +%global extension grand-theft-focus +%global uuid %{extension}@zalckos + +Name: gnome-shell-extension-%{extension} +Version: 9 +Release: 1%?dist +Summary: GNOME extension that removes the 'Window is ready' notification and brings the window into focus instead +License: AGPL-3.0-only +URL: https://github.com/zalckos/GrandTheftFocus + +BuildArch: noarch + +Source0: https://github.com/zalckos/GrandTheftFocus/archive/refs/tags/v%version.tar.gz + +Requires: (gnome-shell >= 48~ with gnome-shell < 50~) +Recommends: gnome-extensions-app + +%description +GNOME extension. Removes the 'Window is ready' notification and brings the window into focus instead. + +%prep +%autosetup -n GrandTheftFocus-%version + +%install +install -Dm644 grand-theft-focus@zalckos.github.com/metadata.json %{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid}/metadata.json +install -Dm644 grand-theft-focus@zalckos.github.com/extension.js %{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid}/extension.js + +%files +%license LICENSE +%doc README.md +%{_datadir}/gnome-shell/extensions/%{uuid} + +%changelog +* Tue Dec 30 2025 Owen Zimmerman +- Initial commit diff --git a/anda/desktops/gnome/gnome-shell-extension-grand-theft-focus/update.rhai b/anda/desktops/gnome/gnome-shell-extension-grand-theft-focus/update.rhai new file mode 100644 index 0000000000..9c32bed9ab --- /dev/null +++ b/anda/desktops/gnome/gnome-shell-extension-grand-theft-focus/update.rhai @@ -0,0 +1 @@ +rpm.version(gh_tag("zalckos/GrandTheftFocus"));