dotfiles/bspwm/wacom.sh
2020-11-05 10:26:43 +02:00

12 lines
399 B
Bash
Executable file

#!/bin/sh
#TODO option to get existing area and shrink it
choices="4:3\nMain screen\nSecond screen"
chosen=$(echo "$choices" | dmenu -i)
case "$chosen" in
4:3) xsetwacom set "Wacom Intuos S 2 Pen stylus" Area 0 0 11400 8550 ;;
Main screen) xsetwacom set "Wacom Intuos S 2 Pen stylus" MapToOutput HEAD-0 ;;
second screen) xsetwacom set "Wacom Intuos S 2 Pen stylus" MapToOutput HEAD-1 ;;
esac