dots/.bin/wacom-vertical-draw-area

26 lines
1.3 KiB
Bash
Executable File

#!/usr/bin/env bash
# Note: this script gets called from $HOME/.config/autorandr/docked/postswitch,
# default drawing area on my 4K monitor
# Rotate drawing are for vertical drawing
# (physical controls above drawing area)
xsetwacom set "Wacom Intuos Pro M Pen stylus" rotate ccw
xsetwacom set "Wacom Intuos Pro M Finger touch" rotate ccw
xsetwacom set "Wacom HID 5214 Pen stylus" rotate ccw
xsetwacom set "Wacom HID 5214 Finger touch" rotate ccw
xsetwacom set "Wacom Intuos Pro M Pen eraser" rotate ccw
xsetwacom set "Wacom Intuos Pro M Pen cursor" rotate ccw
xsetwacom set "Wacom HID 5214 Pen eraser" rotate ccw
xsetwacom set "Wacom Intuos Pro M Pen stylus" rotate ccw
# Set drawing area to left side on 3840x2160 monitor
xsetwacom set "Wacom Intuos Pro M Pen stylus" MapToOutput 1080x1920+130+130
xsetwacom set "Wacom Intuos Pro M Finger touch" MapToOutput 1080x1920+130+130
xsetwacom set "Wacom HID 5214 Pen stylus" MapToOutput 1080x1920+130+130
xsetwacom set "Wacom HID 5214 Finger touch" MapToOutput 1080x1920+130+130
xsetwacom set "Wacom Intuos Pro M Pen eraser" MapToOutput 1080x1920+130+130
xsetwacom set "Wacom Intuos Pro M Pen cursor" MapToOutput 1080x1920+130+130
xsetwacom set "Wacom HID 5214 Pen eraser" MapToOutput 1080x1920+130+130
xsetwacom set "Wacom Intuos Pro M Pen stylus" MapToOutput 1080x1920+130+130