LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: trasher

刚修改的一个Openbox主题,Show一把 ~~ 好像很久都没有月月秀了

[复制链接]
发表于 2009-3-1 23:55:35 | 显示全部楼层
Post by flyinflash;1954814
请贴配置文件
其实就是改了改颜色... 明天帖
Post by somebody;1954832
我觉得有gmrun了。似乎menu里都不需要有啥了?
偶的现在就有urxvt,firefox,gmrun.再加上openoffice的那些。

EN..其实这menu就是摆设... 全部快捷键,比gmrun快 :daniu:


糟糕..暴露马甲了~  
回复 支持 反对

使用道具 举报

发表于 2009-3-2 00:01:15 | 显示全部楼层
Post by kimux;1954837
其实就是改了改颜色... 明天帖



EN..其实这menu就是摆设... 全部快捷键,比gmrun快 :daniu:


糟糕..暴露马甲了~  


早就发现了。

你不止一次发kimux的截图了吧。

呵呵。
回复 支持 反对

使用道具 举报

发表于 2009-3-2 00:02:06 | 显示全部楼层
另,墙纸自己画的?
回复 支持 反对

使用道具 举报

发表于 2009-3-2 00:03:19 | 显示全部楼层
全快捷键不太现实吧。

现在配置了。win+u  urxvt

win+e rox

win+r gmrun
回复 支持 反对

使用道具 举报

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

壁纸:(没有自己画墙纸的功力 )


附件是主题和openbox的config.. 和oceanboo的没什么区别~

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-2 09:03:26 | 显示全部楼层
另外请教一个问题

pypanel默认鼠标中键单击关闭程序,但是我中键单击有时候会把程序转到后台,比如firefox~

不知道是什么原因
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-2 09:07:24 | 显示全部楼层
Post by somebody;1954842
全快捷键不太现实吧。

现在配置了。win+u  urxvt

win+e rox

win+r gmrun

我常用的也就是

Win + F : FireFox
Win + I :Xchat
Win + 1 : urxvtc
Win + R : gmrun
回复 支持 反对

使用道具 举报

发表于 2009-3-2 13:43:57 | 显示全部楼层
通过“滚轮窗口标题”来进行设置窗口最大最小化,可以吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-2 13:52:35 | 显示全部楼层
Post by flyinflash;1955058
通过“滚轮窗口标题”来进行设置窗口最大最小化,可以吗?

。。。好主意

不过Openbox似乎不行,至少我没找到怎么设置

pypanel应该可以实现
  1. #-------------------------------------
  2. def taskButtonEvent(pp, button, task):
  3. #-------------------------------------
  4.     """ Button event handler for the panel's tasks """
  5.    
  6.     if button == 1:
  7.         pp.taskFocus(task)
  8.     elif button == 2:
  9.         # Destroy the application
  10.         task.obj.destroy()
  11.     elif button == 3:
  12.         # Ex. - XMMS doesn't shade, so we want to minimize it instead and
  13.         #       still use button 3 to shade other applications
  14.         #       task.tclass is the tasks class name (WM_CLASS)
  15.         if "xmms" in task.tclass:
  16.             pp.toggleMinimize(task)
  17.         else:
  18.             pp.toggleShade(task)
  19.     elif button == 4:
  20.         #pp.taskRaise(task, focus=1)
  21.          [color="Red"]pp.toggleMinimize(task) # or pp.toggleShade(task)[/color]
  22.     elif button == 5:
  23.         #pp.taskLower(task, focus=0)
  24.          [color="Red"]pp.toggleMinimize(task) # or pp.toggleShade(task)[/color]
复制代码

现在没法试。。晚上回家后试试
回复 支持 反对

使用道具 举报

发表于 2009-3-2 15:05:24 | 显示全部楼层
之前用了fluxbox,本来很激动的,但是非常遗憾的是,它默认只能通过拖动左右下角来调节窗口大小,就因为这个原因,我就不用fluxbox了。

> 。。。好主意
感谢 kde 吧,这个东西在3.* 下就有(我一直使用 kde 3.* ),右击任何窗口……config specify windows ...
当然,它还可以设置窗口和任一热键绑定哦!:p

一直很喜欢 kde 3.* 其中一个原因就是它的程序做得很人性化/accessibility高,不过对于 kde 4.* 的态度,我和linus 一样。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表