move restart and exit to the top
Dana Jansens danakj@orodu.net
1 files changed,
8 insertions(+),
8 deletions(-)
jump to
M
scripts/callbacks.py
→
scripts/callbacks.py
@@ -9,6 +9,14 @@ StateRemove = 0
StateAdd = 1 StateToggle = 2 +def restart(data=0, other = ""): + """Restarts Openbox, optionally starting another window manager.""" + ob.openbox.restart(other) + +def exit(data=0): + """Exits Openbox.""" + ob.openbox.shutdown() + def state_above(data, add=StateAdd): """Toggles, adds or removes the 'above' state on a window. The second paramater should one of: StateRemove, StateAdd, or@@ -112,14 +120,6 @@ # !normal windows dont get focus from window enter events
if data.action == ob.EventAction.EnterWindow and not data.client.normal(): return data.client.focus() - -def restart(data=0, other = ""): - """Restarts Openbox, optionally starting another window manager.""" - ob.openbox.restart(other) - -def exit(data=0): - """Exits Openbox.""" - ob.openbox.shutdown() def raise_win(data): """Raises the window on which the event occured"""