Skip to content
Open
Changes from 2 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
30 changes: 30 additions & 0 deletions install/packaging/hints.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/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
Comment on lines +4 to +7
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 +10 to +15
Comment on lines +11 to +15
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 '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
Comment thread
azzenabidi marked this conversation as resolved.
done