Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import i3
- outputs = i3.get_outputs()
- # # set current workspace to output 0
- i3.workspace(outputs[0]['current_workspace'])
- # # ..and move it to the other output.
- # # outputs wrap, so the right of the right is left ;)
- i3.command('move', 'workspace to output DVI-1')
- # # rinse and repeat
- i3.workspace(outputs[2]['current_workspace'])
- i3.command('move', 'workspace to output DVI-0')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement