From a492682a51e87ec34de9999f47c868cc374444c5 Mon Sep 17 00:00:00 2001 From: jasonwitty Date: Fri, 28 Aug 2026 11:05:53 -0700 Subject: [PATCH] i3 autostart: open the dashboard fullscreen on the primary output No keyboard needed after a reboot, and a second connected display can no longer capture the window. Co-Authored-By: Claude Fable 5 --- README.md | 2 +- install.sh | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 53cfa96..4a68e5d 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, with a backup and `i3 -C` validation | +| `--i3` | Also add i3 autostart lines (gesture daemon + fullscreen terminal), 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 7357dee..6963132 100755 --- a/install.sh +++ b/install.sh @@ -194,7 +194,12 @@ if [ "$do_i3" = yes ]; then # Exactly ONE gesture daemon: lisgd does not grab the device exclusively, so a # second instance makes every swipe fire twice. exec --no-startup-id $BIN/socktop-gestures -exec --no-startup-id \$TERMINAL -e $BIN/socktop-rack +# Start the dashboard on the primary output and fullscreen (which also hides +# the i3 bar), so no keyboard is needed after a reboot and a second monitor +# cannot capture it. --class gives the window a distinct instance name for the +# 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 EOF if i3 -C -c "$i3conf" >/dev/null 2>&1; then echo "==> added i3 autostart (backup: $bak)"