From c813419525f709f0ee233fa855324af8f9521018 Mon Sep 17 00:00:00 2001
From: matt1432 <matt@nelim.org>
Date: Sun, 28 May 2023 18:24:21 -0400
Subject: [PATCH] add lisgd script

---
 lisgd/config | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100755 lisgd/config

diff --git a/lisgd/config b/lisgd/config
new file mode 100755
index 00000000..d2cf39c2
--- /dev/null
+++ b/lisgd/config
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+## https://www.reddit.com/r/swaywm/comments/ocec7k/comment/i93s0ma/
+## https://git.sr.ht/~mil/lisgd/tree/0.3.7/item/config.def.h
+
+function gestures {
+	lisgd -d /dev/input/by-path/platform-AMDI0010\:00-event -o 0 -t 125 -r 25 -m 3200 \
+	-g "3,RL,N,S,R,$HOME/.config/sway/scripts/gestures.sh next" \
+	-g "3,LR,N,S,R,$HOME/.config/sway/scripts/gestures.sh prev"
+}
+
+if pgrep lisgd ; then
+	killall lisgd
+	gestures
+else
+	gestures
+fi