old-dotfiles/bin/wacom-to-first-screen.sh

6 lines
199 B
Bash
Raw Normal View History

2023-04-18 09:55:20 +02:00
Display="DVI-D-0" #find it with xrandr
Stylusid=$(xinput | grep -Po 'Wacom (.*)' | grep -Po 'id=(\d*)' | grep -Po '\d*')
$(echo $Stylusid | tr ' ' '\n' | xargs -i xinput map-to-output {} $Display)