summaryrefslogtreecommitdiff
path: root/.config/wmii-hg/config.sh
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-02-11 19:11:19 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2017-02-11 19:11:19 -0500
commitb9d017e5ae3de10c8aa7a213537f2ee0c0c4c45d (patch)
tree356379636d18d9ed12db5734a2c5c8f581b1a27f /.config/wmii-hg/config.sh
parent58f68e4899bd0b55c10b1f3322b1378d1e009030 (diff)
wmii: better rotation support
Diffstat (limited to '.config/wmii-hg/config.sh')
-rw-r--r--.config/wmii-hg/config.sh13
1 files changed, 12 insertions, 1 deletions
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
}