Skip to content

Instantly share code, notes, and snippets.

@pweinzettel
Created September 3, 2020 02:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pweinzettel/d0db030ac414ccd1ce9ae4e699a33466 to your computer and use it in GitHub Desktop.
Save pweinzettel/d0db030ac414ccd1ce9ae4e699a33466 to your computer and use it in GitHub Desktop.
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