From b9d017e5ae3de10c8aa7a213537f2ee0c0c4c45d Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 11 Feb 2017 19:11:19 -0500 Subject: wmii: better rotation support --- .config/wmii-hg/config.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.config/wmii-hg/config.sh b/.config/wmii-hg/config.sh index 402ae52..ba40460 100644 --- a/.config/wmii-hg/config.sh +++ b/.config/wmii-hg/config.sh @@ -269,7 +269,7 @@ Key() { echo "$tag" >> $WMII_DIR/client/$sel/tags;; ## Hardware keys - XF86RotateWindows) ## Rotate the screen + XF86RotateWindows) ## Toggle between 'normal' an 'right' local old new old="$(xrotate|cut -d $'\t' -f3|sort -u)" case "$old" in @@ -278,6 +278,17 @@ Key() { esac xrotate "$new" ;; + $MODKEY-XF86RotateWindows) ## Rotate in 90° steps + local old new + old="$(xrotate|cut -d $'\t' -f3|sort -u)" + case "$old" in + normal) new=right;; + right) new=inverted;; + inverted) new=left;; + left) new=normal;; + esac + xrotate "$new" + ;; esac } -- cgit v1.1-4-g5e80