Since I most commonly use Cinnamon desktop on my personal CachyOS installations, there are some issues with linking custom button actions to the buttons on the tablet. Here are the steps I took to solve this via the terminal and an example setup that I use everyday.
sudo pacman -S xf86-input-wacomto make sure you can usexsetwacomxsetwacom list devicesto see all devices and their names. Find item labeled “pad” or “tablet”.- In my current case, it showed up as
Wacom Intuos PT M 2 Pad pad
- In my current case, it showed up as
xsetwacom -s get "Wacom Intuos PT M 2 Pad pad" allto see all buttons.- In my current case, there was more than the 4 buttons on my tablet listed (5). After some testing the buttons are laid out in a certain order.
- Button 3 = Upper Left Button
- Button 1 = Lower Left Button
- Button 9 = Upper Right Button
- Button 8 = Lower Right Button
- In my current case, there was more than the 4 buttons on my tablet listed (5). After some testing the buttons are laid out in a certain order.
- Assign custom key binds to liking. In my current case, I like the Right side to scroll, and the left side upper to link to the terminal, and the lower left to linked to LocalSend.
- To connect LocalSend or any other package launcher to the button, you have to set a custom shortcut in the keyboard shortcuts system settings page. I chose
Ctrl + Shift + LOnce that is set, then you just link it to the shortcut key bind.xsetwacom set "Wacom Intuos PT M 2 Pad pad" Button 1 "key ctrl shift l"
xsetwacom set "Wacom Intuos PT M 2 Pad pad" Button 3 "key ctrl alt t"xsetwacom set "Wacom Intuos PT M 2 Pad pad" Button 8 "key Next"xsetwacom set "Wacom Intuos PT M 2 Pad pad" Button 9 "key Prior"
- To connect LocalSend or any other package launcher to the button, you have to set a custom shortcut in the keyboard shortcuts system settings page. I chose
- Once you have set and tested the buttons to your desired inputs/commands, then you need to make this permanent, as these will reset after a reboot.
nano ~/.xprofile- Paste your commands and save.
xsetwacom set "Wacom Intuos PT M 2 Pad pad" Button 1 "key ctrl shift l"
xsetwacom set "Wacom Intuos PT M 2 Pad pad" Button 3 "key ctrl alt t"
xsetwacom set "Wacom Intuos PT M 2 Pad pad" Button 8 "key Next"
xsetwacom set "Wacom Intuos PT M 2 Pad pad" Button 9 "key Prior"