Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Map an input device to an output screen
#!/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