Skip to content

Instantly share code, notes, and snippets.

@armonge
Created July 28, 2015 16:34
Show Gist options
  • Save armonge/a5564951c84ea47e75f8 to your computer and use it in GitHub Desktop.
Save armonge/a5564951c84ea47e75f8 to your computer and use it in GitHub Desktop.
A = 3200
B = 1800
C = 1920
D = 1080
E = 2
F = 2
values = {
'A': A,
'B': B,
'C': C,
'D': D,
'E': E,
'F': F,
'C*E': C * E,
'D*F': D * F,
}
command = 'xrandr --output eDP1 --auto --output HDMI1 --auto --panning {C*E}x{D*F}+{A}+0 --scale {E}x{F} --right-of eDP1'.format(**values)
print command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment