Re: [DIGImend-users] setting up wacom ?:)
Brought to you by:
spb_nick
From: Nikolai K. <sp...@gm...> - 2015-01-03 17:26:24
|
On 01/03/2015 07:04 PM, Vince Herried wrote: > OK sorry to pester you with dumb question before digging. No problem, but it's generally better to try to find the answer by yourself first :) > I had tried setting the /etc/X11/xorg.conf.d > parm file to use wacom driver earlier and didn't realize it was working. > > I'm not much of a gimp user, but making headway. > Any clue what the icons for - pencil, +pencil and hand should be? These icons are geared towards Windows applications which don't necessarily have similar controls. Feel free to choose whatever shortcuts you would use yourself. That said, the pencil +/- probably mean brush size, or next/previous brush. > I made a stab at a shell tool to set the values for gimp to match the > icon printed on the buttons It looks reasonable. > # debug help > #set -x > > # The /etc/X11/xorg.conf.d/50-huion.conf needs to have > # driver(wacom) for this to work. > # if the driver is not recognized then "xsetwacom --list" returns nothing > > #find the device ID for "Huion PAD" > PAD= > > getPAD (){ > PAD=`xsetwacom --list | grep pad | awk '{print $5 }'` > } > > # get the PAD id # > getPAD You don't really need getPAD as a function just write this: PAD=`xsetwacom --list | grep pad | awk '{print $5 }'` > if [ X$"PAD" == X ] ; then > echo "No wacom pad defined" > exit 16 > fi > > # setup for gimp > xsetwacom set $PAD button 1 key ctrl z # undo > xsetwacom set $PAD button 2 key shift e # eraser > xsetwacom set $PAD button 3 key n # pencil > > # > # strange how the button number skips here > # This is likely due to some special meaning that is assigned to buttons 4-7 and/or xf86-input-evdev behavior. > xsetwacom set $PAD button 8 key shift = # zoom in > xsetwacom set $PAD button 9 key - # zoom out > xsetwacom set $PAD button 10 key # + pencil > xsetwacom set $PAD button 11 key # - pencil > xsetwacom set $PAD button 12 key # hand I would guess every user would like to have their own mappings. Additionally, they can change GIMP shortcut assignments and other applications would use different shortcuts. There's also the imwheel tool which can remap buttons to actions/shortcuts but it is quite old, doesn't seem to support buttons past #9 and I didn't manage to make it work. Nick |