LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 3930|回复: 33

我的黑底绿字xterm openbox conky pypanel 爽,快,稳定

[复制链接]
发表于 2009-3-13 21:53:25 | 显示全部楼层 |阅读模式
xterm 样式

  1. cat ~/.Xresources
复制代码


  1. !look and feel
  2. xterm.termName: xterm-256color
  3. xterm.geometry: 80x36
  4. xterm*scrollBar: false
  5. xterm*rightScrollBar: true
  6. xterm*loginshell: true
  7. xterm*cursorBlink: true
  8. xterm*background:  black
  9. xterm*foreground:  gray
  10. xterm.borderLess: true
  11. xterm.cursorBlink: true
  12. xterm*colorUL: yellow
  13. xterm*colorBD: white

  14. !fix alt key input
  15. xterm*eightBitInput: false
  16. xterm*altSendsEscape: true

  17. !font and locale
  18. xterm*locale: true
  19. xterm.utf8:     true
  20. xterm*utf8Title: true
  21. xterm*fontMenu*fontdefault*Label: Default
  22. xterm*faceName: DejaVu Sans Mono:antialias=True:pixelsize=12
  23. !xterm*faceName: monofur:antialias=True:pixelsize=20
  24. !xter*boldFont: DejaVu Sans Mono:style=Bold:pixelsize=15
  25. xterm*faceNameDoublesize: wenquanyi bitmap song:pixelsize=12:antialias=True
  26. xterm*xftAntialias: true
  27. xterm*cjkWidth:false


  28. !-- Tango color scheme
  29. *xterm*color0: #2e3436
  30. *xterm*color1: #cc0000
  31. *xterm*color2: #4e9a06
  32. *xterm*color3: #c4a000
  33. *xterm*color4: #3465a4
  34. *xterm*color5: #75507b
  35. *xterm*color6: #0b939b
  36. *xterm*color7: #d3d7cf
  37. *xterm*color8: #555753
  38. *xterm*color9: #ef2929
  39. *xterm*color10: #8ae234
  40. *xterm*color11: #fce94f
  41. *xterm*color12: #729fcf
  42. *xterm*color13: #ad7fa8
  43. *xterm*color14: #00f5e9
  44. *xterm*color15: #eeeeec
复制代码


.xinitrc 脚本

  1. cat .xinitrc
复制代码


  1. #!/bin/bash
  2. openbox-session
复制代码


openbox 主题

  1. mv obg.7z.bz2 obg.7z && 7z x obg.7z
  2. cp obg /usr/share/theme/ && emerge obconf
复制代码

用obconf选择应用该主题

conky 设置

  1. cat ~/.conkyrc
复制代码

  1. alignment top_left
  2. background yes
  3. border_width 1x
  4. cpu_avg_samples 2

  5. default_color white
  6. default_shade_color b77204
  7. default_outline_color green

  8. draw_borders no
  9. draw_graph_borders yes
  10. draw_outline no
  11. draw_shades no

  12. double_buffer yes

  13. gap_x 5
  14. gap_y 60
  15. minimum_size 5 5
  16. net_avg_samples 2
  17. no_buffers yes
  18. out_to_console no
  19. own_window yes
  20. own_window_class Conky
  21. own_window_transparent yes
  22. #own_window_type normal
  23. own_window_type desktop
  24. stippled_borders 0
  25. update_interval 1.0
  26. uppercase no
  27. use_spacer no

  28. use_xft yes
  29. xftfont Radio Space:size=9
  30. xftalpha 0.8

  31. show_graph_scale no
  32. show_graph_range no

  33. total_run_times 0

  34. TEXT

  35. $alignc ${scroll 50 $nodename} - $sysname $kernel
  36. ${color}CPU ${hr 1}
  37. ${color}${tab 10}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/CPU/ /' | sed -e 's/model name.*: //'}
  38. ${color}$alignr Process ${color green}$processes ${color}Run ${color green}$running_processes ${color} Temp ${color green}${acpitemp}
  39. ${color}${tab 10}${cpugraph 000000 280465}
  40. ${color green}${tab 10}${cpu cpu0}% ${cpubar cpu0 6}
  41. ${color}${tab 20}${top name 1} $alignr${color green}${top pid 1} ${color green}${top cpu 1}
  42. ${color}${tab 20}${top name 2} $alignr${color green}${top pid 2} ${color green}${top cpu 2}
  43. ${color}${tab 20}${top name 3} $alignr${color green}${top pid 3} ${color green}${top cpu 3}

  44. ${color}RAM $hr
  45. ${color green}${tab 10}${memperc}% ${membar 6}
  46. ${color}${tab 20}${top_mem name 1} $alignr${color green}${top_mem pid 1} ${color green}${top_mem mem 1}
  47. ${color}${tab 20}${top_mem name 2} $alignr${color green}${top_mem pid 2} ${color green}${top_mem mem 2}
  48. ${color}${tab 20}${top_mem name 3} $alignr${color green}${top_mem pid 3} ${color green}${top_mem mem 3}

  49. ${color}File System $hr
  50. ${color}${tab 10}/ ${color green}${fs_used_perc /}% ${fs_bar 5 /}
  51. ${color}${tab 10}/home ${color green}${fs_used_perc /home}% ${fs_bar 5 /home}
  52. ${color}${tab 10}Swap ${color green}${swapperc}% ${color green}${swapbar 6}

  53. ${color}${tab 10}${diskiograph 000000 0077ff}
  54. ${color green}$alignr ${diskio}

  55. ${color}Network $hr
  56. ${Color}${tab 10}eth0 ${color green}${addr eth0}
  57. ${color}${tab 10}ppp0 ${color green}${addr ppp0}
  58. ${color}${tab 10}Down: ${color white} ${color green}${downspeedf eth0} ${color}KB/s ${alignr}Up ${color green}${upspeedf eth0} ${color}KB/s
  59. ${color}${tab 10}${downspeedgraph eth0 9,125 000000 000000} ${alignr}${upspeedgraph eth0 9,125 000000 000000}$color
  60. ${color white}${tab 10}Connections in: ${color white}${tcp_portmon 1 32767 count} ${alignr}${color white}Connections out: ${color white}${tcp_portmon 32768 61000 count}${color white}

  61. ${color}Power $hr
  62. ${color green}${tab 10}${battery BAT0} ${battery_percent BAT0}% ${battery_bar 8,60 BAT0}

  63. ${color}Misc $hr
  64. ${color green}${tab 10}$uptime
  65. ${color}${tab 10}Volume: ${color green}${mixer pcm}

  66. ${color green}${tab 10}${execi 100 date +%Y-%m-%d}
复制代码



pypanel 设置

  1. cat ~/.pypanel
复制代码

  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. # Colors: Format is hex triplet - 0xrrggbb
  12. #------------------------------------------------------------------------------
  13. BG_COLOR        = "0x202020"    # Panel background and tinting color
  14. TASK_COLOR      = "0x92FF00"    # Normal task name color
  15. #TASK_COLOR      = "0x000000"    # Normal task name color
  16. FOCUSED_COLOR   = "0x99ff00"    # Focused task name color
  17. SHADED_COLOR    = "0x808080"    # Shaded task name color
  18. MINIMIZED_COLOR = "0x669900"    # Minimized task name color
  19. #DESKTOP_COLOR   = "0xFFFFFF"    # Desktop name color
  20. DESKTOP_COLOR   = "0x92FF00"    # Desktop name color
  21. CLOCK_COLOR     = "0x92FF00"    # Clock text color
  22. LINE_COLOR      = "0x669900"    # Vertical line color

  23. # Text Shadow Colors
  24. TASK_SHADOW_COLOR      = "0x669900"
  25. FOCUSED_SHADOW_COLOR   = "0xffffff"
  26. SHADED_SHADOW_COLOR    = "0xffffff"
  27. MINIMIZED_SHADOW_COLOR = "0xffffff"
  28. DESKTOP_SHADOW_COLOR   = "0xffffff"
  29. CLOCK_SHADOW_COLOR     = "0xffffff"

  30. #------------------------------------------------------------------------------
  31. # Panel Spacing and Location Options: Measured in pixels
  32. #------------------------------------------------------------------------------
  33. P_LOCATION      = 1             # Panel placement: 0 = top, 1 = bottom
  34. P_WIDTH         = 0             # Panel width: 0 = Use full screen width
  35. P_START         = 0             # Starting X coordinate of the panel
  36. P_SPACER        = 6             # Spacing between panel objects
  37. P_HEIGHT        = 18            # Panel height
  38. #P_B_BUFF        = 3
  39. #P_T_BUFF        = 3
  40. #P_L_BUFF        = 3
  41. #P_R_BUFF        = 3
  42. #------------------------------------------------------------------------------
  43. # Icon Size Options: Measured in pixels
  44. #------------------------------------------------------------------------------
  45. I_HEIGHT        = 18            # Panel application icon height
  46. I_WIDTH         = 18            # Panel application icon Width
  47. APPL_I_HEIGHT   = 18            # Application launcher icon height
  48. APPL_I_WIDTH    = 18            # Application launcher icon width
  49. TRAY_I_HEIGHT   = 18            # System tray icon height (usually 16 or 24)
  50. TRAY_I_WIDTH    = 18            # System tray icon width  (usually 16 or 24)
  51.                                 # If TRAY_I_WIDTH is set to 0, then the
  52.                                 # width specified by the tray app will be used
  53.                                 
  54. #------------------------------------------------------------------------------
  55. # Panel Clock Format: 'man strftime' for detailed formatting options and help
  56. #------------------------------------------------------------------------------
  57. CLOCK_FORMAT    = "%y-%m-%d %H:%M"    # Ex: 2004-09-25 17:45

  58. #------------------------------------------------------------------------------
  59. # Clock Delay: Seconds between each clock update during periods of inactivity
  60. #------------------------------------------------------------------------------
  61. CLOCK_DELAY     = 20

  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       = ['Conky', 'tilda']            
  68.                   
  69. #------------------------------------------------------------------------------
  70. # Hidden Panel Size: Size of the panel when it's hidden/minimized
  71. #------------------------------------------------------------------------------
  72. HIDDEN_SIZE     = 2

  73. #------------------------------------------------------------------------------
  74. # Panel Text Font: This option takes either a traditional or Xft font string
  75. # Ex: "-schumacher-clean-medium-r-normal-*-12-*-*-*-*-*-*-*"
  76. #     "aquafont-8"
  77. #------------------------------------------------------------------------------
  78. #FONT            = "LiHei Pro-8"
  79. FONT            = "WenQuanYi Song"

  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            = 4             # 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.         pp.toggleMinimize(task) # or pp.toggleShade(task)
  201. #        pass
  202.         #pp.changeDesktop(1)
  203.     elif button == 5:
  204.         pp.toggleMinimize(task) # or pp.toggleShade(task)
  205. #        pass
  206.         #pp.changeDesktop(-1)
  207.         
  208. #--------------------------------
  209. def clockButtonEvent(pp, button):
  210. #--------------------------------
  211.     """ Button event handler for the panel's clock object """
  212.    
  213.     if button == 1:
  214.         pass
  215.         #os.system("xclock &")
  216.     elif button == 2:
  217.         pass
  218.     elif button == 3:
  219.         pp.toggleHidden()  
  220.     elif button == 4:
  221.        # pp.showDesktop()
  222.         os.system("amixer -q set PCM 2+ unmute")
  223.     elif button == 5:
  224.         #pp.showDesktop()
  225.         os.system("amixer -q set PCM 2- unmute")
  226.         
  227. #--------------------------------
  228. def panelButtonEvent(pp, button):
  229. #--------------------------------
  230.     """ Button event handler for the panel with no active tasks """
  231.    
  232.     if button == 1:
  233.         pass
  234.     elif button == 2:
  235.         pass
  236.     elif button == 3:
  237.         pass
  238.     elif button == 4:
  239.         pass
  240.     elif button == 5:
  241.         pass
  242.         
  243. #-------------------------------------
  244. def taskButtonEvent(pp, button, task):
  245. #-------------------------------------
  246.     """ Button event handler for the panel's tasks """
  247.    
  248.     if button == 1:
  249.         pp.taskFocus(task)
  250.     elif button == 2:
  251.         # Destroy the application
  252.         task.obj.destroy()
  253.     elif button == 3:
  254.         # Ex. - XMMS doesn't shade, so we want to minimize it instead and
  255.         #       still use button 3 to shade other applications
  256.         #       task.tclass is the tasks class name (WM_CLASS)
  257.         if "xmms" in task.tclass:
  258.             pp.toggleMinimize(task)
  259.         else:
  260.             pp.toggleShade(task)
  261.     elif button == 4:
  262.         pp.taskRaise(task, focus=1)
  263.     elif button == 5:
  264.         pp.taskLower(task, focus=0)
复制代码


openbox 其它设置

  1. mv dot-config-openbox.7z.bz2 dot-config-openbox.7z && 7z x dot-config-openbox.7z
  2. mkdir ~/.config && cp dot-config-openbox ~/.config/openbox
复制代码


安装的字体

  1. emerge dejavu wqy-bitmapfont
复制代码


PS: 不要使用最新的3.6 fcitx,因为它在我上面提到的环境中测试有bug。
3.5很好

连pypanel也不要了!!

本帖子中包含更多资源

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

x
发表于 2009-3-13 21:56:26 | 显示全部楼层
呃...是不是传错图了 ?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-13 22:04:23 | 显示全部楼层
嗯,还有那个
feh mc mocp
没有安装 x11-base/xorg-x11
回复 支持 反对

使用道具 举报

发表于 2009-3-13 22:07:26 | 显示全部楼层
饿  我一个fluxbox就够了...

本帖子中包含更多资源

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

x
回复 支持 反对

使用道具 举报

发表于 2009-3-13 22:16:30 | 显示全部楼层
你说的fcitx3.6有问题是指这个吗? 我的没问题~

本帖子中包含更多资源

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

x
回复 支持 反对

使用道具 举报

发表于 2009-3-13 22:40:13 | 显示全部楼层
fcitx不是那个原因lz , 你肯定多次 注销X后没有手动kill fcitx , 建议在fcitx的启动脚本前加一行kill已存在fcitx进程的命令, 否则运行多个fcitx实例的时候狂占CPU
回复 支持 反对

使用道具 举报

发表于 2009-3-13 22:54:41 | 显示全部楼层
fcitx3.6.0在这样的环境下似乎就是会有问题,我也遇到过,会造成一些程序假死。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-13 22:56:28 | 显示全部楼层
Post by asmart;1960565
fcitx不是那个原因lz , 你肯定多次 注销X后没有手动kill fcitx , 建议在fcitx的启动脚本前加一行kill已存在fcitx进程的命令, 否则运行多个fcitx实例的时候狂占CPU

您说的,我已经测试过了,当然排除您想到的。
回复 支持 反对

使用道具 举报

发表于 2009-3-13 23:00:46 | 显示全部楼层
Post by flyinflash;1960576
您说的,我已经测试过了,当然排除您想到的。


那就不清楚了, 我的fluxbox环境下,单个fcitx的时候还没出现过问题,我说的情况也是 一次故障后发现系统很卡, 结果2个fcitx进程再吃cpu , 就以为是了 呵呵
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-13 23:00:57 | 显示全部楼层
Post by asmart;1960554
饿  我一个fluxbox就够了...


我不用fluxbox的一个原因是,因为它默认窗口大小只能点击左右下角来调节,左右上角失效了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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