Open iamkarlson opened 1 year ago
I'm also struggling with this
ThinkPad Z13 Gen 1 Kernel: 6.6.2-arch1-1
swaymsg input "1386:21220:Wacom_HID_52E4_Pen" tool_mode "*" relative
Try this in your config file. It is now working for me. Dont forget to replace the device identifier with yours.
input "1386:890:Wacom_One_by_Wacom_S_Pen" {
tool_mode pen relative
}
I think this is related to applying the changes. I can use the following workaround:
swaymsg
Now the changes are applied.
According to docs, this code should turn on relative mode for wacom tablet:
this is a responsible code for the function: https://github.com/swaywm/sway/blob/master/sway/commands/input.c#L35
However, tool mode doesn't change, it's still acting in absolute values e.g. when I pointing pen to top left corner - mouse cursor jumps to the top left part of the screen, if I over the air move pen to the bottom right corner - it jumps to bottom right corner. Using relative mode, I would expect cursor to remain at almost the same position, and move it by delta of positions of the pen when it in close proximity to the pad. It's also described in libinput docs: https://wayland.freedesktop.org/libinput/doc/latest/tablet-support.html