What is the simplest way to get monitor resolution (preferably in a tuple)?
Another version using xrandr:
xrandr
import re from subprocess import run, PIPE output = run(['xrandr'], stdout=PIPE).stdout.decode() result = re.search(r'current (\d+) x (\d+)', output) width, height = map(int, result.groups()) if result else (800, 600)