add an exit callback
Dana Jansens danakj@orodu.net
1 files changed,
5 insertions(+),
1 deletions(-)
jump to
M
scripts/callbacks.py
→
scripts/callbacks.py
@@ -114,8 +114,12 @@ return
data.client.focus() def restart(data, other = ""): - """Restarts openbox, optionally starting another window manager.""" + """Restarts Openbox, optionally starting another window manager.""" ob.openbox.restart(other) + +def exit(data): + """Exits Openbox.""" + ob.openbox.shutdown() def raise_win(data): """Raises the window on which the event occured"""