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