add change_desktop
This commit is contained in:
parent
26bef30a57
commit
130a1a2c71
1 changed files with 4 additions and 0 deletions
|
@ -124,6 +124,10 @@ def prev_desktop(data, no_wrap=0):
|
|||
elif not no_wrap:
|
||||
d = n - 1
|
||||
OBScreen_changeDesktop(screen, d)
|
||||
|
||||
def change_desktop(data, num):
|
||||
screen = Openbox_screen(openbox, data.screen())
|
||||
OBScreen_changeDesktop(screen, num)
|
||||
|
||||
#########################################
|
||||
### Convenience functions for scripts ###
|
||||
|
|
Loading…
Reference in a new issue