Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Display Toggle #19

Open
1 task done
peteruithoven opened this issue Jul 22, 2020 · 6 comments
Open
1 task done

Support Display Toggle #19

peteruithoven opened this issue Jul 22, 2020 · 6 comments

Comments

@peteruithoven
Copy link
Collaborator

Prerequisites

  • I have searched open and closed issues for duplicates.

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

@peteruithoven
Copy link
Collaborator Author

peteruithoven commented Jul 22, 2020

@peteruithoven
Copy link
Collaborator Author

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

@Pawel-9215
Copy link

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.

@hrstwn
Copy link

hrstwn commented Oct 13, 2021

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.

@aral
Copy link

aral commented Jan 20, 2022

@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

@peteruithoven
Copy link
Collaborator Author

peteruithoven commented Jul 17, 2022

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.

settings.bind ("mapping", tracking_mode_combo, "active-id", SettingsBindFlags.DEFAULT);
settings.bind ("left-handed", left_handed_switch, "active", SettingsBindFlags.DEFAULT);

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants