However, I could not find how to make Cintiq as a secondary display and able to draw on it directly. There is not UI button for it. Setting the Cintiq as a secondary display only make the Cintiq monitor itself as a secondary, however, the stylus detection still map to the primary screen.
After some Google search and debugging, found following post
which explains in great detail how to handle it.
However, when I run it, it failed with following error
Cannot find device 'Wacom Cintiq 13HD stylus'.
Cannot find device 'Wacom Cintiq 13HD eraser'.
I then use xsetwacom to find the devices real name
It then display as
So I modified the script as following
Re run the script, and it works this time
xsetwacom --list devices
Wacom Cintiq 13HD Pen stylus id: 14 type: STYLUS
Wacom Cintiq 13HD Pen eraser id: 15 type: ERASER
Wacom Cintiq 13HD Pad pad id: 16 type: PAD
So I modified the script as following
#!/bin/bash## Toggles which screen the cintiq is mapped to.if [ "$(cat ~/.wacom-mapping)" -eq 0 ];thenecho 1xsetwacom set "Wacom Cintiq 13HD Pen stylus" MapToOutput "HEAD-1"xsetwacom set "Wacom Cintiq 13HD Pen eraser" MapToOutput "HEAD-1"echo 1 > ~/.wacom-mappingelseecho 0xsetwacom set "Wacom Cintiq 13HD Pen stylus" MapToOutput "HEAD-0"xsetwacom set "Wacom Cintiq 13HD Pen eraser" MapToOutput "HEAD-0"echo 0 > ~/.wacom-mappingfi
Re run the script, and it works this time
[localhost ~]$ wacom-toggle-mapping1
No comments:
Post a Comment