xterm配置文件

xterm配置文件的位置~/.Xresources

vim ~/.Xresources
!xterm font and locale
xterm.locale:true
xterm.utf8: true
xterm*utf8Title:true
xterm*fontMenu*fontdefault*Label:Default
!斜体
!xterm*faceName:Consolas:antialias=true:pixelsize=18:italic
xterm*faceName:Consolas:antialias=true:pixelsize=18
!斜体
!xterm*faceNameDoublesize:WenQuanYi Micro Hei Mono:pixelsize=18:antialias=true:italic
xterm*faceNameDoublesize:WenQuanYi Micro Hei Mono:pixelsize=18:antialias=true
xterm*xftAntialias:true
xterm*cjkWidth:false
xterm*background:black
xterm*foreground:green
xterm*color0: #000000
xterm*color1: #CC0000
xterm*color2: #4E9A06
xterm*color3: #C4A000
xterm*color4: #3465A4
xterm*color5: #75507B
xterm*color6: #06989A
xterm*color7: #D3D7CF
xterm*color8: #555753
xterm*color9: #EF2929
xterm*color10: #8AE234
xterm*color11: #FCE94F
xterm*color12: #729FCF
xterm*color13: #AD7FA8
xterm*color14: #34E2E2
xterm*color15: #EEEEEC

!解决Alt键不好使
xterm*eightBitInput:false
xterm*altSendsEscape:true

!解决复制问题
*VT100*translations: #override \n\
Shift <KeyPress> Insert:insert-selection(CLIPBOARD, CUT_BUFFER1) \n\
~Shift~Ctrl<Btn2Up>: insert-selection(PRIMARY, CUT_BUFFER0) \n\
~Shift<BtnUp>: select-end(CLIPBOARD, CUT_BUFFER1) \n\
~Shift<BtnUp>: select-end(PRIMARY, CUT_BUFFER0)

从新加载配置文件

xrdb -merge ~/.Xresources

~/.xinitrc配置文件中配置下,下次重启就不用手动加载了

#!/bin/bash

export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
fcitx &
xrdb -merge ~/.Xresources
exec awesome