HyJune的专栏

Linux From Scratch

  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  10 随笔 :: 11 文章 :: 6 评论 :: 0 Trackbacks

1. 安装:

sudo apt-get install rxvt-unicode

2. 配置文件 ~/.Xresource

!!================================================================
!! 设置 Xftp.dpi(字体分辨率)
!!==================================================================
Xft.dpi: 
96
Xft.hinting: none

!!==================================================================
!! RXVT-unicode setting
!!==================================================================
!Color
URxvt.background:#213a5e
URxvt.foreground:wheat
URxvt.colorBD:yellow
URxvt.colorUL:Green
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:SkyBlue3
URxvt.color10:chartreuse3
URxvt.color11:lightgoldenrod2
!URxvt.color12:SkyBlue1
URxvt.color13:pink1
URxvt.color14:lightblue1
URxvt.color15:#dbeff9
URxvt.color4:SkyBlue1          #重新指定ansi的蓝色和背景冲突了
URxvt.color12:#BFE1FF          #重新指定ansi的高亮蓝色
URxvt.inheritPixmap:False

!fonts
URxvt.fontlist:xft:stxihei:pixelsize
=14
URxvt.font: xft:DejaVu Sans YuanTi Mono
-12,xft:Microsoft Yahei-10
URxvt.boldFont: xft:DejaVu Sans YuanTi Mono
-12:Bold,xft:Microsoft Yahei-10:Bold

!frame
URxvt.scrollBar:True
URxvt.scrollBar_left:True
URxvt.scrollstyle:next
URxvt.scrollBar_floating:False
URxvt.scrollColor:#
999999


URxvt.saveLines:
3000          #屏幕缓冲行数

URxvt.preeditType:Root
URxvt.transparency:
255 



!!==================================================================
!! Emacs setting
!!==================================================================
Emacs.FontBackend: xft
Emacs.Font:DejaVu Sans YuanTi Mono
-10
Emacs.Foreground: Wheat
Emacs.Background: #213a5e
!Emacs.Background: DarkSlateGray
Emacs.ScrollBars: nil
Emacs.Geometry: 126x44
+80+80

3. 创建 launcher 启动rxvt时自动启动screen

Name:urxvt
Command:urxvt -e screen

4. 配置文件 ~/.screenrc

# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
##    Explanation of hardstatus line    ##

# Ignore the ' marks if you use these examples for yourself

# Note that if you want to use the color brown under konsole
# You actually use bright yellow (%{Y}).

# Note the embeded space after the colon, I feel
#  it just looks nicer with a blank between the
#  text and console edge:
#   '%{=b}%{G} Screen(s): '

# This prints the window listing in blue:
#   '%{b}%w'

# This right-aligns what follows:
#   '%='

# This displays the time (hours and minutes) in 12hr format
# and adds an AM/PM flag, in bold green:
#   '%{G}%C%A'

# This displays the day of the week:
#   '%D'

#This displays the date in Mon/day/year format:
# and again I embeded a space to give me one space
# between the text and console edge:
#  '%M/%d/%Y '

# Green text, time, and date; windows in blue:
hardstatus alwayslastline "%{=b}%{b}%-w%{.BW}%10>%n*%t%{-}%+w%< %=%{kG}%C%A %D, %Y-%m-%d"
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
##    Some general options    ##

# Turn off start message:
startup_message off   # default: on

# Automatically detach on hangup, or the screen will keep eating your memory after the terminal emulator has been terminated.
autodetach off      # default: on

# Set messages timeout to one second:
msgwait 1

#use bash as default shell.
shell bash
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
##    Keybindings    ##

# bind F1  to select 1
# bind F7  to detach screen session from this terminal
# bind F8  to kill current screen window.
# bind F9  to create a new screen
# bind F10 to rename current screen window
# bind F11 to move to previous window
# bind F12 to move to next window
#bindkey -k k1 select 1
#bindkey -k k7 detach
#bindkey -k k8 kill
#bindkey -k k9 screen
bindkey -k k; title
bindkey -k F1 prev
bindkey -k F2 next
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #


posted on 2008-05-23 10:50 martin0501 阅读(1501) 评论(0)  编辑 收藏 引用 所属分类: 1. 软件开发工具

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理