arnaucube
arnaucube/configsPublic Self-hosted repository
configs/bin/movetosecondaryscreen
bin/movetosecondaryscreenRaw
1#!/usr/bin/env python3
2
3import os
4import subprocess
5
6d = os.popen("xrandr --listmonitors | grep '+' | awk {'print $4'}").read().splitlines()
7subprocess.run(["i3-msg", "move", "workspace", "to", "output", d[1]])