diff options
author | ben <ben@nagy.contact> | 2025-01-10 11:14:29 -0800 |
---|---|---|
committer | ben <ben@nagy.contact> | 2025-01-10 11:14:29 -0800 |
commit | fb4f206e21cc2853e904e8e548b3d4450b208c8d (patch) | |
tree | 92044e436174b598bbb831473412ee4382a05396 /scripts/util/gtab_init.sh | |
parent | 7339a5dae5f48ba37d44094f8aaa9915695f86e5 (diff) |
added scriptsmain
Diffstat (limited to 'scripts/util/gtab_init.sh')
-rwxr-xr-x | scripts/util/gtab_init.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/util/gtab_init.sh b/scripts/util/gtab_init.sh new file mode 100755 index 0000000..76284d9 --- /dev/null +++ b/scripts/util/gtab_init.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +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) + +# Clear +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 |