Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- /home/prs/Downloads/sagark-thinkdisp-cec8d21/thinkdisp 2012-08-21 03:34:32.000000000 +0200
- +++ /usr/bin/thinkdisp 2013-01-14 21:56:54.068813924 +0100
- @@ -1,4 +1,4 @@
- -#!/usr/bin/env python
- +#!/usr/bin/python
- from thinkdisputil import custom_res
- from thinkdisputil.util import UserConfig
- import sys
- @@ -157,12 +157,18 @@
- #SIDE combobox
- sidecombo = gtk.combo_box_new_text()
- - sidecombo.append_text("left")
- - sidecombo.append_text("right")
- - if self.SETTINGS["SIDE"]=="left":
- + sidecombo.append_text("above")
- + sidecombo.append_text("right-of")
- + sidecombo.append_text("left-of")
- + sidecombo.append_text("below")
- + if self.SETTINGS["SIDE"]=="above":
- sidecombo.set_active(0)
- + elif self.SETTINGS["SIDE"]=="right-of":
- + sidecombo.set_active(1)
- + elif self.SETTINGS["SIDE"]=="left-of":
- + sidecombo.set_active(2)
- else:
- - sidecombo.set_active(1)
- + sidecombo.set_active(3)
- dialog.vbox.pack_start(sidecombo)
- sidecombo.show()
- @@ -231,7 +237,7 @@
- subprocess.Popen(["xrandr", "--output", "LVDS1", "--auto", "--output",
- "VIRTUAL", "--mode", str(self.SETTINGS["RESOLUTION"]),
- "--rotate", str(self.SETTINGS["ROTATION"]),
- - "--"+str(self.SETTINGS["SIDE"])+"-of", "LVDS1"])
- + "--"+str(self.SETTINGS["SIDE"]), "LVDS1"])
- #YOU MUST HAVE screenclone in /usr/bin/
- time.sleep(1)
- subprocess.Popen(["screenclone", "-d", ":8", "-x", "1"])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement