summaryrefslogtreecommitdiff
path: root/.config/wmii-hg/config.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/wmii-hg/config.sh')
-rw-r--r--.config/wmii-hg/config.sh23
1 files changed, 20 insertions, 3 deletions
diff --git a/.config/wmii-hg/config.sh b/.config/wmii-hg/config.sh
index ffb5f20..9c6a041 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) ;;
@@ -160,7 +164,9 @@ Event() {
DestroyTag) ## $1=tag
rm $WMII_DIR/lbar/$1;;
FocusTag) ## $1=tag
- echo colors "$WMII_FOCUSCOLORS" >> $WMII_DIR/lbar/$1;;
+ echo colors "$WMII_FOCUSCOLORS" >> $WMII_DIR/lbar/$1
+ onboard-hack
+ ;;
UnfocusTag) ## $1=tag
echo colors "$WMII_NORMCOLORS" >> $WMII_DIR/lbar/$1;;
UrgentTag) ## $1=[Manager|Client] $2=tag
@@ -265,7 +271,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
@@ -274,6 +280,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
}