Advertisement
Guest User

i3 switch workspaces

a guest
Nov 12th, 2014
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. import i3
  4. outputs = i3.get_outputs()
  5.  
  6. # # set current workspace to output 0
  7. i3.workspace(outputs[0]['current_workspace'])
  8.  
  9. # # ..and move it to the other output.
  10. # # outputs wrap, so the right of the right is left ;)
  11. i3.command('move', 'workspace to output DVI-1')
  12.  
  13. # # rinse and repeat
  14. i3.workspace(outputs[2]['current_workspace'])
  15. i3.command('move', 'workspace to output DVI-0')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement