From 6bcd6ddd6ec75a7abcac8d5cb6a8272dc69143d8 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 17 Mar 2003 05:20:38 +0000 Subject: [PATCH] add keybinds for switching workspaces --- python/rc.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/python/rc.py b/python/rc.py index 8ddfa461..fc5b97ad 100644 --- a/python/rc.py +++ b/python/rc.py @@ -61,7 +61,15 @@ hooks.visible.append(myfocus) mykmap=((("C-a", "d"), printshit), (("C-Tab",), stackedcycle.next), (("C-S-Tab",), stackedcycle.previous), - (("C-space",), lambda k, c: myexec("xterm"))) + (("Mod1-1",), lambda k,c: ob.Openbox.setDesktop(1)), + (("Mod1-2",), lambda k,c: ob.Openbox.setDesktop(2)), + (("Mod1-3",), lambda k,c: ob.Openbox.setDesktop(3)), + (("Mod1-4",), lambda k,c: ob.Openbox.setDesktop(4)), + (("Mod1-C-Left",), lambda k,c: ob.Openbox.setPreviousDesktop() or c.setDesktop(ob.Openbox.desktop())), + (("Mod1-C-Right",), lambda k,c: ob.Openbox.setNextDesktop() or c.setDesktop(ob.Openbox.desktop())), + (("Mod1-Left",), lambda k,c: ob.Openbox.setPreviousDesktop()), + (("Mod1-Right",), lambda k,c: ob.Openbox.setNextDesktop()), + (("C-space",), lambda k,c: myexec("xterm"))) keymap.set(mykmap) def mytogglesticky(client): -- 2.45.2