summaryrefslogtreecommitdiff
path: root/.config/wmii-hg
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-12-06 21:45:25 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-12-06 21:47:11 -0500
commit7d36db862d15c7a393bd79dc25b857b4a778f6fb (patch)
tree04756996c58e0936f5f8e1f3a9574a00188eda92 /.config/wmii-hg
parent1082e1228dcc6912d705c03beab1a2d6a1c9f0b9 (diff)
wmii: Support the rotate screen button on my x60 tablet
Diffstat (limited to '.config/wmii-hg')
-rw-r--r--.config/wmii-hg/config.sh11
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
}