diff --git a/i3/run.sh b/i3/run.sh index d96f662..b133c3f 100755 --- a/i3/run.sh +++ b/i3/run.sh @@ -21,3 +21,13 @@ if [ "$1" = "wall" ];then feh --bg-scale "$(shuf -n1 -e ~/.i3/wallOM/*)" #feh --bg-scale ~/.i3/wall/fbfKNDk.png fi +if [ "$1" = "swap" ];then + python << EOF +import i3 +swap = [output for output in i3.get_outputs() if output['active']] +if len(swap) == 2: + for output in swap: + i3.workspace(output['current_workspace']) + i3.command('move', 'workspace to output right') +EOF +fi diff --git a/scripts/pip.txt b/scripts/pip.txt index 0de0a9c..3033389 100644 --- a/scripts/pip.txt +++ b/scripts/pip.txt @@ -6,3 +6,4 @@ tornado mps-youtube i3-py quickswitch-i3 +colout