发下awesome2及conky/xterm/vimrc等配置文件

仅供存放个人的配置文件,不要在本版发问。
回复
头像
bobo4548
帖子: 661
注册时间: 2007-07-17 22:52
来自: cn,shandong

发下awesome2及conky/xterm/vimrc等配置文件

#1

帖子 bobo4548 »

从8.04源安装的awesome2.0,其配置文件为:

代码: 全选

# Configuration file for awesome
# modify by bob 2010-1-6

# First physical screen
screen 0
{
    general
    {
        # Windows border size in pixel
        border = 1
        # Pixels number before collapsing window border and screen border
        snap = 3
        # Respect windows minimal geometry
        resize_hints = true
        # Opacity for unfocused windows (with xcompmgr)
        opacity_unfocused = 85
        # Should focus switching move pointer
        focus_move_pointer = false
        # Allow floating windows to be below others
        allow_lower_floats = false
        # Status bar font (Xft)
        # font = "fixed-12"
        # font = "-adobe-helvetica-medium-r-normal--*-98-*-*-*-*-*-*"
        # font = "-misc-fixed-medium-r-normal-*-18-120-100-100-c-90-iso10646-1"
        # font = "georgia-12"
        font = "wenquanyi zen hei -12"
    }
    colors
    {
        # Normal border color:#111111
        normal_border = "#191919"
        # Normal background color (statusbar):#111111
        normal_bg = "#121212"
        # Normal foreground color (statusbar):#eeeeee
        normal_fg = "#eeeeee"
        # Focused border color:#6666ff
        focus_border = "gray70"
        # Focused background color (statusbar):#6666ff
        focus_bg = "#111111"
        # Focused foreground color (statusbar):#ffffff
        focus_fg = "blue"
    }
    # Optionnal screen padding
    #padding
    #{
    #    left = 10
    #    right = 0
    #    top = 0
    #    bottom = 10
    #}

    # Statusbar position = top, bottom, left, right, off
    statusbar { position = "top" }

    tags
    {
        # Tag name
        # Tag default layout = tile, tileleft, max, floating
        # Number of master windows on this tag:nmaster = 2
        # ncol = 2;
        # Master width factor,0 < mwfact < 1
        # 

        tag 1:Main { layout = "tile" }
        tag 2:Web { mwfact = 0.6 layout = "tile" }
        tag 3:Va { layout = "floating" }
    }

    layouts
    {
        # Available layout.Symbol drawn in statusbar for this layout
        layout tile { symbol = "Tile" }
        layout tileleft { symbol = "tileleft" }
        layout max { symbol = "Max" }
        layout floating { symbol = "float" }
    }
}

rules
{
    rule
    {
        # Programe name (regexp)
        name = "mc"
        # Program tags (regexp)
        tags = "3:Va"
        # Should we set this program to floating mode?
        float = true
        # Physical screen to map this windows to
        screen = 0
    }
}

# Mouse buttons bindings
mouse
{
    # For click on tag,command = tag_viewnext,tag_viewprev,tag_view,client_tag,client_toggletag
    tag {  button = "1" command = "tag_view" }
    tag { button = "1" modkey = {"Mod4"} command = "client_tag" }
    tag { button = "3" modkey = {"Mod4"} command = "client_toggletag" }
    
    # For click on layout symbol
    layout { button = "1" command = "tag_setlayout" arg = "+1" }
 
    # For click on root window
    root { button = "3" command = "spawn" arg = "exec xterm" }
 
    # For click on client windows
    client { modkey = {"Mod4"} button = "1" command = "client_movemouse" }
    client { modkey = {"Mod4"} button = "2" command = "client_zoom" }
    client { modkey = {"Mod4"} button = "3" command = "client_resizemouse" }
}

# Keys bindings
# Mod4=>Menu is good work, then Mod4=>Super_L
keys
{
    # key { modkey = {"Mod4", "Shift"} key = "c" command = "client_kill" } 
    key { modkey = {"Mod4"} key = "Return" command = "spawn" arg = "exec xterm" }
    key { modkey = {"Mod1"} key = "F4" command = "client_kill" }
    key { modkey = {"Mod1"} key = "F1" command = "togglebar" }
    key { modkey = {"Mod4"} key = "o" command = "spawn" arg = "exec opera" }
    key { modkey = {"Mod4"} key = "p" command = "spawn" arg = "exec pcmanfm"}
    key { modkey = {"Mod1"} key = "m" command = "spawn" arg = "exec xterm -geometry 110*45 -e mc"}
    key { modkey = {"Mod4"} key = "q" command = "quit" }
    key { modkey = {"Mod4"} key = "j"  command = "client_focusnext" }
    key { modkey = {"Mod4"} key = "k"  command = "client_swapnext" }
    key { modkey = {"Mod4"} key = "Left" command = "tag_viewprev" }
    key { modkey = {"Mod4"} key = "Right" command = "tag_viewnext" }
    key { modkey = {"Mod4"} key = "Up" command = "client_focusprev" }
    key { modkey = {"Mod4"} key = "Down" command = "client_focusnext" }

    key { modkey = {"Mod4"} key = "m" command = "client_togglemax" }
    # key { modkey = {"Mod4"} key = "Return" command = "client_zoom" }
    key { modkey = {"Mod4", "Control"} key = "r" command = "reloadconfig" }

    # the follow lines is same, only key=0-9,arg=1-9
    # key { modkey = {"Mod4"} key = "0" command = "tag_view" }
    # key { modkey = {"Mod4"} key = "1" command = "tag_view" arg = "1" }
       
    # the follow lines is same ,only key=0-9 ,arg=1-9
    # key { modkey = {"Mod4", "Control"} key = "0" command = "tag_toggleview" }
    
    # the follow lines is same,only key=0-9,arg=1-9
    # key { modkey = {"Mod4", "Shift"} key = "0" command = "client_tag" }
    # key { modkey = {"Mod4", "Shift"} key = "1" command = "client_tag" arg = "1" }
  
    # the follow lines is same,only key=0-9,arg=1-9
    # key { modkey = {"Mod4", "Shift", "Control"} key = "1" command = "client_toggletag" arg = "1" }
    
}
上次由 bobo4548 在 2010-02-18 22:05,总共编辑 1 次。
头像
bobo4548
帖子: 661
注册时间: 2007-07-17 22:52
来自: cn,shandong

Re: 发下我的awesome2及conky配置文件

#2

帖子 bobo4548 »

conky的配置文件

代码: 全选

# conky configuration
# edited by [email protected]
# edited by Bobo.sh,2008-11-12
#                 Email:[email protected]

# set to yes if you want Conky to be forked in the background
background no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*


# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont Bitstream Vera Sans Mono:size=8
#xftfont Terminus:size=8
xftfont Monospace:size=8

# Text alpha when using Xft
xftalpha 0.8

# Print everything to console?
# out_to_console no

# mail spool
#mail_spool $MAIL

# Update interval in seconds
update_interval 2.0

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window no

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 1000 5

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 8

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white

# Text alignment, other possible values are commented
alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 450
gap_y 1

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no


# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer yes
#Note: doesn't work in conky 1.2 =(

#   mldonkey_hostname     Hostname for mldonkey stuff, defaults to localhost
#   mldonkey_port         Mldonkey port, 4001 default
#   mldonkey_login        Mldonkey login, default none
#   mldonkey_password     Mldonkey password, default none


# Possible variables to be used:
#
#      Variable         Arguments                  Description                

# 	addr              (interface)   IP address for an interface
# 	acpiacadapter                   ACPI ac adapter state.                   
# 	acpifan                         ACPI fan state                           
# 	acpitemp                        ACPI temperature.                        
# 	adt746xcpu                      CPU temperature from therm_adt746x       
# 	adt746xfan                      Fan speed from therm_adt746x             
# 	alignr            (num)         Right-justify text, with space of N
# 	alignc                          Align text to centre
# 	battery           (num)         Remaining capasity in ACPI or APM        
# 					battery. ACPI battery number can be      
# 					given as argument (default is BAT0).     
# 	buffers                         Amount of memory buffered                
# 	cached                          Amount of memory cached                  
# 	color             (color)       Change drawing color to color            
# 	cpu                             CPU usage in percents                    
# 	cpubar            (height)      Bar that shows CPU usage, height is      
# 					bar's height in pixels                 
# 	cpugraph          (height),(width) (gradient colour 1) (gradient colour 2)
# 					CPU usage graph, with optional colours in hex,
# 					minus the #.
# 	downspeed         net           Download speed in kilobytes              
# 	downspeedf        net           Download speed in kilobytes with one     
# 					decimal                                  
# 	downspeedgraph    net (height),(width) (gradient colour 1) (gradient colour 2)
# 					Download speed graph, colours defined in
# 					hex, minus the #.
# 	exec              shell command Executes a shell command and displays    
# 					the output in conky. warning: this      
# 					takes a lot more resources than other    
# 					variables. I'd recommend coding wanted   
# 					behaviour in C and posting a patch :-).  
# 	execbar           shell command Same as exec, except if the first value
# 					return is a value between 0-100, it
# 					will use that number for a bar.
# 					The size for the bar is currently fixed,
# 					but that may change in the future.
# 	execgraph         shell command Same as execbar, but graphs values
# 	execi             interval, shell command
#  					Same as exec but with specific interval. 
# 					Interval can't be less than              
# 					update_interval in configuration.        
#	font		  font		Specify a different font.  Only applies
#					to one line.
# 	fs_bar            (height), (fs)Bar that shows how much space is used on 
# 					a file system. height is the height in   
# 					pixels. fs is any file on that file      
# 					system.                                  
# 	fs_free           (fs)          Free space on a file system available    
# 					for users.                               
# 	fs_free_perc      (fs)          Free percentage of space on a file       
# 					system available for users.              
# 	fs_size           (fs)          File system size                         
# 	fs_used           (fs)          File system used space                   
# 	hr                (height)      Horizontal line, height is the height in 
# 					pixels                                   
# 	i2c               (dev), type, n  I2C sensor from sysfs (Linux 2.6). dev   
# 					may be omitted if you have only one I2C  
# 					device. type is either in (or vol)       
# 					meaning voltage, fan meaning fan or
# 					temp/tempf (first in C, second in F)
# 					meaning temperature. n is number of the  
# 					sensor. See /sys/bus/i2c/devices/ on     
# 					your local computer.                     
# 	if_running        (process)     if PROCESS is running, display
# 					everything if_running and the matching $endif
# 	if_existing       (file)        if FILE exists, display everything between
# 					if_existing and the matching $endif
# 	if_mounted        (mountpoint)  if MOUNTPOINT is mounted, display everything between
# 					if_mounted and the matching $endif
# 	else                            Text to show if any of the above are not true
# 	kernel                          Kernel version                          
# 	linkstatus        (interface)   Get the link status for wireless connections
# 	loadavg           (1), (2), (3) System load average, 1 is for past 1     
# 					minute, 2 for past 5 minutes and 3 for   
# 					past 15 minutes.                         
# 	machine                         Machine, i686 for example                
# 	mails                           Mail count in mail spool. You can use    
# 					program like fetchmail to get mails from 
# 					some server using your favourite         
# 					protocol. See also new_mails.            
# 	mem                             Amount of memory in use                  
# 	membar            (height)      Bar that shows amount of memory in use   
# 	memmax                          Total amount of memory                   
# 	memperc                         Percentage of memory in use
# 	
# 	metar_ob_time
# 	metar_temp
# 	metar_tempf                     Temp in F
# 	metar_windchill
# 	metar_dew_point                 There are a bunch of these
# 	metar_rh                        and they are self-explanatory
# 	metar_windspeed
# 	metar_winddir
# 	metar_swinddir
# 	metar_cloud
# 	metar_u2d_time
# 	
# 	ml_upload_counter               total session upload in mb
# 	ml_download_counter             total session download in mb
# 	ml_nshared_files                number of shared files
# 	ml_shared_counter               total session shared in mb, buggy
# 					in some mldonkey versions
# 	ml_tcp_upload_rate              tcp upload rate in kb/s
# 	ml_tcp_download_rate            tcp download rate in kb/s
# 	ml_udp_upload_rate              udp upload rate in kb/s
# 	ml_udp_download_rate            udp download rate in kb/s
# 	ml_ndownloaded_files            number of completed files
# 	ml_ndownloading_files           number of downloading files
# 	
# 	mpd_artist			Artist in current MPD song
# 					(must be enabled at compile)
# 	mpd_album			Album in current MPD song
# 	mpd_bar           (height)      Bar of mpd's progress
# 	mpd_bitrate                     Bitrate of current song
# 	mpd_status                      Playing, stopped, et cetera.
# 	mpd_title			Title of current MPD song
# 	mpd_vol				MPD's volume
# 	mpd_elapsed                     Song's elapsed time
# 	mpd_length                      Song's length
# 	mpd_percent                     Percent of song's progress
# 	new_mails                       Unread mail count in mail spool.         
# 	nodename                        Hostname                                 
# 	outlinecolor      (color)       Change outline color                     
# 	pre_exec          shell command Executes a shell command one time before 
# 					conky displays anything and puts output 
# 					as text.                                 
# 	processes                       Total processes (sleeping and running)   
# 	running_processes               Running processes (not sleeping),        
# 					requires Linux 2.6                       
# 	shadecolor        (color)       Change shading color                     
# 	stippled_hr       (space),      Stippled (dashed) horizontal line        
# 			(height)        
# 	swapbar           (height)      Bar that shows amount of swap in use     
# 	swap                            Amount of swap in use                    
# 	swapmax                         Total amount of swap                     
# 	swapperc                        Percentage of swap in use                
# 	sysname                         System name, Linux for example           
# 	offset            pixels        Move text over by N pixels
# 	tail              logfile, lines (interval)
# 					Displays last N lines of supplied text
# 					text file.  If interval is not supplied,
# 					Conky assumes 2x Conky's interval.
# 					Max of 30 lines.
# 					Max of 30 lines can be displayed.
# 	time              (format)      Local time, see man strftime to get more 
# 					information about format                 
# 	totaldown         net           Total download, overflows at 4 GB on     
# 					Linux with 32-bit arch and there doesn't 
# 					seem to be a way to know how many times  
# 					it has already done that before conky   
# 					has started.                            
# 	top               type, num     This takes arguments in the form:
# 					top <name> <number>
# 					Basically, processes are ranked from 
# 					highest to lowest in terms of cpu
# 					usage, which is what <num> represents.
# 					The types are: "name", "pid", "cpu", and
# 					"mem".
# 					There can be a max of 10 processes listed.
# 	top_mem           type, num     Same as top, except sorted by mem usage
# 					instead of cpu
# 	totalup           net           Total upload, this one too, may overflow 
# 	updates                         Number of updates (for debugging)        
# 	upspeed           net           Upload speed in kilobytes                
# 	upspeedf          net           Upload speed in kilobytes with one       
# 					decimal                                  
# 	upspeedgraph      net (height),(width)  (gradient colour 1) (gradient colour 2)
# 					Upload speed graph, colours defined in
# 					hex, minus the #.
# 	uptime                          Uptime                                   
# 	uptime_short                    Uptime in a shorter format               
# 	
# 	seti_prog                       Seti@home current progress
# 	seti_progbar      (height)      Seti@home current progress bar
# 	seti_credit                     Seti@hoome total user credit


# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument

# stuff after 'TEXT' will be formatted on screen
# made by bobo 2008-12-26
# 
# ${color slate grey}/var/log/messages:
# ${color}${exec tail -n5 /var/log/messages}

TEXT




${offset 240}${color green}${font georgia:size=10}${time %A, } ${color 
}${time %e %B %G} 
${offset 240}${color red }(Weekday: ${time %u,} Date: ${time  %G - %m - %e })
${offset 240}${color slate grey}${font georgia:size=20}${time %H :%M}
${offset 240}${color slate grey}${font }UpTime: ${color }$uptime
${offset 240}${color slate grey}Kern:${color }$kernel
${offset 240}${color red}${exec whoami}@$nodename
${offset 240}${color red}$sysname on $machine
${offset 240}${color slate grey}Ubuntu Ver: ${color }${exec lsb_release -d -s } 
${offset 240}${color slate grey}Ubuntu Code:${color }${exec lsb_release -c -s}
${offset 240}${color slate grey}CPU:${color } $cpu% ${acpitemp}C
${offset 240}${color green}${cpugraph 20,130 000000 ffffff}
${offset 240}${color slate grey}Load: ${color }$loadavg
${offset 240}${color slate grey}Processes: ${color }$processes  
${offset 240}${color slate grey}Running:   ${color }$running_processes

${offset 240}${color slate grey}Highest CPU:
${offset 240}${color #ddaa00} ${top name 1}${top_mem cpu 1}
${offset 240}${color lightgrey} ${top name 2}${top cpu 2}
${offset 240}${color lightgrey} ${top name 3}${top cpu 3}
${offset 240}${color lightgrey} ${top name 4}${top cpu 4}

${offset 240}${color slate grey}Highest MEM:
${offset 240}${color #ddaa00} ${top_mem name 1}${top_mem mem 1}
${offset 240}${color lightgrey} ${top_mem name 2}${top_mem mem 2}
${offset 240}${color lightgrey} ${top_mem name 3}${top_mem mem 3}
${offset 240}${color lightgrey} ${top_mem name 4}${top_mem mem 4}

${offset 240}${color slate grey}MEM:  ${color } $memperc% $mem/$memmax
${offset 240}${color red}${membar 3,100}
${offset 240}${color slate grey}SWAP: ${color }$swapperc% $swap/$swapmax
${offset 240}${color slate grey}${swapbar 3,100}

${offset 240}${color slate grey}ROOT:    ${color }${fs_free /}/${fs_size /}
${offset 240}${fs_bar 3,100 /}
${offset 240}${color slate grey}HOME:  ${color }${fs_free /home}/${fs_size /home}
${offset 240}${color #ddaa00}${fs_bar 3,100 /home}
${offset 240}${color slate grey}SLACK:  ${color }${fs_free /mnt/slack}/${fs_size /mnt/slack}
${offset 240}${color yellow}${fs_bar 3,100 /mnt/slack}
${offset 240}${color slate grey}NET: 
${offset 240}${color}Up: ${color }${upspeed eth0} k/s
${offset 240}${upspeedgraph eth0 20,130 000000 ffffff}
${offset 240}${color}Down: ${color }${downspeed eth0}k/s${color}
${offset 240}${downspeedgraph eth0 20,130 000000 ffffff}

头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 发下我的awesome2及conky配置文件

#3

帖子 eexpress »

为什么awesome,还看桌面呢
● 鸣学
头像
bobo4548
帖子: 661
注册时间: 2007-07-17 22:52
来自: cn,shandong

Re: 发下我的awesome2及conky配置文件

#4

帖子 bobo4548 »

因为时老板本的awesome,没有工具栏中的时钟显示,所以一直用conky拉
头像
bobo4548
帖子: 661
注册时间: 2007-07-17 22:52
来自: cn,shandong

Re: 发下我的awesome2及conky配置文件

#5

帖子 bobo4548 »

我曾经的TWM配置文件:

代码: 全选

# twmrc

AutoRelativeResize
decoratetransients
NoGrabserver
NoDefaults
NoHighLight
NoTitleHighlight
Nomenushadows

randomplacement
restartpreviousstate

# font settings
#TitleFont "-adobe-helvetica-bold-r-normal--*-90-*-*-*-*-*-*"
#TitleFont "-*-ar pl ukai cn-*-*-*-*-*-*-*-*-*-*-*-*"
#TitleFont "-*-gothic-*-*-*-*-*-120-75-*-*-*-*-*"
TitleFont "-adobe-helvetica-medium-r-normal--*-98-*-*-*-*-*-*"
ResizeFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
MenuFont "-adobe-helvetica-medium-r-normal--*-98-*-*-*-*-*-*"
#menufont "-*-ar pl ukai cn-*-*-*-*-*-120-*-*-*-*-*-*"

IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*"

borderwidth 0
opaquemove

# no border
clientborderwidth
# change title style
squeezetitle
# change button size
buttonindent 1

lefttitlebutton "/usr/X11R6/lib/X11/twm/resize" = f.menu "winop" 
RightTitleButton "/usr/X11R6/lib/X11/twm/icon" = f.iconify
RightTitleButton "/usr/X11R6/lib/X11/twm/fullsize" = f.fullzoom
RightTitleButton "/usr/X11R6/lib/X11/twm/close" = f.delete

color
{
      BorderColor "blue"
      BorderTileForeground "yellow"
      BorderTileBackground "black"
      TitleForeground "green"
      TitleBackground "rgb:6/6/6"

      MenuForeground "white"
      MenuBackground "rgb:4/4/4"

      MenuTitleForeground "white"
      MenuTitleBackground "CornFlowerBlue"
      MenuShadowColor "black"
      IconForeground "white"
      IconBackground "black"
      IconBorderColor "green"
      IconManagerForeground "yellow"
      IconManagerBackground "rgb:5/5/5"
}

notitle
{
         "TWM Icon Manager"
         "QQ"
}
IconifyByUnmapping
IconRegion      "600x200-200+0" NORTH WEST 25 25
IconManagerGeometry "150x20-10+0"
ShowIconManager
SortIconManager
AutoRaise{"TWM Icon Manager"}
			
# key bindings ,by bob 2009-11-21
MoveDelta 3
Function "move-or-lower" { f.move f.deltastop f.lower }
Function "move-or-raise" { f.move f.deltastop f.raise }
Function "nomove-or-raise" { f.deltastop f.raise }
Function "move-or-iconify" { f.move f.deltastop f.iconify }

"Tab" = m : all : f.circledown

button3 = : window | frame : f.hideiconmgr
button3 = : title :f.lower
button3 = : icon : f.menu "icon"

button1 = : root : f.menu "start"
button1 = : title : f.function "move-or-raise"
button1 = : iconmgr : f.iconify

"m" = s : root : f.menu "start"

menu "start"
{
         "Ubuntu" ("yellow":"blue")   f.title
         "Application"              f.menu "app"
         "Office"                   f.menu "office"
         "Network"                  f.menu "network"
         "Tool"                     f.menu "tool"
         "Toys"                     f.menu "toys"
         ""                         f.nop
	 “"PCman"”		f.exec "pcmanfm &"
         "Xterm"                    f.exec "xterm &"
         "Xkill"                    f.exec "xkill &"
         "Help"                     f.menu "help"
         ""                         f.nop
         "IconMgr"                  f.menu "iconmgr"
         "WinMgr"                   f.menu "wm"
         "WinOP"  f.menu "winop"
         "TWM"                      f.menu "twm"
	 ""			    f.nop
         "Exit" ("white":"red")     f.menu "exit"
}
menu "icon"
{
    "Restore"           f.iconify
    "Close"             f.delete
}
menu "help"
{
      "Info"    f.exec  "x-terminal-emulator  -T \"Info\" -e sh -c \"info\" &"
      "Xman"    f.exec  "xman &"
}
menu "toys"
{
      "Oclock"                f.exec  "oclock &"
      "Xclock (analog)"       f.exec  "xclock -analog &"
      "Xclock (digital)"      f.exec  "xclock -digital -update 1 &"
      "Xeyes"                 f.exec  "xeyes &"
      "Xlogo"                 f.exec  "xlogo &"
}
menu "winop"
{
      "IconMgr"	        f.showiconmgr
      "Move"            f.move
      "Force Move"      f.forcemove
      "Up"              f.raise
      "Down"            f.lower
      ""                f.nop
      "Resize"          f.resize
      "Max/Restore"     f.fullzoom
      "Min"             f.iconify
      ""                f.nop
      "ID"              f.identify
      "Redraw"          f.refresh
      "Close" ("white":"red") f.delete
}
menu "tool"
{
      "Nano"      f.exec "x-terminal-emulator  -T \"Nano\" -e sh -c \"/bin/nano\" &"
	"terminal" f.exec "x-terminal-emulator &"
      "Top"                      f.exec "xterm  -T \"Top\" -e sh -c \"/usr/bin/top\" &"
      "Conky"                    f.exec "conky &"
      "Xedit"     f.exec "xedit &"
      "FileMgr"   f.exec "/usr/bin/xarchiver &"
      "X-Terminal as root (GKsu)"    f.exec  "/usr/bin/gksu -u root /usr/bin/x-terminal-emulator &"
      "XTerm (Unicode)" f.exec  "uxterm &"
      "Calculator"      f.exec "/usr/bin/xcalc &"
      "BitmapEidt"      f.exec "/usr/bin/bitmap &"
}
menu "wm"
{
         "Openbox"         f.startwm "/usr/bin/openbox"
#         "Jwm"             f.startwm "/usr/bin/jwm"  
}
menu "office"
{
        
}
menu "network"
{
         "Opera"  f.exec "env lang=zh_cn.utf-8 opera &"
         "QQ"     f.exec "/usr/bin/QQ &"
         "Skype"  f.exec "skype &"
         "aMSN"   f.exec "amsn &"
         "Pidgin" f.exec "pidgin &"
      "Xbiff"     f.exec "xbiff &"
}
menu "app"
{
         "Pcmanfm"         f.exec "pcmanfm &"
         "Leafpad"         f.exec "leafpad &"
	 "BUM"		F.EXEC "gksu bum &"
}
menu "iconmgr"
{
         "Show"   f.showiconmgr
         "Hide"   f.hideiconmgr
}
menu "twm"
{
         "TWM" f.title
         "Restart"         f.restart
         "Reconfigure"     f.twmrc
         "Version"         f.version
}
menu "exit"
{
         "Sure ?" ("white":"red")   f.title
         "No"     f.nop
         "Yes"    f.quit
}
头像
bobo4548
帖子: 661
注册时间: 2007-07-17 22:52
来自: cn,shandong

Re: 发下我的awesome2及conky配置文件

#6

帖子 bobo4548 »

再发下刚借鉴其他高手设置后的.vimrc,越来越感觉vim真是很强大,但也出现了点问题,那就是用9.1alternative盘安装的命令行,后更新源上网后安装的x-system-core/awesome等,在安装vim过程中怎么也找不到vim-full,只好安装vim-gnome,但scheme没有能够装上,好在可以使用拉,没有其他要求只要能够在其他程序交换文字中使用剪贴板等功能就好阿!
.vimrc

代码: 全选

" by bob 2010-2-7
set nocompatible
set showmode
set showcmd
set ruler
set history=50
set cmdheight=2
set background=dark
syntax on
set mouse=a
colorscheme mine

" add the mouse line
set cursorline      " 增加鼠标水平线
set cursorcolumn    " 增加鼠标直线

" 启动时不显示援助索马里儿童的提示
set shortmess=atI

" 状态行颜色
highlight StatusLine guifg=SlateBlue guibg=Yellow
highlight StatusLineNC guifg=Gray guibg=White

" 不要闪烁
set novisualbell

" 状态行显示内容(包括文件类型和解码)
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%l,%v][%p%%]\ %{strftime(\"%d/%m/%y\ -\ %H:%M\")}

" 总是显示状态行
set laststatus=2
头像
bobo4548
帖子: 661
注册时间: 2007-07-17 22:52
来自: cn,shandong

Re: 发下我的awesome2及conky配置文件

#7

帖子 bobo4548 »

借鉴后修改的.Xresources文件

代码: 全选

! update this file,use 'sudo xrdb -merge ~/.Xresources' 
!XTerm config

XTerm*locale: true

XTerm*fontMenu*fontdefault*Label: Default
  XTerm*font: -misc-fixed-medium-r-normal-*-18-120-100-100-c-90-iso10646-1
  XTerm*wideFont: -misc-fixed-medium-r-normal-*-18-120-100-100-c-180-iso10646-1
!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
!mouse selecting to copy, ctrl-v to paste
!Ctrl p to print screen content to file
XTerm*VT100.Translations: #override \
    Ctrl <KeyPress> V: insert-selection(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\
    <BtnUp>: select-end(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\
    Ctrl <KeyPress> P: print() \n
!-- 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


XTerm.*.geometry:85x35+48+50
!XTerm*scrollBar: True
XTerm*background: black
XTerm*foreground: gray90
XTerm*scrollbar: yes
头像
bobo4548
帖子: 661
注册时间: 2007-07-17 22:52
来自: cn,shandong

Re: 发下awesome2及conky/xterm/vimrc等配置文件

#8

帖子 bobo4548 »

在.vimrc文件中加入编码支持,在显示一些中文文档时就不会乱码啦!

代码: 全选

" 设定默认解码
set fenc=utf-8
set fencs=utf-8,usc-bom,euc-jp,gb18030,gbk,gb2312,cp936
头像
bobo4548
帖子: 661
注册时间: 2007-07-17 22:52
来自: cn,shandong

Re: 发下awesome2及conky/xterm/vimrc等配置文件

#9

帖子 bobo4548 »

小企鹅输入法配置文件:

代码: 全选

[程序]
显示字体(中)=WenQuanYi Bitmap Song
# R PL ShanHeiSun Uni
显示字体(英)=Courier New
显示字体大小=14
主窗口字体大小=12
字体区域=zh_CN.UTF-8
使用粗体=1
使用托盘图标=0
是否使用AA字体=1
使用DBus接口=0

[输出]
数字后跟半角符号=1
Enter键行为=2
分号键行为=2
大写字母输入英文=1
转换英文中的标点=1
联想方式禁止翻页=1

[界面]
候选词个数=8
主窗口使用3D界面=0
输入条使用3D界面=0
主窗口隐藏模式=1
显示虚拟键盘=1
输入条是否居中=0
首次显示输入条=1
#输入条固定宽度(仅适用于码表输入法),0表示不固定宽度
输入条固定宽度=0
输入条偏移量X=0
输入条偏移量Y=12
序号后加点=1
显示打字速度=1
显示版本=1
光标色=255 255 255
主窗口背景色=46 46 46
主窗口线条色=203 202 186
主窗口输入法名称色=153 153 153 102 159 66 56 134 230
输入窗背景色=255 255 255
输入窗提示色=2 89 196
输入窗用户输入色=255 0 132
输入窗序号色=0 66 200
输入窗第一个候选字色=0 99 200
#该颜色值只用于拼音中的用户自造词
输入窗用户词组色=0 99 200
输入窗提示编码色=255 0 132
#五笔、拼音的单字/系统词组均使用该颜色
输入窗其它文本色=56 134 230
输入窗线条色=203 202 186
输入窗箭头色=193 227 151
虚拟键盘窗背景色=220 220 220
虚拟键盘窗字母色=80 0 0
虚拟键盘窗符号色=0 0 0

# 除了“中英文快速切换键”外,其它的热键均可设置为两个,中间用空格分隔
[热键]
打开/关闭输入法=CTRL_SPACE
# 中英文快速切换键 可以设置为L_CTRL R_CTRL L_SHIFT R_SHIFT L_SUPER R_SUPER
中英文快速切换键=L_CTRL
双击中英文切换=0
击键时间间隔=250
光标跟随=CTRL_K
隐藏主窗口=CTRL_ALT_H
切换虚拟键盘=CTRL_ALT_K
GBK支持=CTRL_M
GBK繁体切换键=CTRL_ALT_F
联想=CTRL_L
反查拼音=CTRL_ALT_E
全半角=SHIFT_SPACE
中文标点=ALT_SPACE
上一页=-
下一页==
第二三候选词选择键=SHIFT
保存词库=CTRL_ALT_S
记录模式=CTRL_ALT_J

[输入法]
使用拼音=1
拼音名称=智能拼音
使用双拼=1
双拼名称=智能双拼
默认双拼方案=自然码
使用区位=1
区位名称=区位
使用码表=1
提示词库中的词组=1
其他输入法=

[拼音]
使用全拼=0
拼音自动组词=1
保存自动组词=0
增加拼音常用字=CTRL_8
删除拼音常用字=CTRL_7
删除拼音用户词组=CTRL_DELETE
# 拼音以词定字键,等号后面紧接键,不要有空格
拼音以词定字键=[]
# 重码调整方式说明:0-->不调整  1-->快速调整  2-->按频率调整
拼音单字重码调整方式=2
拼音词组重码调整方式=1
拼音常用词重码调整方式=0
模糊an和ang=0
模糊en和eng=0
模糊ian和iang=0
模糊in和ing=0
模糊ou和u=0
模糊uan和uang=0
模糊c和ch=0
模糊f和h=0
模糊l和n=0
模糊s和sh=0
模糊z和zh=0
头像
bobo4548
帖子: 661
注册时间: 2007-07-17 22:52
来自: cn,shandong

Re: 发下awesome2及conky/xterm/vimrc等配置文件

#10

帖子 bobo4548 »

2010-5-16后修改的.Xresources文件,其内容是

代码: 全选

! update this file,use 'sudo xrdb -merge ~/.Xresources' 
!XTerm config

XTerm*locale: true
xterm.utf8:     true
xterm*utf8Title: true
xterm*fontMenu*fontdefault*Label: Default
xterm*faceName: Monaco:antialias=True:pixelsize=15
!xterm*faceName: monofur:antialias=True:pixelsize=20
!xter*boldFont: DejaVu Sans Mono:style=Bold:pixelsize=15
xterm*faceNameDoublesize: wenquanyi bitmap song:pixelsize=16:antialias=True
xterm*xftAntialias: true
xterm*cjkWidth:false 
!XTerm*fontMenu*fontdefault*Label: Default
!XTerm*font: -misc-fixed-medium-r-normal-*-18-120-100-100-c-90-iso10646-1
!XTerm*wideFont: -misc-fixed-medium-r-normal-*-18-120-100-100-c-180-iso10646-1

!XTerm.vt100.faceName: DejaVu Sans Mono:antialias=True:pixelsize=12
!XTerm.vt100.faceNameDoublesize: Droid Sans Fallback:antialias=True:pixelsize=14
!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
!mouse selecting to copy, ctrl-v to paste
!Ctrl p to print screen content to file
XTerm*VT100.Translations: #override \
    Ctrl <KeyPress> V: insert-selection(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\
    <BtnUp>: select-end(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\
    Ctrl <KeyPress> P: print() \n
!-- 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


XTerm.*.geometry:85x35+48+50
!XTerm*scrollBar: True
XTerm*background: black
XTerm*foreground: gray90
XTerm*scrollbar: yes
头像
bobo4548
帖子: 661
注册时间: 2007-07-17 22:52
来自: cn,shandong

Re: 发下awesome2及conky/xterm/vimrc等配置文件

#11

帖子 bobo4548 »

fcitx配置文件存放于

代码: 全选

~/.config/fcitx/config
头像
bobo4548
帖子: 661
注册时间: 2007-07-17 22:52
来自: cn,shandong

Re: 发下awesome2及conky/xterm/vimrc等配置文件

#12

帖子 bobo4548 »

fcitx还需要把tables.conf文件放在上面的目录中,用来定制其他输入码表!!
回复