Initial commit: swipe-to-zoom touchscreen navigation for socktop

Tiled socktop dashboard where a right-to-left swipe zooms into each host
full-screen and left-to-right walks back out.

The carousel is tmux pane zoom rather than separate socktop instances, so
there is one process per host: half the processes, no reconnect delay when
swiping back, and constant polling load on the monitored hosts.

Gestures come from lisgd because libinput emits gesture events only for
touchpads, never touchscreens, which rules out libinput-gestures entirely.

Documents the four gotchas found while building this: panels reporting 2-3
contacts for a one-finger swipe, X needing to ignore the panel so the
terminal and socktop stop competing for the same touches, tmux mouse mode
being incompatible with swipes, and lisgd not grabbing the device
exclusively so two instances double-fire.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
jasonwitty
2026-08-09 01:22:23 -07:00
commit 18ddd39184
11 changed files with 735 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
[Unit]
Description=socktop-swipe touchscreen gesture daemon
Documentation=https://gt.wittyoneoff.com/jason/socktop-swipe
After=graphical-session.target
PartOf=graphical-session.target
[Service]
Type=simple
# lisgd queries X for screen geometry unless -w/-h are given (socktop-gestures
# always passes them), but keep DISPLAY set so it starts cleanly either way.
Environment=DISPLAY=:0
ExecStart=/usr/local/bin/socktop-gestures
Restart=always
RestartSec=2
[Install]
WantedBy=graphical-session.target