diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-12-06 21:45:25 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-02-11 18:59:34 -0500 |
commit | ddb7692a2f93dca1ebf39a8ea7a710363aea516a (patch) | |
tree | 3ec9441d7b55b1c49713b0648da18ceb7d7a745a /.config/wmii-hg | |
parent | 0283ec58b3f4e179c0d8f57e5fc9ecb6e7750e17 (diff) |
wmii: Support the rotate screen button on my x60 tablet
Diffstat (limited to '.config/wmii-hg')
-rw-r--r-- | .config/wmii-hg/config.sh | 11 |
1 files changed, 11 insertions, 0 deletions
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 } |