summaryrefslogtreecommitdiff
path: root/bin/swap
blob: 4c17dc743b52348e43d3e2c976d9ef076a6f1531 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/python

import i3
outputs = i3.get_outputs()
print(outputs[0])

# 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 right')

# rinse and repeat
i3.workspace(outputs[1]['current_workspace'])
i3.command('move', 'workspace to output right')