|
|
xterm 样式
- !look and feel
- xterm.termName: xterm-256color
- xterm.geometry: 80x36
- xterm*scrollBar: false
- xterm*rightScrollBar: true
- xterm*loginshell: true
- xterm*cursorBlink: true
- xterm*background: black
- xterm*foreground: gray
- xterm.borderLess: true
- xterm.cursorBlink: true
- xterm*colorUL: yellow
- xterm*colorBD: white
- !fix alt key input
- xterm*eightBitInput: false
- xterm*altSendsEscape: true
- !font and locale
- xterm*locale: true
- xterm.utf8: true
- xterm*utf8Title: true
- xterm*fontMenu*fontdefault*Label: Default
- xterm*faceName: DejaVu Sans Mono:antialias=True:pixelsize=12
- !xterm*faceName: monofur:antialias=True:pixelsize=20
- !xter*boldFont: DejaVu Sans Mono:style=Bold:pixelsize=15
- xterm*faceNameDoublesize: wenquanyi bitmap song:pixelsize=12:antialias=True
- xterm*xftAntialias: true
- xterm*cjkWidth:false
- !-- Tango color scheme
- *xterm*color0: #2e3436
- *xterm*color1: #cc0000
- *xterm*color2: #4e9a06
- *xterm*color3: #c4a000
- *xterm*color4: #3465a4
- *xterm*color5: #75507b
- *xterm*color6: #0b939b
- *xterm*color7: #d3d7cf
- *xterm*color8: #555753
- *xterm*color9: #ef2929
- *xterm*color10: #8ae234
- *xterm*color11: #fce94f
- *xterm*color12: #729fcf
- *xterm*color13: #ad7fa8
- *xterm*color14: #00f5e9
- *xterm*color15: #eeeeec
复制代码
.xinitrc 脚本
- #!/bin/bash
- openbox-session
复制代码
openbox 主题
- mv obg.7z.bz2 obg.7z && 7z x obg.7z
- cp obg /usr/share/theme/ && emerge obconf
复制代码
用obconf选择应用该主题
conky 设置
- alignment top_left
- background yes
- border_width 1x
- cpu_avg_samples 2
- default_color white
- default_shade_color b77204
- default_outline_color green
- draw_borders no
- draw_graph_borders yes
- draw_outline no
- draw_shades no
- double_buffer yes
- gap_x 5
- gap_y 60
- minimum_size 5 5
- net_avg_samples 2
- no_buffers yes
- out_to_console no
- own_window yes
- own_window_class Conky
- own_window_transparent yes
- #own_window_type normal
- own_window_type desktop
- stippled_borders 0
- update_interval 1.0
- uppercase no
- use_spacer no
- use_xft yes
- xftfont Radio Space:size=9
- xftalpha 0.8
- show_graph_scale no
- show_graph_range no
- total_run_times 0
- TEXT
- $alignc ${scroll 50 $nodename} - $sysname $kernel
- ${color}CPU ${hr 1}
- ${color}${tab 10}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/CPU/ /' | sed -e 's/model name.*: //'}
- ${color}$alignr Process ${color green}$processes ${color}Run ${color green}$running_processes ${color} Temp ${color green}${acpitemp}
- ${color}${tab 10}${cpugraph 000000 280465}
- ${color green}${tab 10}${cpu cpu0}% ${cpubar cpu0 6}
- ${color}${tab 20}${top name 1} $alignr${color green}${top pid 1} ${color green}${top cpu 1}
- ${color}${tab 20}${top name 2} $alignr${color green}${top pid 2} ${color green}${top cpu 2}
- ${color}${tab 20}${top name 3} $alignr${color green}${top pid 3} ${color green}${top cpu 3}
- ${color}RAM $hr
- ${color green}${tab 10}${memperc}% ${membar 6}
- ${color}${tab 20}${top_mem name 1} $alignr${color green}${top_mem pid 1} ${color green}${top_mem mem 1}
- ${color}${tab 20}${top_mem name 2} $alignr${color green}${top_mem pid 2} ${color green}${top_mem mem 2}
- ${color}${tab 20}${top_mem name 3} $alignr${color green}${top_mem pid 3} ${color green}${top_mem mem 3}
- ${color}File System $hr
- ${color}${tab 10}/ ${color green}${fs_used_perc /}% ${fs_bar 5 /}
- ${color}${tab 10}/home ${color green}${fs_used_perc /home}% ${fs_bar 5 /home}
- ${color}${tab 10}Swap ${color green}${swapperc}% ${color green}${swapbar 6}
- ${color}${tab 10}${diskiograph 000000 0077ff}
- ${color green}$alignr ${diskio}
- ${color}Network $hr
- ${Color}${tab 10}eth0 ${color green}${addr eth0}
- ${color}${tab 10}ppp0 ${color green}${addr ppp0}
- ${color}${tab 10}Down: ${color white} ${color green}${downspeedf eth0} ${color}KB/s ${alignr}Up ${color green}${upspeedf eth0} ${color}KB/s
- ${color}${tab 10}${downspeedgraph eth0 9,125 000000 000000} ${alignr}${upspeedgraph eth0 9,125 000000 000000}$color
- ${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}
- ${color}Power $hr
- ${color green}${tab 10}${battery BAT0} ${battery_percent BAT0}% ${battery_bar 8,60 BAT0}
- ${color}Misc $hr
- ${color green}${tab 10}$uptime
- ${color}${tab 10}Volume: ${color green}${mixer pcm}
- ${color green}${tab 10}${execi 100 date +%Y-%m-%d}
复制代码
pypanel 设置
- #------------------------------------------------------------------------------
- #
- # PyPanel v2.4 Configuration
- #
- # This configuration file is a Python script that will be executed when
- # PyPanel is started. In order for PyPanel to start properly, make sure that
- # this file contains proper Python formatting and no syntax errors.
- #------------------------------------------------------------------------------
- VERSION = 2.4 # Config file version
- #------------------------------------------------------------------------------
- # Colors: Format is hex triplet - 0xrrggbb
- #------------------------------------------------------------------------------
- BG_COLOR = "0x202020" # Panel background and tinting color
- TASK_COLOR = "0x92FF00" # Normal task name color
- #TASK_COLOR = "0x000000" # Normal task name color
- FOCUSED_COLOR = "0x99ff00" # Focused task name color
- SHADED_COLOR = "0x808080" # Shaded task name color
- MINIMIZED_COLOR = "0x669900" # Minimized task name color
- #DESKTOP_COLOR = "0xFFFFFF" # Desktop name color
- DESKTOP_COLOR = "0x92FF00" # Desktop name color
- CLOCK_COLOR = "0x92FF00" # Clock text color
- LINE_COLOR = "0x669900" # Vertical line color
- # Text Shadow Colors
- TASK_SHADOW_COLOR = "0x669900"
- FOCUSED_SHADOW_COLOR = "0xffffff"
- SHADED_SHADOW_COLOR = "0xffffff"
- MINIMIZED_SHADOW_COLOR = "0xffffff"
- DESKTOP_SHADOW_COLOR = "0xffffff"
- CLOCK_SHADOW_COLOR = "0xffffff"
- #------------------------------------------------------------------------------
- # Panel Spacing and Location Options: Measured in pixels
- #------------------------------------------------------------------------------
- P_LOCATION = 1 # Panel placement: 0 = top, 1 = bottom
- P_WIDTH = 0 # Panel width: 0 = Use full screen width
- P_START = 0 # Starting X coordinate of the panel
- P_SPACER = 6 # Spacing between panel objects
- P_HEIGHT = 18 # Panel height
- #P_B_BUFF = 3
- #P_T_BUFF = 3
- #P_L_BUFF = 3
- #P_R_BUFF = 3
- #------------------------------------------------------------------------------
- # Icon Size Options: Measured in pixels
- #------------------------------------------------------------------------------
- I_HEIGHT = 18 # Panel application icon height
- I_WIDTH = 18 # Panel application icon Width
- APPL_I_HEIGHT = 18 # Application launcher icon height
- APPL_I_WIDTH = 18 # Application launcher icon width
- TRAY_I_HEIGHT = 18 # System tray icon height (usually 16 or 24)
- TRAY_I_WIDTH = 18 # System tray icon width (usually 16 or 24)
- # If TRAY_I_WIDTH is set to 0, then the
- # width specified by the tray app will be used
-
- #------------------------------------------------------------------------------
- # Panel Clock Format: 'man strftime' for detailed formatting options and help
- #------------------------------------------------------------------------------
- CLOCK_FORMAT = "%y-%m-%d %H:%M" # Ex: 2004-09-25 17:45
- #------------------------------------------------------------------------------
- # Clock Delay: Seconds between each clock update during periods of inactivity
- #------------------------------------------------------------------------------
- CLOCK_DELAY = 20
- #------------------------------------------------------------------------------
- # Hidden Application List: Apps listed here will not be display on the panel
- # The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS
- # Ex: ["xmms", "xine", "gDesklets"]
- #------------------------------------------------------------------------------
- HIDE_LIST = ['Conky', 'tilda']
-
- #------------------------------------------------------------------------------
- # Hidden Panel Size: Size of the panel when it's hidden/minimized
- #------------------------------------------------------------------------------
- HIDDEN_SIZE = 2
- #------------------------------------------------------------------------------
- # Panel Text Font: This option takes either a traditional or Xft font string
- # Ex: "-schumacher-clean-medium-r-normal-*-12-*-*-*-*-*-*-*"
- # "aquafont-8"
- #------------------------------------------------------------------------------
- #FONT = "LiHei Pro-8"
- FONT = "WenQuanYi Song"
- #------------------------------------------------------------------------------
- # Show All Applications: Show apps from all desktops or just the current
- # 0: Disabled - Only applications on the current desktop will be displayed
- # 1: Enabled - Selected apps are moved to the current desktop
- # 2: Enabled - Current desktop is changed to the selected apps desktop
- #------------------------------------------------------------------------------
- SHOWALL = 0 # 0, 1 or 2 - see descriptions above
- #------------------------------------------------------------------------------
- # Show Minimized/Iconified Applications: Show only minimized apps or all apps
- # 0: Disabled - Show all applications on the panel
- # 1: Enabled - Show only minimized apps on the panel
- #------------------------------------------------------------------------------
- SHOWMINIMIZED = 0
- #------------------------------------------------------------------------------
- # Application Icon List: List of custom icons for specific applications
- # The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS
- #
- # The "default" entry is used for applications with no icon. If left "",
- # PyPanel will use the default icon distributed with the source.
- #
- # Add entries using the following format -
- # "<application name>" : "<full path to icon>",
- #------------------------------------------------------------------------------
- ICON_LIST = {
- "default" : "",
- # "example" : "/usr/share/imlib2/data/images/audio.png",
- }
-
- #------------------------------------------------------------------------------
- # Application Launch List: Ordered list of icons and applications for the
- # application launcher.
- #
- # Add entries using the following format -
- # ("<executable>", "<full path to icon>")
- #------------------------------------------------------------------------------
- LAUNCH_LIST = [
- # ("gimp-2.2", "/usr/share/imlib2/data/images/paper.png"),
- ]
- #------------------------------------------------------------------------------
- # Background Alpha/Shade Level: 0 (Fully Translucent) -> 255 (Fully Opaque)
- # BG_COLOR is used for tinting
- #------------------------------------------------------------------------------
- SHADE = 250
- #------------------------------------------------------------------------------
- # Misc. Options: 1 = Enabled/Yes, 0 = Disabled/No
- #------------------------------------------------------------------------------
- ABOVE = 1 # Panel is always above other apps
- APPICONS = 0 # Show application icons
- AUTOHIDE = 0 # Autohide uses the CLOCK_DELAY timer above
- SHADOWS = 0 # Show text shadows
- SHOWLINES = 1 # Show object seperation lines
- SHOWBORDER = 0 # Show a border around the panel
- #------------------------------------------------------------------------------
- # Desktop Names: Configure the names of your desktops
- # If the option is [], PyPanel will attempt to use the desktop name specified
- # by the XServer, if that fails it will use the desktop number as its name
- # Ex. ["One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight"]
- #------------------------------------------------------------------------------
- DESKTOP_NAMES = ["[ 1 ]","[ 2 ]","[ 3 ]","[ 4 ]"]
- #------------------------------------------------------------------------------
- # Panel Layout: -----------------------------------
- # [ 1 ][ 2 ][ 3 ][ 4 ][ 5 ]
- # -----------------------------------
- #
- # The panel layout is split into 5 sections numbered 1, 2, 3, 4 or 5 as shown
- # in the diagram above. Each of the following objects can be enabled by
- # assigning it a section number or disabled by assigning it 0:
- #------------------------------------------------------------------------------
- DESKTOP = 1 # Desktop name section
- TASKS = 2 # Task names section
- TRAY = 4 # System tray section
- CLOCK = 5 # Clock section
- LAUNCHER = 0 # Application launcher section
- #------------------------------------------------------------------------------
- # Button Event Function Definitions
- #------------------------------------------------------------------------------
- # Left click - button 1
- # Middle click - button 2
- # Right click - button 3
- # Wheel up - button 4
- # Wheel down - button 5
- #
- # changeDesktop(x)
- # - Change Desktop: Increase or decrease the current desktop by 'x' amount
- #
- # toggleShade(task)
- # - Shade or Unshade an application
- #
- # toggleHidden()
- # - Minimize the panel to the top or bottom depending on its start location
- #
- # toggleMinimize(task, traise=1)
- # - Minimize or Unminimize an application and optionally raise it
- #
- # taskRaise(task, focus=1)
- # - Raise an application to the top of the window list and optionally focus it
- #
- # taskLower(task, focus=0)
- # - Lower an app to the bottom of the window list and optionally focus it
- #
- # taskFocus(task)
- # - Give focus to the selected application, if it has focus then minimize it
- #
- # showDesktop()
- # - Toggle between hiding and unhiding ALL applications
- #------------------------------------------------------------------------------
- #----------------------------------
- def desktopButtonEvent(pp, button):
- #----------------------------------
- """ Button event handler for the panel's desktop object """
-
- if button == 1:
- pp.changeDesktop(1)
- elif button == 2:
- pass
- #pp.changeDesktop(-1)
- elif button == 3:
- pp.showDesktop()
- #pp.changeDesktop(-1)
- elif button == 4:
- pp.toggleMinimize(task) # or pp.toggleShade(task)
- # pass
- #pp.changeDesktop(1)
- elif button == 5:
- pp.toggleMinimize(task) # or pp.toggleShade(task)
- # pass
- #pp.changeDesktop(-1)
-
- #--------------------------------
- def clockButtonEvent(pp, button):
- #--------------------------------
- """ Button event handler for the panel's clock object """
-
- if button == 1:
- pass
- #os.system("xclock &")
- elif button == 2:
- pass
- elif button == 3:
- pp.toggleHidden()
- elif button == 4:
- # pp.showDesktop()
- os.system("amixer -q set PCM 2+ unmute")
- elif button == 5:
- #pp.showDesktop()
- os.system("amixer -q set PCM 2- unmute")
-
- #--------------------------------
- def panelButtonEvent(pp, button):
- #--------------------------------
- """ Button event handler for the panel with no active tasks """
-
- if button == 1:
- pass
- elif button == 2:
- pass
- elif button == 3:
- pass
- elif button == 4:
- pass
- elif button == 5:
- pass
-
- #-------------------------------------
- def taskButtonEvent(pp, button, task):
- #-------------------------------------
- """ Button event handler for the panel's tasks """
-
- if button == 1:
- pp.taskFocus(task)
- elif button == 2:
- # Destroy the application
- task.obj.destroy()
- elif button == 3:
- # Ex. - XMMS doesn't shade, so we want to minimize it instead and
- # still use button 3 to shade other applications
- # task.tclass is the tasks class name (WM_CLASS)
- if "xmms" in task.tclass:
- pp.toggleMinimize(task)
- else:
- pp.toggleShade(task)
- elif button == 4:
- pp.taskRaise(task, focus=1)
- elif button == 5:
- pp.taskLower(task, focus=0)
复制代码
openbox 其它设置
- mv dot-config-openbox.7z.bz2 dot-config-openbox.7z && 7z x dot-config-openbox.7z
- mkdir ~/.config && cp dot-config-openbox ~/.config/openbox
复制代码
安装的字体
- emerge dejavu wqy-bitmapfont
复制代码
PS: 不要使用最新的3.6 fcitx,因为它在我上面提到的环境中测试有bug。
3.5很好
连pypanel也不要了!! |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|