From a40da3c0e2a1bec99118804f3cc882fdd3c1ec0a Mon Sep 17 00:00:00 2001 From: Azzen Abidi Date: Thu, 25 Jun 2026 21:13:40 +0000 Subject: [PATCH 1/3] packaging: make hints installer and setup more robust --- install/packaging/hints.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 install/packaging/hints.sh diff --git a/install/packaging/hints.sh b/install/packaging/hints.sh new file mode 100644 index 0000000000..4fa1eb8841 --- /dev/null +++ b/install/packaging/hints.sh @@ -0,0 +1,28 @@ +#!/bin/bash +set -euo pipefail +# install hints +tmp_installer="$(mktemp)" +curl -fsSL https://raw.githubusercontent.com/AlfredoSequeida/hints/main/install.sh -o "$tmp_installer" +bash "$tmp_installer" +rm -f "$tmp_installer" + +# setup hints +hints_cmd="$(command -v hints || true)" +if [[ -n "$hints_cmd" ]]; then + sudo env XDG_SESSION_TYPE="${XDG_SESSION_TYPE-}" XDG_CURRENT_DESKTOP="${XDG_CURRENT_DESKTOP-}" "$hints_cmd" --setup +else + echo "hints not found in PATH; skipping setup" >&2 +fi + +# ensure hypr config dir and append bindings if missing +hypr_dir="$HOME/.config/hypr" +bindings_file="$hypr_dir/bindings.conf" +mkdir -p "$hypr_dir" +if [[ -f "$bindings_file" && ! -f "${bindings_file}.bak" ]]; then + cp -a "$bindings_file" "${bindings_file}.bak" +fi +grep -qxF 'bind = SUPER, I, exec, hints' "$bindings_file" 2>/dev/null || cat >>"$bindings_file" <<'EOF' +bind = SUPER, I, exec, hints +bind = SUPER, Y, exec, hints --mode scroll +EOF + From 5645b5383408588bb4548c6dd2f0c3e17cfb4cba Mon Sep 17 00:00:00 2001 From: Azzen Abidi Date: Thu, 25 Jun 2026 22:28:21 +0100 Subject: [PATCH 2/3] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- install/packaging/hints.sh | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/install/packaging/hints.sh b/install/packaging/hints.sh index 4fa1eb8841..9a21f865a6 100644 --- a/install/packaging/hints.sh +++ b/install/packaging/hints.sh @@ -14,15 +14,17 @@ else echo "hints not found in PATH; skipping setup" >&2 fi -# ensure hypr config dir and append bindings if missing -hypr_dir="$HOME/.config/hypr" -bindings_file="$hypr_dir/bindings.conf" -mkdir -p "$hypr_dir" -if [[ -f "$bindings_file" && ! -f "${bindings_file}.bak" ]]; then - cp -a "$bindings_file" "${bindings_file}.bak" -fi -grep -qxF 'bind = SUPER, I, exec, hints' "$bindings_file" 2>/dev/null || cat >>"$bindings_file" <<'EOF' -bind = SUPER, I, exec, hints -bind = SUPER, Y, exec, hints --mode scroll +# Add Hyprland bindings (Omarchy uses Lua config modules under ~/.config/hypr/*.lua) +for bindings_file in "$HOME/.local/share/omarchy/config/hypr/bindings.lua" "$HOME/.config/hypr/bindings.lua"; do + [[ -f $bindings_file ]] || continue + + if ! grep -qxF 'o.bind("SUPER + I", "Hints", { launch = "hints" })' "$bindings_file"; then + cat >>"$bindings_file" <<'EOF' + +-- Hints (vimium-style window navigation) +o.bind("SUPER + I", "Hints", { launch = "hints" }) +o.bind("SUPER + Y", "Hints scroll", { launch = "hints --mode scroll" }) EOF + fi +done From 18444a8253bea9e3c2e6360fa1090bfd228e0df9 Mon Sep 17 00:00:00 2001 From: Azzen Abidi Date: Fri, 26 Jun 2026 01:04:55 +0100 Subject: [PATCH 3/3] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- install/packaging/hints.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/install/packaging/hints.sh b/install/packaging/hints.sh index 9a21f865a6..b3d77cfb7b 100644 --- a/install/packaging/hints.sh +++ b/install/packaging/hints.sh @@ -18,13 +18,17 @@ fi for bindings_file in "$HOME/.local/share/omarchy/config/hypr/bindings.lua" "$HOME/.config/hypr/bindings.lua"; do [[ -f $bindings_file ]] || continue + if ! grep -qxF '-- Hints (vimium-style window navigation)' "$bindings_file"; then + echo "" >>"$bindings_file" + echo "-- Hints (vimium-style window navigation)" >>"$bindings_file" + fi + if ! grep -qxF 'o.bind("SUPER + I", "Hints", { launch = "hints" })' "$bindings_file"; then - cat >>"$bindings_file" <<'EOF' + echo 'o.bind("SUPER + I", "Hints", { launch = "hints" })' >>"$bindings_file" + fi --- Hints (vimium-style window navigation) -o.bind("SUPER + I", "Hints", { launch = "hints" }) -o.bind("SUPER + Y", "Hints scroll", { launch = "hints --mode scroll" }) -EOF + if ! grep -qxF 'o.bind("SUPER + Y", "Hints scroll", { launch = "hints --mode scroll" })' "$bindings_file"; then + echo 'o.bind("SUPER + Y", "Hints scroll", { launch = "hints --mode scroll" })' >>"$bindings_file" fi done