This file contains 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/sh | |
# screen and input device rotation for e.g. a Thinkpad X1 Yoga | |
# adopted from by the script from http://ubuntuforums.org/showthread.php?t=996830&p=6274392#post6274392 | |
# | |
# Usage: | |
# ./rotate.sh | |
# will rotate both the screen and input device either to right or normal setting depending on previous state. Additionally: | |
# * in "right" layout, a on screen keyboard (onboard) is started or stopped in normal mode | |
# * the touchpad is switched off in "right" mode |
This file contains 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
# Event file for tablet mode conversions | |
# Should be placed in /etc/acpi/events | |
event=tabletmode | |
action=/etc/acpi/tablet-mode.sh %e |