Add bin/ screens & movetosecondaryscreen scripts

This commit is contained in:
arnaucube
2021-06-25 16:40:11 +02:00
parent 339c76a3d8
commit a671b13e0b
2 changed files with 31 additions and 0 deletions

7
bin/movetosecondaryscreen Executable file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env python3
import os
import subprocess
d = os.popen("xrandr --listmonitors | grep '+' | awk {'print $4'}").read().splitlines()
subprocess.run(["i3-msg", "move", "workspace", "to", "output", d[1]])