Hide the idle X pointer on the wall display (unclutter-xfixes)

With X ignoring the touch panel nothing ever moves the pointer, so it sits
at screen centre forever. --i3 installs unclutter-xfixes and autostarts it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
jasonwitty
2026-08-28 12:41:35 -07:00
co-authored by Claude Fable 5
parent 8380cc3793
commit 10bf29ede0
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -181,6 +181,10 @@ fi
# --- optional: i3 autostart -------------------------------------------------
if [ "$do_i3" = yes ]; then
i3conf="$HOME/.config/i3/config"
if ! command -v unclutter >/dev/null 2>&1 && command -v apt-get >/dev/null 2>&1; then
echo "==> installing unclutter-xfixes (hides the idle pointer on the wall display)"
sudo apt-get install -y unclutter-xfixes || echo "!! unclutter-xfixes not installed; the pointer will stay visible" >&2
fi
if [ ! -e "$i3conf" ]; then
echo "!! $i3conf not found; skipping i3 autostart" >&2
elif grep -q "socktop-gestures" "$i3conf"; then
@@ -200,6 +204,9 @@ exec --no-startup-id $BIN/socktop-gestures
# rule; alacritty syntax -- adapt for other terminals.
for_window [instance="^socktop-rack\$"] move window to output primary, fullscreen enable
exec --no-startup-id \$TERMINAL --class socktop-rack -e $BIN/socktop-rack
# Hide the idle pointer: with X ignoring the touch panel nothing ever moves it,
# so it would sit at screen centre forever. (apt install unclutter-xfixes)
exec --no-startup-id unclutter --timeout 1 --ignore-scrolling
EOF
if i3 -C -c "$i3conf" >/dev/null 2>&1; then
echo "==> added i3 autostart (backup: $bak)"