Advertisement
Guest User

thinkdesk patch above below

a guest
Jan 31st, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.65 KB | None | 0 0
  1. --- /home/prs/Downloads/sagark-thinkdisp-cec8d21/thinkdisp      2012-08-21 03:34:32.000000000 +0200
  2. +++ /usr/bin/thinkdisp  2013-01-14 21:56:54.068813924 +0100
  3. @@ -1,4 +1,4 @@
  4. -#!/usr/bin/env python
  5. +#!/usr/bin/python
  6.  from thinkdisputil import custom_res
  7.  from thinkdisputil.util import UserConfig
  8.  import sys
  9. @@ -157,12 +157,18 @@
  10.  
  11.          #SIDE combobox
  12.          sidecombo = gtk.combo_box_new_text()
  13. -        sidecombo.append_text("left")
  14. -        sidecombo.append_text("right")
  15. -        if self.SETTINGS["SIDE"]=="left":
  16. +        sidecombo.append_text("above")
  17. +        sidecombo.append_text("right-of")
  18. +        sidecombo.append_text("left-of")
  19. +        sidecombo.append_text("below")
  20. +        if self.SETTINGS["SIDE"]=="above":
  21.              sidecombo.set_active(0)
  22. +       elif self.SETTINGS["SIDE"]=="right-of":
  23. +           sidecombo.set_active(1)
  24. +       elif self.SETTINGS["SIDE"]=="left-of":
  25. +           sidecombo.set_active(2)
  26.          else:
  27. -            sidecombo.set_active(1)
  28. +            sidecombo.set_active(3)
  29.  
  30.          dialog.vbox.pack_start(sidecombo)
  31.          sidecombo.show()
  32. @@ -231,7 +237,7 @@
  33.          subprocess.Popen(["xrandr", "--output", "LVDS1", "--auto", "--output",
  34.                           "VIRTUAL", "--mode", str(self.SETTINGS["RESOLUTION"]),
  35.                           "--rotate", str(self.SETTINGS["ROTATION"]),
  36. -                               "--"+str(self.SETTINGS["SIDE"])+"-of", "LVDS1"])
  37. +                               "--"+str(self.SETTINGS["SIDE"]), "LVDS1"])
  38.                 #YOU MUST HAVE screenclone in /usr/bin/
  39.          time.sleep(1)
  40.          subprocess.Popen(["screenclone", "-d", ":8", "-x", "1"])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement