Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions install/packaging/hints.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash
set -euo pipefail
# install hints
Comment on lines +1 to +3
Comment on lines +1 to +3
Comment on lines +1 to +3
tmp_installer="$(mktemp)"
curl -fsSL https://raw.githubusercontent.com/AlfredoSequeida/hints/main/install.sh -o "$tmp_installer"
bash "$tmp_installer"
Comment on lines +4 to +6
Comment on lines +4 to +6
Comment on lines +5 to +6
rm -f "$tmp_installer"
Comment on lines +4 to +7

# 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
Comment on lines +11 to +15

# 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 '-- 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
echo 'o.bind("SUPER + I", "Hints", { launch = "hints" })' >>"$bindings_file"
fi

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