These are some scripts that should help the users of a Lenovo X1 Yoga to use their touchscreens in a more productive way. There are currently 4 scripts available:
- toggle-tablet-mode.sh: Disables the touchpad to prevent mouse movement while in tablet mode. Does not disable the keyboard (not necessary for the X1).
- toggle-rotation-180.sh: Rotates the screen 180° (upside down). Might be useful for some tablet usages.
- toggle-rotation-90.sh: Rotates the screen 90°. For a more book-like aspect-ratio.
- toggle-virtual-keyboard.sh: Shows/hides the virtual keyboard. 'florence' must be installed. Only works in tablet mode.
All those scripts are optimized and tested for a Lenovo X1 Yoga, but they should work on other devices too. Some adjustments would probably be necessary, though.
The script for the virtual keyboard might not be suited for you if you have a desktop environment that properly supports virtual keyboards. If you are using a window manager like i3 though, you might like it.
Tip: Binding the toggle-virtual-keyboard.sh script to the 'Super' button is quite useful, because that is also the soft-button below the screen. This way you can also show/hide the virtual keyboard while the X1 is folded. You also don't have to worry about toggling the keyboard while in normal mode, because the script only works when you are in tablet mode.