diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/wmii-hg/config.sh | 13 |
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 } |