Created
September 3, 2020 02:04
-
-
Save pweinzettel/d0db030ac414ccd1ce9ae4e699a33466 to your computer and use it in GitHub Desktop.
Map an input device to an output screen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
declare $(xinput | grep -i touchscreen | awk {'print$5'}) | |
monitor=$(xrandr | grep primary | awk {'print$1'}) | |
xinput map-to-output ${id} ${monitor} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment