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:
@@ -68,7 +68,7 @@ fresh session.
|
|||||||
| --- | --- |
|
| --- | --- |
|
||||||
| *(none)* | Build/install lisgd, install the three scripts and the default config |
|
| *(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) |
|
| `--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) |
|
| `--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)) |
|
| `--autologin` | Also make lightdm log this user straight into i3 at boot (see [security note](#related-does-the-display-come-back-by-itself)) |
|
||||||
|
|
||||||
|
|||||||
@@ -181,6 +181,10 @@ fi
|
|||||||
# --- optional: i3 autostart -------------------------------------------------
|
# --- optional: i3 autostart -------------------------------------------------
|
||||||
if [ "$do_i3" = yes ]; then
|
if [ "$do_i3" = yes ]; then
|
||||||
i3conf="$HOME/.config/i3/config"
|
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
|
if [ ! -e "$i3conf" ]; then
|
||||||
echo "!! $i3conf not found; skipping i3 autostart" >&2
|
echo "!! $i3conf not found; skipping i3 autostart" >&2
|
||||||
elif grep -q "socktop-gestures" "$i3conf"; then
|
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.
|
# rule; alacritty syntax -- adapt for other terminals.
|
||||||
for_window [instance="^socktop-rack\$"] move window to output primary, fullscreen enable
|
for_window [instance="^socktop-rack\$"] move window to output primary, fullscreen enable
|
||||||
exec --no-startup-id \$TERMINAL --class socktop-rack -e $BIN/socktop-rack
|
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
|
EOF
|
||||||
if i3 -C -c "$i3conf" >/dev/null 2>&1; then
|
if i3 -C -c "$i3conf" >/dev/null 2>&1; then
|
||||||
echo "==> added i3 autostart (backup: $bak)"
|
echo "==> added i3 autostart (backup: $bak)"
|
||||||
|
|||||||
Reference in New Issue
Block a user