From 10bf29ede09026b7af21a82ffcfaf5eaec0d149b Mon Sep 17 00:00:00 2001 From: jasonwitty Date: Fri, 28 Aug 2026 12:41:35 -0700 Subject: [PATCH] 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 --- README.md | 2 +- install.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2a07058..31d5c09 100644 --- a/README.md +++ b/README.md @@ -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)) | diff --git a/install.sh b/install.sh index 6963132..6a95197 100755 --- a/install.sh +++ b/install.sh @@ -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)"