Advertisement
Guest User

Untitled

a guest
Nov 18th, 2011
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. ## Device names and ID numbers from 'xinput list' entered in a terminal.
  4. #
  5. ## In the example "Device name" not ID # is used. Note if you use the
  6. ## xorg.conf the "Device names" will be stylus, eraser, touch, and pad.
  7. #
  8. ## If you are hot plugging use "Device name" as ID # can change.
  9. #
  10. ## Warning: Changing Mode to either Absolute or Relative in stylus/eraser stops
  11. ## the mouse from being able to pull guidelines out of the ruler in Gimp.
  12.  
  13. ## stylus = "Wacom Bamboo Pen Pen stylus" = ID 15
  14. DISPLAY=:0 metacity --replace &
  15. xsetwacom set "Wacom Bamboo Pen Pen stylus" Suppress "4" # data pt.s trimmed, default is 4, 0-20
  16. xsetwacom set "Wacom Bamboo Pen Pen stylus" RawSample "2" # data pt.s filtered, default is 2, 0-100
  17. xsetwacom set "Wacom Bamboo Pen Pen stylus" Threshold "27" # pressure, default is 27, range is 0-2047
  18. xsetwacom set "Wacom Bamboo Pen Pen stylus" PressureCurve "5 10 90 95" # Bezier curve, default is 0,0,100,100
  19. xsetwacom set "Wacom Bamboo Pen Pen stylus" TabletPCButton "on" # stylus tip + button, or "off" for hover mode
  20. DISPLAY=:0 xrandr -o left
  21. DISPLAY=:0 xsetwacom set "Wacom Bamboo Pen Pen stylus" Rotate cw
  22. #xsetwacom set "Wacom Bamboo Pen Pen stylus" Mode "Absolute" # or Relative
  23. xsetwacom set "Wacom Bamboo Pen Pen stylus" Button 1 1 # left mouse click
  24. xsetwacom set "Wacom Bamboo Pen Pen stylus" Button 2 2 # right mouse click
  25. xsetwacom set "Wacom Bamboo Pen Pen stylus" Button 3 3 # middle mouse click
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement