A relatively straightforward concept - bind the arrow keys to X/Y, and
'home' and 'end' to Z rotation.  Helper functions are made to make it
easier to reverse axes should the user find them 'backwards' to their
taste.  This replaces the existing bindings, which weren't very
interesting.
---
 bindings           |   38 ++++++++++++++++++++++++++++++++------
 bindings-functions |   22 ++++++++++++++++++++++
 2 files changed, 54 insertions(+), 6 deletions(-)

diff --git a/bindings b/bindings
index 8311e14..7d03a7a 100644
--- a/bindings
+++ b/bindings
@@ -129,15 +129,46 @@ FuncKeyCompositorWinShiftCmd equal "sma Scale 1.05946309"
 
 FuncKeyCompositorWinCmd s "sma Scale 0.94387431"
 FuncKeyCompositorWinCmd z "sma Scale 1.05946309"
+
+# 
+# Window rotation (Win + Directions)
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#  Default 15deg.
+#  Add Shift for fine adjustment (3deg)
 #
+
+# Z axis (spinning)
+#   1st : spin right (clockwise)
+#   2nd : spin left (anticlockwise)
+# 
+FuncKeyZAxis End Home
+FuncKeyZAxis KP_End KP_Home 
+# compat keys
 FuncKeyCompositorWinCmd F2 "sma Rotate -1 0 0 1"
 FuncKeyCompositorWinCmd F3 "sma Rotate 1 0 0 1"
-#
+
+# Y axis (turning on window's vertical axis)
+#   1st  : turn left (from front; clockwise from top)
+#   2nd  : turn right (from front; anticlockwise from top)
+# 
+FuncKeyYAxis Left Right
+FuncKeyYAxis KP_Left KP_Right
+# compat keys
 FuncKeyCompositorWinCmd F4 "sma Rotate -1 0 1 0"
 FuncKeyCompositorWinCmd F5 "sma Rotate 1 0 1 0"
+
 #
+# X axis (flipping)
+# 
+
+#   1st key : flip up (back)
+#   2nd key : flip down (forward)
+FuncKeyXAxis Up Down
+FuncKeyXAxis KP_Up KP_Down
+# compat keys
 FuncKeyCompositorWinCmd F6 "sma Rotate -1 1 0 0"
 FuncKeyCompositorWinCmd F7 "sma Rotate 1 1 0 0"
+
 #
 # backward compatibilty :o)
 # Four zooms = double/half size (0.8409 = ∜½̅, 1.1892 = ∜2̅)
@@ -163,11 +194,6 @@ FuncKeyCompositorWinCmd n "sma CutWindow"
 FuncKeyCompositorWinCmd m "sma UnCutWindow"
 FuncKeyCompositorWinCmd l "sma rmFacade"
 
-AFuncPointerKeyCompositorCmd Down      A  "sma RootTranslate 0 10 0" 
-AFuncPointerKeyCompositorCmd Up                A  "sma RootTranslate 0 -10 0"
-AFuncPointerKeyCompositorCmd Left      A  "sma RootTranslate 10 0 0"
-AFuncPointerKeyCompositorCmd Right     A  "sma RootTranslate -10 0 0"
-
 #
 #AFuncPointerKeyCompositorCmd F12 A  "sma GlobalTransparency"
 
diff --git a/bindings-functions b/bindings-functions
index 7240153..5ca820d 100644
--- a/bindings-functions
+++ b/bindings-functions
@@ -25,6 +25,28 @@ DestroyFunc FuncKeyCompositorWinShiftCmd
 AddToFunc   FuncKeyCompositorWinShiftCmd
 + I Key $0 WSTF123456789 4S $1
 
+# Axis functions - 6 steps to 90deg, 5 small steps to one large one
+DestroyFunc FuncKeyXAxis
+AddToFunc   FuncKeyXAxis
++ I FuncKeyCompositorWinCmd $0 "sma Rotate -15 1 0 0"
++ I FuncKeyCompositorWinShiftCmd $0 "sma Rotate -3 1 0 0"
++ I FuncKeyCompositorWinCmd $1 "sma Rotate 15 1 0 0"
++ I FuncKeyCompositorWinShiftCmd $1 "sma Rotate 3 1 0 0"
+
+DestroyFunc FuncKeyYAxis
+AddToFunc   FuncKeyYAxis
++ I FuncKeyCompositorWinCmd $0 "sma Rotate -15 0 1 0"
++ I FuncKeyCompositorWinShiftCmd $0 "sma Rotate -3 0 1 0"
++ I FuncKeyCompositorWinCmd $1 "sma Rotate 15 0 1 0"
++ I FuncKeyCompositorWinShiftCmd $1 "sma Rotate 3 0 1 0"
+
+DestroyFunc FuncKeyZAxis
+AddToFunc   FuncKeyZAxis
++ I FuncKeyCompositorWinCmd $0 "sma Rotate -15 0 0 1"
++ I FuncKeyCompositorWinShiftCmd $0 "sma Rotate -3 0 0 1"
++ I FuncKeyCompositorWinCmd $1 "sma Rotate 15 0 0 1"
++ I FuncKeyCompositorWinShiftCmd $1 "sma Rotate 3 0 0 1"
+
 # As above for usual window ops (e.g., Moving), replace
 # M by SM for example
 DestroyFunc AFuncPointerKeyWindowCmd
-- 
debian.1.5.6.1

_______________________________________________
Metisse mailing list
[email protected]
http://lists.lri.fr/mailman/listinfo/metisse

Reply via email to