norman wrote:
> Continuing my research I came across something very interesting from a
> contributor to  http://forum.meetthegimp.org/index.php in response to my
> wish to have a button for shift and one for Ctrl. The author, who uses
> openSUSE 10.3 thought the following code, to be entered into xinitrc,
> would work in Ubuntu.
>
> # Define the Bamboo buttons
> #
>  if [ -x /usr/local/bin/xsetwacom ]; then
>    /usr/local/bin/xsetwacom set Pad AbsWDn "Button 5" 
>    /usr/local/bin/xsetwacom set Pad AbsWUp "Button 4" 
>    /usr/local/bin/xsetwacom set Pad Button1 "Button 1"
>    /usr/local/bin/xsetwacom set Pad Button2 "CORE KEY  SHIFT"  
>    /usr/local/bin/xsetwacom set Pad Button3 "Button 3"                
>    /usr/local/bin/xsetwacom set Pad Button4 "CORE KEY  CTRL"  
>
>    /usr/local/bin/xsetwacom set Stylus TPCButton "off"        
>    /usr/local/bin/xsetwacom set Stylus mode "Absolute"        
>    /usr/local/bin/xsetwacom set Stylus Button1 "Button 1"     
>    /usr/local/bin/xsetwacom set Stylus Button2 "Button 3"     
>    /usr/local/bin/xsetwacom set Stylus Button3 "Button 2"     
>  fi
>  
> I checked and found that, in Ubuntu 9.04, we have xinitrc but not
> xsetwacom. I presume there must be the equivalent to wsetwacom somewhere
> and probably not in /usr/local/bin.
>
> I would be grateful for comments from anyone who understands this code
> and how it would need to be modified to work in Ubuntu 9.04.
>
> Norman
>
>   
Hi Norman,

This script will probably not work as in Jaunty the names "Stylus" and 
"Pad" are no longer recognised: you have to use the full names of the 
devices instead. For example on my tablet PC the name for "Stylus" is 
"Wacom Serial Tablet PC Pen Tablet/Digitizer". To find out what the 
names of your devices are you need to run "xinput --list" in a terminal. 
Then you will have to change the above script to use those names (make 
sure you enclose the names in quotes " ").

Personally I hope this will all get easier to configure in a future 
version of Ubuntu. It's pretty horrible at the moment.

HTH,
Tom

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/

Reply via email to