summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-10 22:05:14 +0000
committerDana Jansens <danakj@orodu.net>2003-01-10 22:05:14 +0000
commitcfead96bb3bac86a1cfdd5ab73b2c80b039f3a7a (patch)
tree9da69446a1f715f56e4b56a3225844fa10fc0403 /scripts
parent5c752e66cfc2d58a7c94b70e88dfc95daa680d49 (diff)
some default bindings for if no user.py exists
Diffstat (limited to 'scripts')
-rw-r--r--scripts/defaults.py41
1 files changed, 41 insertions, 0 deletions
diff --git a/scripts/defaults.py b/scripts/defaults.py
new file mode 100644
index 00000000..acc3d1cd
--- /dev/null
+++ b/scripts/defaults.py
@@ -0,0 +1,41 @@
+# set up the mouse buttons
+setup_sloppy_focus()
+setup_window_clicks()
+setup_window_buttons()
+setup_scroll()
+# set up focus fallback so im not left with nothing focused all the time
+setup_fallback_focus()
+
+# my window placement algorithm
+ebind(EventPlaceWindow, placewindows_random)
+
+# run xterm from root clicks
+mbind("1", MC_Root, MouseClick, execute("xterm"))
+
+kbind(["A-F4"], KC_All, close)
+
+# desktop changing bindings
+kbind(["C-1"], KC_All, lambda(d): change_desktop(d, 0))
+kbind(["C-2"], KC_All, lambda(d): change_desktop(d, 1))
+kbind(["C-3"], KC_All, lambda(d): change_desktop(d, 2))
+kbind(["C-4"], KC_All, lambda(d): change_desktop(d, 3))
+kbind(["C-A-Right"], KC_All, lambda(d): next_desktop(d))
+kbind(["C-A-Left"], KC_All, lambda(d): prev_desktop(d))
+
+kbind(["C-S-A-Right"], KC_All, lambda(d): send_to_next_desktop(d))
+kbind(["C-S-A-Left"], KC_All, lambda(d): send_to_prev_desktop(d))
+
+# Python Demo #1!!!!!!! YAY SHRIMPX
+def rev(lst):
+ lst.reverse()
+ return lst
+
+# focus new windows
+def focusnew(data):
+ if not data.client: return
+ if data.client.normal():
+ focus(data)
+
+ebind(EventNewWindow, focusnew)
+
+print "Loaded defaults.py"