pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

primoturbo private pastebin - collaborative debugging tool What's a private pastebin?


Posted by PrimoTurbo on Thu 26 Jun 16:28
report abuse | download | new post

  1. #------------------------------------------------------------------------------
  2. #
  3. #                         PyPanel v2.4 Configuration
  4. #
  5. # This configuration file is a Python script that will be executed when
  6. # PyPanel is started.  In order for PyPanel to start properly, make sure that
  7. # this file contains proper Python formatting and no syntax errors.
  8. #------------------------------------------------------------------------------
  9. VERSION         = 2.4           # Config file version
  10.  
  11. #------------------------------------------------------------------------------
  12. # Colors: Format is hex triplet - 0xrrggbb
  13. #------------------------------------------------------------------------------
  14. BG_COLOR        = "0xFFFFFF"    # Panel background and tinting color
  15. TASK_COLOR      = "0xFFFFFF"    # Normal task name color
  16. FOCUSED_COLOR   = "0x9FC6FF"    # Focused task name color
  17. SHADED_COLOR    = "0xFFFFFF"    # Shaded task name color
  18. MINIMIZED_COLOR = "0xFFFFFF"    # Minimized task name color
  19. DESKTOP_COLOR   = "0xFFFFFF"    # Desktop name color
  20. CLOCK_COLOR     = "0xFFFFFF"    # Clock text color
  21. LINE_COLOR      = "0x656565"    # Vertical line color
  22.  
  23. # Text Shadow Colors
  24. TASK_SHADOW_COLOR      = "0x000000"
  25. FOCUSED_SHADOW_COLOR   = "0x000000"
  26. SHADED_SHADOW_COLOR    = "0x000000"
  27. MINIMIZED_SHADOW_COLOR = "0x000000"
  28. DESKTOP_SHADOW_COLOR   = "0x000000"
  29. CLOCK_SHADOW_COLOR     = "0x000000"
  30.  
  31. #------------------------------------------------------------------------------
  32. # Panel Spacing and Location Options: Measured in pixels
  33. #------------------------------------------------------------------------------
  34. P_LOCATION      = 1             # Panel placement: 0 = top, 1 = bottom
  35. P_WIDTH         = 1179          # Panel width: 0 = Use full screen width
  36. P_START         = 0             # Starting X coordinate of the panel
  37. P_SPACER        = 6             # Spacing between panel objects
  38. P_HEIGHT        = 24            # Panel height
  39.  
  40. #------------------------------------------------------------------------------
  41. # Icon Size Options: Measured in pixels
  42. #------------------------------------------------------------------------------
  43. I_HEIGHT        = 16            # Panel application icon height
  44. I_WIDTH         = 16            # Panel application icon Width
  45. APPL_I_HEIGHT   = 24            # Application launcher icon height
  46. APPL_I_WIDTH    = 24            # Application launcher icon width
  47. TRAY_I_HEIGHT   = 24            # System tray icon height (usually 16 or 24)
  48. TRAY_I_WIDTH    = 24            # System tray icon width  (usually 16 or 24)
  49.                                 # If TRAY_I_WIDTH is set to 0, then the
  50.                                 # width specified by the tray app will be used
  51.                                
  52. #------------------------------------------------------------------------------
  53. # Panel Clock Format: 'man strftime' for detailed formatting options and help
  54. #------------------------------------------------------------------------------
  55. CLOCK_FORMAT    = "%I:%M %p"    # Ex: 2004-09-25 17:45 - "%Y-%m-%d %H:%M"
  56.  
  57. #------------------------------------------------------------------------------
  58. # Clock Delay: Seconds between each clock update during periods of inactivity
  59. #------------------------------------------------------------------------------
  60. CLOCK_DELAY     = 20
  61.  
  62. #------------------------------------------------------------------------------
  63. # Hidden Application List: Apps listed here will not be display on the panel
  64. # The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS
  65. # Ex: ["xmms", "xine", "gDesklets"]
  66. #------------------------------------------------------------------------------
  67. HIDE_LIST       = []            
  68.                    
  69. #------------------------------------------------------------------------------
  70. # Hidden Panel Size: Size of the panel when it's hidden/minimized
  71. #------------------------------------------------------------------------------
  72. HIDDEN_SIZE     = 2
  73.  
  74. #------------------------------------------------------------------------------
  75. # Panel Text Font: This option takes either a traditional or Xft font string
  76. # Ex: "-schumacher-clean-medium-r-normal-*-12-*-*-*-*-*-*-*"
  77. #     "aquafont-8"
  78. #------------------------------------------------------------------------------
  79. FONT            = "bitstream vera sans-8"
  80.  
  81. #------------------------------------------------------------------------------
  82. # Show All Applications: Show apps from all desktops or just the current
  83. # 0: Disabled - Only applications on the current desktop will be displayed
  84. # 1: Enabled  - Selected apps are moved to the current desktop
  85. # 2: Enabled  - Current desktop is changed to the selected apps desktop
  86. #------------------------------------------------------------------------------
  87. SHOWALL         = 0             # 0, 1 or 2 - see descriptions above
  88.  
  89. #------------------------------------------------------------------------------
  90. # Show Minimized/Iconified Applications: Show only minimized apps or all apps
  91. # 0: Disabled - Show all applications on the panel
  92. # 1: Enabled  - Show only minimized apps on the panel
  93. #------------------------------------------------------------------------------
  94. SHOWMINIMIZED   = 0
  95.  
  96. #------------------------------------------------------------------------------
  97. # Application Icon List: List of custom icons for specific applications
  98. # The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS
  99. #
  100. # The "default" entry is used for applications with no icon.  If left "",
  101. # PyPanel will use the default icon distributed with the source.
  102. #
  103. # Add entries using the following format -
  104. #     "<application name>" : "<full path to icon>",
  105. #------------------------------------------------------------------------------
  106. ICON_LIST       = {
  107.                    "default" : "",
  108.                   }
  109.                  
  110. #------------------------------------------------------------------------------
  111. # Application Launch List: Ordered list of icons and applications for the
  112. #                          application launcher.
  113. #
  114. # Add entries using the following format -
  115. #     ("<executable>", "<full path to icon>")
  116. #------------------------------------------------------------------------------
  117. LAUNCH_LIST     = [
  118.                    ("gnome-volume-control", "/home/primo/Files/System/Customize/Icons/Single/AudioSmall.png"),
  119.                   ]
  120.  
  121. #------------------------------------------------------------------------------
  122. # Background Alpha/Shade Level: 0 (Fully Translucent) -> 255 (Fully Opaque)
  123. # BG_COLOR is used for tinting
  124. #------------------------------------------------------------------------------
  125. SHADE           = 0
  126.  
  127. #------------------------------------------------------------------------------
  128. # Misc. Options: 1 = Enabled/Yes, 0 = Disabled/No
  129. #------------------------------------------------------------------------------
  130. ABOVE           = 1             # Panel is always above other apps
  131. APPICONS        = 1             # Show application icons
  132. AUTOHIDE        = 0             # Autohide uses the CLOCK_DELAY timer above
  133. SHADOWS         = 1             # Show text shadows
  134. SHOWLINES       = 0             # Show object seperation lines
  135. SHOWBORDER      = 0             # Show a border around the panel
  136.  
  137. #------------------------------------------------------------------------------
  138. # Desktop Names: Configure the names of your desktops
  139. # If the option is [], PyPanel will attempt to use the desktop name specified
  140. # by the XServer, if that fails it will use the desktop number as its name
  141. # Ex. ["One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight"]
  142. #------------------------------------------------------------------------------
  143. DESKTOP_NAMES   = ["               ", "               ", "               ", "               "]
  144.  
  145. #------------------------------------------------------------------------------
  146. # Panel Layout:       -----------------------------------
  147. #                     [  1  ][  2  ][  3  ][  4  ][  5  ]
  148. #                     -----------------------------------
  149. #
  150. # The panel layout is split into 5 sections numbered 1, 2, 3, 4 or 5 as shown
  151. # in the diagram above.  Each of the following objects can be enabled by
  152. # assigning it a section number or disabled by assigning it 0:
  153. #------------------------------------------------------------------------------
  154. DESKTOP         = 1             # Desktop name section
  155. TASKS           = 2             # Task names section
  156. TRAY            = 3             # System tray section
  157. CLOCK           = 5             # Clock section
  158. LAUNCHER        = 4             # Application launcher section
  159.  
  160. #------------------------------------------------------------------------------
  161. #                       Button Event Function Definitions
  162. #------------------------------------------------------------------------------
  163. # Left click   - button 1
  164. # Middle click - button 2
  165. # Right click  - button 3
  166. # Wheel up     - button 4
  167. # Wheel down   - button 5
  168. #
  169. # changeDesktop(x)
  170. # - Change Desktop: Increase or decrease the current desktop by 'x' amount
  171. #
  172. # toggleShade(task)
  173. # - Shade or Unshade an application
  174. #
  175. # toggleHidden()
  176. # - Minimize the panel to the top or bottom depending on its start location
  177. #
  178. # toggleMinimize(task, traise=1)
  179. # - Minimize or Unminimize an application and optionally raise it
  180. #
  181. # taskRaise(task, focus=1)
  182. # - Raise an application to the top of the window list and optionally focus it
  183. #
  184. # taskLower(task, focus=0)
  185. # - Lower an app to the bottom of the window list and optionally focus it
  186. #
  187. # taskFocus(task)
  188. # - Give focus to the selected application, if it has focus then minimize it
  189. #
  190. # showDesktop()
  191. # - Toggle between hiding and unhiding ALL applications
  192. #------------------------------------------------------------------------------
  193.  
  194. #----------------------------------
  195. def desktopButtonEvent(pp, button):
  196. #----------------------------------
  197.     """ Button event handler for the panel's desktop object """
  198.        
  199.     if button == 1:
  200.         os.system("xte 'key Pause' &")
  201.     elif button == 2:
  202.         pass
  203.     elif button == 3:
  204.         pass
  205.     elif button == 4:
  206.         pp.changeDesktop(1)
  207.     elif button == 5:
  208.         pp.changeDesktop(1)
  209.        
  210. #--------------------------------
  211. def clockButtonEvent(pp, button):
  212. #--------------------------------
  213.     """ Button event handler for the panel's clock object """
  214.    
  215.     if button == 1:
  216.         os.system("/home/primo/Files/System/Scripts/dzen_calendar &")
  217.     elif button == 2:
  218.         pass
  219.     elif button == 3:
  220.         os.system("osmo &")
  221.     elif button == 4:
  222.         pp.showDesktop()
  223.     elif button == 5:
  224.         pp.showDesktop()
  225.        
  226. #--------------------------------
  227. def panelButtonEvent(pp, button):
  228. #--------------------------------
  229.     """ Button event handler for the panel with no active tasks """
  230.    
  231.     if button == 1:
  232.         pass
  233.     elif button == 2:
  234.         pass
  235.     elif button == 3:
  236.         pass
  237.     elif button == 4:
  238.         pass
  239.     elif button == 5:
  240.         pass
  241.        
  242. #-------------------------------------
  243. def taskButtonEvent(pp, button, task):
  244. #-------------------------------------
  245.     """ Button event handler for the panel's tasks """
  246.    
  247.     if button == 1:
  248.         pp.taskFocus(task)
  249.         pp.taskFocus(task)
  250.     elif button == 2:
  251.         pass
  252.     elif button == 3:
  253.         # Ex. - XMMS doesn't shade, so we want to minimize it instead and
  254.         #       still use button 3 to shade other applications
  255.         #       task.tclass is the tasks class name (WM_CLASS)
  256.         if "xmms" in task.tclass:
  257.             pp.toggleMinimize(task)
  258.         else:
  259.             pp.toggleShade(task)
  260.     elif button == 4:
  261.         pp.taskRaise(task, focus=1)
  262.     elif button == 5:
  263.         pp.taskLower(task, focus=0)

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me so that I can delete my post