#!/bin/sh # Run the real gesture daemon in the foreground, with logging, so you can watch # the display while you swipe. Ctrl-C to stop. # # Expect: swipe right-to-left -> zooms in one host at a time # swipe left-to-right -> walks back out to the overview # "Execute ..." in the output means a gesture matched and fired. # # Make sure no other instance is running first -- two copies fire every swipe # twice, which looks like the carousel skipping. set -eu if pgrep -x lisgd >/dev/null 2>&1; then echo "!! lisgd is already running (pid: $(pgrep -x lisgd | tr '\n' ' '))." >&2 echo "!! Two instances make every swipe fire twice. Stop it first:" >&2 echo " pkill -x lisgd" >&2 exit 1 fi exec "$(dirname "$0")/../socktop-gestures" -v