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 <noreply@anthropic.com>
This commit is contained in:
jasonwitty
2026-08-28 11:05:53 -07:00
parent c628c45291
commit a492682a51
2 changed files with 7 additions and 2 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, 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)) |
+6 -1
View File
@@ -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)"