Re: Linuxwacom-discuss Digest, Vol 126, Issue 6

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Linuxwacom-discuss Digest, Vol 126, Issue 6

Thorsten Rochelmeyer
Jason, this on works for me:

---Shell Script ---

#!/bin/sh

ftouch=`xsetwacom --get "Wacom Intuos5 touch M Finger touch" Touch`

case $ftouch in

    "on") xsetwacom --set "Wacom Intuos5 touch M Finger touch" Touch off
    ;;

    "off") xsetwacom --set "Wacom Intuos5 touch M Finger touch" Touch on
    ;;

esac

---/Shell Script ---

You must of course adapt it to your tablet. "xsetwacom --list devices"
gives you the name of your devices. Replace "Wacom Intuos5 ..." with
what you get, save the script as textfile with ending .sh, make it
executable and assign some shortcut to it.

My shortcut is "Ctrl+Alt+#", to assign that to a tablet key, something like

xsetwacom --set "Wacom ... Pad pad" button 13 key "+ctrl +meta +# -meta
-ctrl"

does the job. There are sources in the web to tell you how the buttons
on your tablet are named, but i don't find it a.t.m.

Good luck

Thorsten

 
Am 10.02.2017 um 13:00 schrieb
[hidden email]:

> Send Linuxwacom-discuss mailing list submissions to
> [hidden email]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss
> or, via email, send a message with subject or body 'help' to
> [hidden email]
>
> You can reach the person managing the list at
> [hidden email]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Linuxwacom-discuss digest..."
>
>
> Today's Topics:
>
>    1. Re: Toggle screen with tablet button ? (Jason Gerecke)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 9 Feb 2017 09:04:59 -0800
> From: Jason Gerecke <[hidden email]>
> Subject: Re: [Linuxwacom-discuss] Toggle screen with tablet button ?
> To: Caetano Veyssi?res <[hidden email]>
> Cc: LinuxWacom Discuss <[hidden email]>
> Message-ID:
> <CANRwn3TgwbKD6zDPjqe-LicgLN4Op-VeW-T8A=[hidden email]>
> Content-Type: text/plain; charset=UTF-8
>
> Hi Caetano,
>
> The X driver itself has no way to switch between monitors on its own
> as it is completely unaware of the monitors or how they are connected.
> That said, there /are/ ways to achieve this effect with some help from
> your desktop environment / window manager.
>
> If you're using GNOME, Unity, Cinnamon, etc., you should check if the
> Wacom Tablet settings in the control panel provides a "Switch
> Monitors" option in the pad button mapping options. This option may
> not be available in all circumstances, but is by far the "best" way to
> do this. For KDE, the "kcm-wacomtablet" settings provide options to
> define keyboard shortcuts that change the pen mapping and the pad can
> be configured to emit the necessary shortcut.
>
> If these options aren't available, it may be possible to emulate what
> KDE does provided your DE/WM provides a way to run arbitrary commands
> in response to a keyboard shortcut. If you create a script which runs
> `xsetwacom set <id> MapToOutput next` for both the stylus and eraser
> devices, you could configure the DE/WM to run it in response to a
> keyboard shortcut and then configure the desired pad button to emit
> that shortcut. The special "next" option of MapToOutput can be used to
> cycle a pen's mapping between all connected monitors and the entire
> desktop.
>
> Jason
> ---
> Now instead of four in the eights place /
> you?ve got three, ?Cause you added one  /
> (That is to say, eight) to the two,     /
> But you can?t take seven from three,    /
> So you look at the sixty-fours....
>
>
>
> On Wed, Feb 8, 2017 at 5:32 PM, Caetano Veyssi?res <[hidden email]> wrote:
>> Hi everyone,
>> Is there a command to switch between multiple monitors with a single pad
>> button ? I didn't find any answer in the documentation nor in the xsetwacom
>> manual.
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Linuxwacom-discuss mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss
>>
>
>
> ------------------------------
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>
> ------------------------------
>
> _______________________________________________
> Linuxwacom-discuss mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss
>
>
> End of Linuxwacom-discuss Digest, Vol 126, Issue 6
> **************************************************
>



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Linuxwacom-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss