]> Dogcows Code - chaz/openbox/commitdiff
add commented stuff for doing linear cycling
authorDana Jansens <danakj@orodu.net>
Tue, 4 Feb 2003 09:36:42 +0000 (09:36 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 4 Feb 2003 09:36:42 +0000 (09:36 +0000)
scripts/defaults.py

index 7fd2273d77b80ee084a2aa7138b9605e505bdac5..922cd6d6ddc8900363f42ecc962a03fa1e268ba0 100644 (file)
@@ -1,5 +1,4 @@
 import focus      # add some default focus handling and cycling functions
-import stackedcycle # functions for doing stacked 'kde-style' cycling
 import focusmodel # default focus models
 import behavior   # defines default behaviors for interaction with windows
 import callbacks  # a lib of functions that can be used as binding callbacks
@@ -34,8 +33,15 @@ ob.mbind("Left", ob.MouseContext.Root, ob.MouseAction.Click,
 ob.kbind(["A-F4"], ob.KeyContext.All, callbacks.close)
 
 # focus bindings
+import stackedcycle # functions for doing stacked 'kde-style' cycling
 ob.kbind(["A-Tab"], ob.KeyContext.All, stackedcycle.next)
-ob.kbind(["A-S-Tab"], ob.KeyContext.All, stackedcycle.previous)
+ob.kbind(["A-S-Tab"], ob.KeyContext.All, stackedcycle.previous
+
+# if you want linear cycling instead of stacked cycling ...
+#import focuscycle
+#focuscycle.raise_window = 0 # don't raise windows when they're activated
+#ob.kbind(["A-Tab"], ob.KeyContext.All, focuscycle.next)
+#ob.kbind(["A-S-Tab"], ob.KeyContext.All, focuscycle.previous)
 
 # desktop changing bindings
 ob.kbind(["C-1"], ob.KeyContext.All, lambda(d): callbacks.change_desktop(d, 0))
This page took 0.056105 seconds and 4 git commands to generate.