dotfiles/bspwm/wacom.sh

13 lines
399 B
Bash
Raw Normal View History

2020-08-01 19:13:25 +00:00
#!/bin/sh
#TODO option to get existing area and shrink it
choices="4:3\nMain screen\nSecond screen"
2020-11-05 08:26:43 +00:00
chosen=$(echo "$choices" | dmenu -i)
2020-08-01 19:13:25 +00:00
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