Open peteruithoven opened 4 years ago
xsetwacom could prove to be a workaround: https://joshuawoehlke.com/wacom-intuos-and-xsetwacom-on-ubuntu-18-04/ https://ubuntu-mate.community/t/scale-your-wacom-tablet-to-a-single-monitor/8036
But I can't seem to find or install it. I've opened an Stack Exchange question: https://elementaryos.stackexchange.com/questions/25301/xsetwacom-on-elementary-os-hera
Some more leads on workarounds: https://github.com/linuxwacom/xf86-input-wacom/wiki/Dual-and-Multi-Monitor-Set-Up https://forum.tvpaint.com/viewtopic.php?f=39&t=4923
The following way, using the area parameter, seems easier though, but it would need to be combined with the script and keyboard shortcut. https://joshuawoehlke.com/wacom-intuos-and-xsetwacom-on-ubuntu-18-04/
For a moment it seems like I could map a button to displaytoggle: https://wiki.archlinux.org/index.php/wacom_tablet#The_syntax
But that returns:
$ xsetwacom --set 26 button 1 "displaytoggle"
Note: The "displaytoggle" keyword is not supported anymore and will be ignored.
Source: https://github.com/linuxwacom/xf86-input-wacom Relevant question on displaytoggle: https://github.com/linuxwacom/xf86-input-wacom/issues/16
If I won't find workaround - this makes whole OS unusable for me, since I have multi display system, and I need the ability to map wacom tablet to specific display.
Some more leads on workarounds: https://github.com/linuxwacom/xf86-input-wacom/wiki/Dual-and-Multi-Monitor-Set-Up https://forum.tvpaint.com/viewtopic.php?f=39&t=4923
The following way, using the area parameter, seems easier though, but it would need to be combined with the script and keyboard shortcut. https://joshuawoehlke.com/wacom-intuos-and-xsetwacom-on-ubuntu-18-04/
For a moment it seems like I could map a button to displaytoggle: https://wiki.archlinux.org/index.php/wacom_tablet#The_syntax
But that returns:
$ xsetwacom --set 26 button 1 "displaytoggle" Note: The "displaytoggle" keyword is not supported anymore and will be ignored.
Source: https://github.com/linuxwacom/xf86-input-wacom Relevant question on displaytoggle: linuxwacom/xf86-input-wacom#16
I use xsetwacom set "Wacom Intuos PT S 2 Pen stylus" MapToOutput next
and it works fine.
I bind it to an app called easystroke and use it with a gesture and it's great.
Having the setting on switchboard would be better tho.
@hrstwn Thanks. For mine it was:
xsetwacom set "Wacom Intuos Pro S Pen stylus" MapToOutput next
You can get the list of devices using:
xsetwacom --list devices
Using xsetwacom set "{device name}" MapToOutput next
seems to work great.
Looking through the code I don't really understand which settings are available. It seems to change dconf settings like /org/gnome/desktop/peripherals/tablets/%s:%s/mapping
. The 2 settings there are already visible.
https://github.com/elementary/switchboard-plug-wacom/blob/7865b6981fd0fec2c6df289980b49c8335f30917/src/Views/TabletView.vala#L49-L50
Where do these come from, where can I find all settings?
It doesn't work with something like xsetwacom.
Maybe the settings come from gnome-settings-daemon? I found this mapping logic, which mentions the settings we know: https://github.com/GNOME/gnome-settings-daemon/blob/f59bc52178e309f8ad369c0ab4e796765458d759/plugins/wacom/gsd-wacom-manager.c#L133-L135 It has gschema's for other peripherals, but not tablet. https://github.com/GNOME/gnome-settings-daemon/blob/master/data/org.gnome.settings-daemon.peripherals.gschema.xml.in There is a wacom gschema file, but that's all deprecated https://github.com/GNOME/gnome-settings-daemon/blob/master/data/org.gnome.settings-daemon.peripherals.wacom.gschema.xml.in
Prerequisites
Feature
Is your feature request related to a problem? Please describe.
Currently the tablet area is mapped to all the available screen area. This is problematic when you have multiple monitors, because that means you can only use half the tablet when drawing in an application on one monitor.
Describe the solution you'd like
I understand that Wacom on Windows has a Display Toggle function, which enables you to quickly switch between working on all of your monitors and working on individual monitors. I assume people usually map one of the tablet buttons to this action. More info: http://101.wacom.com/UserHelp/en/DisplayToggle_Opaque.htm
Existing work
See above
Describe alternatives you've considered
One alternative solution would be to have settings to change how the tablet is mapped to the screen area: http://101.wacom.com/UserHelp/en/Mapping.htm But, that seems like quite a hassle if you frequently want to change this and not the easiest kind of settings to design and implement.
Additional context