Created
March 4, 2023 01:30
-
-
Save zwhitchcox/0fa8ec54671720fa3d2e79b2fd4a81d8 to your computer and use it in GitHub Desktop.
set up wacom tablet using udev rules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo -i -u zwhitchcox xsetwacom set 'Wacom Intuos4 4x6 Pen stylus' button 3 '0' | |
# make sure to chmod this script with `chmod +x /home/zwhitchcox/.xsetwacom` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/udev/rules.d/99-wacom.rules | |
SUBSYSTEM=="usb", ATTRS{idVendor}=="056a", ATTRS{idProduct}=="00b8", TAG+="systemd", ENV{SYSTEMD_WANTS}="wacom.service" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/wacom.service | |
[Unit] | |
Description=Set Wacom tablet button 3 to 0 | |
After=multi-user.target | |
[Service] | |
Type=oneshot | |
ExecStart=/home/zwhitchcox/.xsetwacom | |
User=zwhitchcox | |
Environment=DISPLAY=:1 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment