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 | |
# 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 | |
# modified for my Lenovo X1 Carbon | |
# based on the script provided by Ruben Barkow: https://gist.github.com/rubo77/daa262e0229f6e398766 | |
# To avoid black bars and squares in the bottom right corner: Settings->Screen and video->Compositor and set "Rendering Engine" to "OpenGL 3.1" seems to solve the problem | |
#### configuration | |
# find your Touchscreen and Touchpad device with `xinput` |