Skip to content

Instantly share code, notes, and snippets.

View onshisan's full-sized avatar

Greg Smith onshisan

  • Toronto, ON
View GitHub Profile
@onshisan
onshisan / rotate-screen.sh
Created May 5, 2019 02:06 — forked from rubo77/rotate-screen.sh
This script rotates the screen and touchscreen input, disables or enbles the touchpad, and dis- or enables the virtual keyboard on a Lenovo Yoga 13 or Yoga 2 Pro (source: http://askubuntu.com/q/405628/34298)
#!/bin/bash
# This script rotates the screen and touchscreen input 90 degrees each time it is called,
# also disables the touchpad, and enables the virtual keyboard accordingly
# by Ruben Barkow: https://gist.github.com/rubo77/daa262e0229f6e398766
#### configuration
# find your Touchscreen and Touchpad device with `xinput`
TouchscreenDevice='ELAN Touchscreen'
TouchpadDevice='SynPS/2 Synaptics TouchPad'

Keybase proof

I hereby claim:

  • I am onshisan on github.
  • I am onshi (https://keybase.io/onshi) on keybase.
  • I have a public key ASC0z8RebiHYCmPBB0f7YJnlA_GEd3D47INi012b7-FGxAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am onshisan on github.
  • I am onshi (https://keybase.io/onshi) on keybase.
  • I have a public key whose fingerprint is 9AAE C6DE 9060 4A4A 6A31 9112 8074 8E09 BE1D 3365

To claim this, I am signing this object: