diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-04-14 12:25:16 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-04-14 12:25:16 -0400 |
commit | 41a3b584a31b708e0f5c5d45ecd258937cc0a1b1 (patch) | |
tree | f99300ded37bcb726d9c0b6327e91ef04252a852 /.config/wmii-hg/config.sh | |
parent | 94c9bdc5f7e832982947c903c258ea651e27c378 (diff) | |
parent | 05b500a6688c7a7ff9a04fe748a091d33df654a9 (diff) |
Merge branch 'master' into build64-par/master
Diffstat (limited to '.config/wmii-hg/config.sh')
-rw-r--r-- | .config/wmii-hg/config.sh | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/.config/wmii-hg/config.sh b/.config/wmii-hg/config.sh index 1b48cc4..e56166e 100644 --- a/.config/wmii-hg/config.sh +++ b/.config/wmii-hg/config.sh @@ -123,13 +123,17 @@ Event() { 2) ;; 3) { - case $(wmii9menu Delete Fullscreen ToggleFloat) in + case $(wmii9menu Delete Fullscreen ToggleFloat SendLeft SendRight) in Delete) echo kill >> $WMII_DIR/client/$client/ctl;; Fullscreen) echo Fullscreen on >> $WMII_DIR/client/$client/ctl;; ToggleFloat) echo send $client toggle >> $WMII_DIR/tag/sel/ctl;; + SendLeft) + echo send sel left >> $WMII_DIR/tag/sel/ctl;; + SendRight) + echo send sel right >> $WMII_DIR/tag/sel/ctl;; esac }& ;; 4) ;; @@ -263,6 +267,28 @@ 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) ## Toggle between 'normal' an 'right' + local old new + old="$(xrotate|cut -d $'\t' -f3|sort -u)" + case "$old" in + normal) new=right;; + *) new=normal;; + 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 } @@ -270,6 +296,7 @@ runcmd() ( PATH=$_PATH unset NOTIFY_SOCKET # systemd unset WMII_CONFPATH # wmii + unset WMII_ADDRESS # wmii unset _PATH WMII_NAMESPACE WMII_DIR # wmiirc exec 8>&- # xinit/systemd handshake exec systemd-run --user --scope -- sh -c "$*" |