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
parent 8380cc3793
commit 10bf29ede0
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ fresh session.
| --- | --- |
| *(none)* | Build/install lisgd, install the three scripts and the default config |
| `--xignore` | Also tell X to ignore the touch panel (see below — usually wanted) |
| `--i3` | Also add i3 autostart lines (gesture daemon + fullscreen terminal), with a backup and `i3 -C` validation |
| `--i3` | Also add i3 autostart lines (gesture daemon, fullscreen terminal, idle-pointer hiding via `unclutter-xfixes`), with a backup and `i3 -C` validation |
| `--noblank` | Also stop the screen blanking / DPMS power-down (wall displays) |
| `--autologin` | Also make lightdm log this user straight into i3 at boot (see [security note](#related-does-the-display-come-back-by-itself)) |
+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)"