|
@@ -11,7 +11,7 @@ def ipc_query(req="command", msg=""):
|
|
|
if __name__ == "__main__":
|
|
|
# Usage & checking args
|
|
|
if len(argv) != 2:
|
|
|
- print "Usage: i3-switch-workspace name-of-workspace"
|
|
|
+ print("Usage: i3-switch-workspace name-of-workspace")
|
|
|
exit(-1)
|
|
|
|
|
|
newworkspace = argv[1]
|
|
@@ -23,4 +23,4 @@ if __name__ == "__main__":
|
|
|
active_display = w['output']
|
|
|
|
|
|
# Moving workspace to active display
|
|
|
- print ipc_query(msg="'workspace number " + newworkspace + "; move workspace to output " + active_display + "'")
|
|
|
+ print(ipc_query(msg="'workspace number " + newworkspace + "; move workspace to output " + active_display + "'"))
|