From ddb7692a2f93dca1ebf39a8ea7a710363aea516a Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 6 Dec 2016 21:45:25 -0500 Subject: wmii: Support the rotate screen button on my x60 tablet --- .config/wmii-hg/config.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to '.config/wmii-hg') diff --git a/.config/wmii-hg/config.sh b/.config/wmii-hg/config.sh index 1b48cc4..ffb5f20 100644 --- a/.config/wmii-hg/config.sh +++ b/.config/wmii-hg/config.sh @@ -263,6 +263,17 @@ Key() { sel=$(sed 1q $WMII_DIR/client/sel/ctl) tag=$(lstags | wimenu -h "${HIST}.tags" -n 50) || return echo "$tag" >> $WMII_DIR/client/$sel/tags;; + + ## Hardware keys + XF86RotateWindows) ## Rotate the screen + local old new + old="$(xrotate|cut -d $'\t' -f3|sort -u)" + case "$old" in + normal) new=right;; + *) new=normal;; + esac + xrotate "$new" + ;; esac } -- cgit v1.2.3-2-g168b