7
1
I have a ThinkPad X201 tablet.
On the tablet there is a button that rotates the screen. It works great in Windows but doesn't work properly in Linux; it rotates the screen but doesn't rotate the wacom (stylus and finger touching)
The keycode (from showkeys) for the button is 154.
I'd like it to do the following bash script:
#!/bin/bash
xrandr -o right
xsetwacom set "Serial Wacom Tablet stylus" Rotate CCW
xsetwacom set "Serial Wacom Tablet eraser" Rotate CCW
exit 0
I have two questions:
- How can assign a script to the button? (#154)
- How can I run this assignment on startup?