Skip to content

Instantly share code, notes, and snippets.

View garis's full-sized avatar
:octocat:
ˁ˚ᴥ˚ˀ

garis garis

:octocat:
ˁ˚ᴥ˚ˀ
View GitHub Profile
@garis
garis / rotate-screen.sh
Last active April 17, 2018 13:01 — 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 X1 Carbon (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
# 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`