summaryrefslogtreecommitdiff
path: root/hardware
diff options
context:
space:
mode:
authorben <ben@arachnida.blog>2024-04-26 01:29:15 -0700
committerben <ben@arachnida.blog>2024-04-26 01:29:15 -0700
commitc746d8fc191ae2ac4b8d30c0d2409093cc32a009 (patch)
tree5cd8ed4ca43196af383aad98d2d07917697f4d24 /hardware
parentbccee88d94f34f52e846939e602fb070a30d6fb0 (diff)
Added hardware scripts
Diffstat (limited to 'hardware')
-rwxr-xr-xhardware/gtab_init.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/hardware/gtab_init.sh b/hardware/gtab_init.sh
new file mode 100755
index 0000000..ce392d9
--- /dev/null
+++ b/hardware/gtab_init.sh
@@ -0,0 +1,22 @@
+pad_id=$(xinput | grep "HID 256c:006d Pad pad" | cut -f 2 | cut -d '=' -f 2)
+stylus_id=$(xinput | grep "HID 256c:006d Pen stylus" | cut -f 2 | cut -d '=' -f 2)
+
+# Reset
+xsetwacom set $pad_id Button 1 "key + "
+xsetwacom set $pad_id Button 2 "key + "
+xsetwacom set $pad_id Button 3 "key + "
+xsetwacom set $pad_id Button 8 "key + "
+xsetwacom set $pad_id Button 9 "key + "
+xsetwacom set $pad_id Button 10 "key + "
+xsetwacom set $pad_id Button 11 "key + "
+xsetwacom set $pad_id Button 12 "key + "
+
+# Set
+xsetwacom --set $pad_id Button 1 "key +ctrl z -ctrl"
+xsetwacom --set $pad_id Button 2 "key +ctrl s -ctrl"
+xsetwacom --set $pad_id Button 9 "key +ctrl shift p -ctrl"
+xsetwacom --set $pad_id Button 10 "key +ctrl shift e -ctrl"
+xsetwacom --set $pad_id Button 11 "key +ctrl shift a -ctrl"
+xsetwacom --set $pad_id Button 12 "key +ctrl shift r -ctrl"
+
+xsetwacom set $stylus_id MapToOutput $1