我的桌面系统配置 -- peter.chen

仅供存放个人的配置文件,不要在本版发问。
回复
头像
petrele.chen
帖子: 261
注册时间: 2008-09-11 17:41

我的桌面系统配置 -- peter.chen

#1

帖子 petrele.chen » 2009-05-27 16:18

先出来的是自己的软件分类,以后会慢慢把所有的配置贴出来
SYSTEM:
ARCH-2009.02

SHELL:
bash

VM:
openbox
obconf
obmenu
xcompmgr
tint2

FM:
ROX

Terminal:
tilda
rxvt-unicode-256color

Monitor:
conky

Login Manager:
SLIM

editor:
vim

Image:
feh
scrot
dia
gimp

pdf viewer:
epdfview
adobe

LAPTOP:
laptop-mode-tools
pm-utils
acpid

MISC:
alock
splashy
stardict
irssi
mutt + getmail + msmtp

Office:
OOO

Network:
firefox/swiftweasel
wicd

Music:
mpd
ncmpc
gmpc
EasyTag

ACER:
acerhk
上次由 petrele.chen 在 2009-05-27 16:25,总共编辑 3 次。
Work Hard and Enjoy Life!
-P
头像
petrele.chen
帖子: 261
注册时间: 2008-09-11 17:41

Re: 我的桌面系统配置 -- peter.chen

#2

帖子 petrele.chen » 2009-05-27 16:19

这一楼是Shell相关的

有人说Zsh比较好,但我觉得Zsh太难配置,而且用惯了Bash不想改,就这样吧

代码: 全选

[ -z "$PS1" ] && return

# shell completion #{{{
if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi
# fast shellcompletion
set show-all-if-ambiguous on   # 这个似乎没有用
#}}}

export PATH="/usr/local/bin:$PATH"

# default font dir, currently only used by gnuplot
export GDFONTPATH=/home/peter/.fonts

# for OOO
export OOO_FORCE_DESKTOP=kde

# Prompt #{{{
PS1='\[\e[0;32m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\]\[\e[m\] \[\e[1;32m\]>>> \[\e[m\]'
PS2='\[\e[0;32m\]+> '
PS3='\[\e[0;32m\]+++> '
PS4='\[\e[0;32m\]+++++> '
#}}}

# some alias 

# General# {{{
eval "`dircolors -b`"
alias ls='ls --color=auto'
alias ll='ls -l -h'
alias la='ls -A'
alias lla='ls -la'
#alias l='ls -CF'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias du='du -h --max-depth=1'
alias diff='diff -aur'
alias mplayer='mplayer -shuffle'
alias download='aria2c -s 15 -m 30'
alias open='rox'
# }}}

# archlinux pacman # {{{
alias pSs='pacman -Ss'
alias pQs='pacman -Qs'
alias pQl='pacman -Ql'
alias pRn='sudo pacman -Rn'
alias pS='sudo pacman -S'
# }}}

# screen # {{{
alias email='screen -t email mutt'
alias irc='screen -t irc irssi'
alias news='screen -t news newsbeuter'
alias music='screen -t music ncmpc'
alias log='screen -t log sudo cat /var/log/everything.log | tail'
alias s='screen'
# }}}

# extract#{{{
extract () {
    if [ -f $1 ]
    then
	    case $1 in
		    *.tar.bz2)  tar xvjf $* 	;;
    		*.tar.gz) 	tar xvzf $* 	;;
	    	*.bz2) 		bunzip2 $* 	;;
    		*.rar) 		unrar x $* 	;;
	    	*.gz) 		gunzip $* 	;;
		    *.tar) 		tar xvf $* 	;;
    		*.tbz2) 	tar xvjf $* 	;;
	    	*.tgz) 		tar xvzf $* 	;;
		    *.zip) 		unzip $* 	;;
    		*.Z) 		uncompress $* 	;;
	    	*.7z) 		7z x $* 	;;
		    *) 	echo "Error: don't knwon how to extract '$1' ..." ;;
	    esac
    else
	    echo "'$1' doesn't exist ..."
    fi
}
#}}}

# colorize the man-pages#{{{
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'                           
export LESS_TERMCAP_so=$'\E[01;44;33m'                                 
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
#}}}

# for fcitx#{{{
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim
#}}}

# for ibus#{{{
#export XMODIFIERS=@im=ibus
#export GTK_IM_MODULE=ibus
#export QT_IM_MODULE=ibus 
#}}}

# ns-2#{{{
#export PATH="/home/petrele/xbox/ns-allinone-2.33/bin:/home/petrele/xbox/ns-allinone-2.33/tcl8.4.18/unix:/home/petrele/xbox/ns-allinone-2.33/tk8.4.18/unix:$PATH"

#export LD_LIBRARY_PATH="/home/petrele/xbox/ns-allinone-2.33/otcl-1.13:/home/petrele/xbox/ns-allinone-2.33/lib/:$LD_LIBRARY_PATH"
#export TCL_LIBRARY="/home/petrele/xbox/ns-allinone-2.33/tcl8.4.18/library:$TCL_LIBRARY"
#}}}

Bash完了,是rxvt-unicode-256color

为什么使用这个版本呢?它支持256色,最主要的还是它修正了字体显示的问题

以下配置放~/.Xresources或~/.Xdefaults里面都可以,记住xrdb一下

代码: 全选

!! xft settings {{{
Xft.dpi:96
Xft.antialias:true
Xft.rgba:rgb
Xft.hinting:true
Xft.hintstyle:hintslight
Xft.lcdfilter:lcddefault
! }}}

! terminal colors {{{
!
! tangoesque scheme
*background: black 
! #111111
*foreground: #babdb6
! Black (not tango) + DarkGrey
*color0:  #000000
*color8:  #555753
! DarkRed + Red
*color1:  #ff6565
*color9:  #ff8d8d
! DarkGreen + Green
*color2:  #93d44f
*color10: #c8e7a8
! DarkYellow + Yellow
*color3:  #eab93d
*color11: #ffc123
! DarkBlue + Blue
*color4:  #204a87
*color12: #3465a4
! DarkMangenta + Mangenta
*color5:  #ce5c00
*color13: #f57900
!DarkCyan + Cyan (both not tango)
*color6:  #89b6e2
*color14: #46a4ff
! LightGrey + White
*color7:  #cccccc
*color15: #ffffff
! }}}

! Xcursor
Xcursor*theme: Flatbed-Blue-Small
Xcursor.size: 22

!! IM Setup
inputMethod:xim

!! RXVT setting {{{
URxvt.termName:rxvt-unicode
URxvt.geometry: 80x24
URxvt.saveLines:3000
URxvt.cursorBlink:true
URxvt.multibyte_cursor:1
!URxvt.multichar_encoding:gb18030
URxvt.font:xft:Vera Sans YuanTi Mono:size=10
!URxvt.boldFont:xft:Vera Sans YuanTi Mono-10:Bold,xft:Vera Sans YuanTi Mono-10:Bold
!URxvt.preeditType:Root
URxvt.preeditType:OverTheSpot
!URxvt.perl-ext-common:default,tabbed
URxvt.transparent:false
URxvt.shading:40
URxvt.visualBell:false
URxvt.urgentOnBell:true
URxvt.inputMethod:fcitx
URxvt.imFont:fixed
URxvt.scrollstyle:plain
URxvt.scrollBar:false
URxvt.scrollBar_right:true

! Color Settings
!URxvt.underlineColor:yellow
!URxvt.background:black
!URxvt.foreground:white
!URxvt.colorBD:yellow
!URxvt.colorUL:green
!URxvt.cursorColor:gold
!URxvt.color0:black
!URxvt.color1:red3
!URxvt.color2:springgreen
!URxvt.color3:wheat3
!URxvt.color4:navy
!URxvt.color5:magenta4
!URxvt.color6:steelblue1
!URxvt.color7:gray85
!URxvt.color8:gray10
!URxvt.color9:orangered2
!URxvt.color10:chartreuse3
!URxvt.color11:lightgoldenrod2
!URxvt.color12:skyblue1
!URxvt.color13:pink1
!URxvt.color14:lightblue1
!! }}}


上次由 petrele.chen 在 2009-05-27 16:35,总共编辑 1 次。
Work Hard and Enjoy Life!
-P
头像
petrele.chen
帖子: 261
注册时间: 2008-09-11 17:41

Re: 我的桌面系统配置 -- peter.chen

#3

帖子 petrele.chen » 2009-05-27 16:19

先别回贴,占下一楼
Work Hard and Enjoy Life!
-P
头像
petrele.chen
帖子: 261
注册时间: 2008-09-11 17:41

Re: 我的桌面系统配置 -- peter.chen

#4

帖子 petrele.chen » 2009-05-27 16:20

先别回贴,占下一楼
Work Hard and Enjoy Life!
-P
头像
petrele.chen
帖子: 261
注册时间: 2008-09-11 17:41

Re: 我的桌面系统配置 -- peter.chen

#5

帖子 petrele.chen » 2009-05-27 16:20

先别回贴,占下一楼
Work Hard and Enjoy Life!
-P
头像
petrele.chen
帖子: 261
注册时间: 2008-09-11 17:41

Re: 我的桌面系统配置 -- peter.chen

#6

帖子 petrele.chen » 2009-05-27 16:20

先别回贴,占下一楼
Work Hard and Enjoy Life!
-P
头像
petrele.chen
帖子: 261
注册时间: 2008-09-11 17:41

Re: 我的桌面系统配置 -- peter.chen

#7

帖子 petrele.chen » 2009-05-27 16:20

先别回贴,占下一楼
Work Hard and Enjoy Life!
-P
头像
petrele.chen
帖子: 261
注册时间: 2008-09-11 17:41

Re: 我的桌面系统配置 -- peter.chen

#8

帖子 petrele.chen » 2009-05-27 16:20

够了
Work Hard and Enjoy Life!
-P
回复