Skip to content

Instantly share code, notes, and snippets.

View tdaniel22's full-sized avatar

Tristan Daniel tdaniel22

View GitHub Profile
@tdaniel22
tdaniel22 / sway-input-usb-path-identifier.patch
Last active November 17, 2025 11:10
This revision uses the "phys" attribute that is present on the libinput node. It should be stable accross reboots and USB enumerations. Also rebased on Sway 1.11.
diff --git a/sway/input/input-manager.c b/sway/input/input-manager.c
index ffcf8fc5..239f0504 100644
--- a/sway/input/input-manager.c
+++ b/sway/input/input-manager.c
@@ -1,4 +1,6 @@
#include <ctype.h>
+#include <libinput.h>
+#include <libudev.h>
#include <stdio.h>
#include <string.h>