-
Notifications
You must be signed in to change notification settings - Fork 4
/
Xresources
181 lines (163 loc) · 5.75 KB
/
Xresources
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
! @@ General @@ {{{
URxvt.termName: rxvt-unicode-256color
URxvt.print-pipe: cat >/tmp/xxx
URxvt.scrollBar: False
URxvt.iso14755: True
URxvt.cursorBlink: True
URxvt.urgentOnBell: True
URxvt.insecure: True
URxvt.inputMethod: fcitx5
URxvt.preeditType: OverTheSpot
URxvt.transparent: On
URxvt.shading: 100
URxvt.saveLines: 2048
URxvt.modifier: Mod1
URxvt.urlLauncher: x-www-browser
!URxvt.cutchars: ()<>[]{}|:;!#@`$%^?
URxvt.matcher.button: 3
URxvt.scrollTtyKeypress: True
URxvt.scrollTtyOutput: False
URxvt.scrollWithBuffer: True
URxvt.secondaryScreen: True
URxvt.secondaryScroll: True
URxvt.intensityStyles: False
URxvt.perl-lib: /sun/.urxvt/
!URxvt.perl-ext-common: matcher,selection,mark-yank-urls,vim-scrollback,translate-selection,tabbedalt
URxvt.perl-ext-common: matcher,selection,mark-yank-urls,vim-scrollback,translate-selection
! }}}
! @@ FONTS @@ {{{
Xft.dpi: 96
Xft.rgba: none
Xft.antialias: true
Xft.autohint: true
Xft.hinting: true
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault
! http://downloads.sourceforge.net/wqy/wqy-bitmapfont_0.7.9-5_all.deb (系统自带的缺少粗体)
! https://jnrowe.github.io/articles/tips/Sharing_Xresources_between_systems.html
URxvt.font: [codeset=ASCII]xft:Tamzen:size=14, [codeset=UTF-8]xft:WenQuanYi Zen Hei Sharp
URxvt.italicFont: [codeset=ASCII]xft:Tamzen:style=italic:size=14, [codeset=UTF-8]xft:WenQuanYi Zen Hei Sharp
URxvt.boldFont: [codeset=ASCII]xft:Tamzen:style=bold:size=14, [codeset=UTF-8]xft:WenQuanYi Bitmap Song:style=bold:size=12
!注意,
!font:size=10 的时候,设为 -1 可以使得字母间距不会太大
URxvt.letterSpace: 0
URxvt.keysym.M-Up: command: \
\033]710;[codeset=ASCII]xft:Envy Code R for Powerline:size=13:antialias=true, [codeset=UTF-8]xft:WenQuanYi Micro Hei:antialias=true\007 \
\033]712;[codeset=ASCII]xft:Envy Code R:style=italic:size=13:antialias=true, [codeset=UTF-8]xft:WenQuanYi Micro Hei:style=italic:antialias=true\007 \
\033]711;[codeset=ASCII]xft:Envy Code R:style=bold:size=13:antialias=true, [codeset=UTF-8]xft:WenQuanYi Micro Hei:style=bold:antialias=true\007
URxvt.keysym.M-Down: command: \
\033]710;[codeset=ASCII]xft:Tamzen:size=14, [codeset=UTF-8]xft:WenQuanYi Zen Hei Sharp\007 \
\033]712;[codeset=ASCII]xft:Tamzen:style=italic:size=14, [codeset=UTF-8]xft:WenQuanYi Zen Hei Sharp\007 \
\033]711;[codeset=ASCII]xft:Tamzen:style=bold:size=14, [codeset=UTF-8]xft:WenQuanYi Bitmap Song:style=bold:size=12\007
! }}}
! @@ COLORS AND GRAPHICS @@ {{{
! man urxvt
! http://sedition.com/perl/rgb.html
! http://web.njit.edu/~kevin/rgb.txt.html
! @@ D A R K -- theme {{{
! URxvt.background: black
! URxvt.foreground: grey68
! URxvt.cursorColor: white
! URxvt.cursorColor2: black
! URxvt.colorBD: ivory3
! URxvt.colorUL: grey68
! URxvt.colorIT: ivory3
! }}}
! @@ L I G H T -- theme {{{
URxvt.background: grey89
URxvt.foreground: black
URxvt.cursorColor: grey15
URxvt.cursorColor2: white
URxvt.colorBD: grey15
URxvt.colorUL: grey15
URxvt.colorIT: grey15
! }}}
*color0: black
*color1: firebrick2
*color2: chartreuse4
*color3: chocolate1
*color4: DodgerBlue3
*color5: VioletRed3
*color6: DarkSlateGray4
*color7: grey90
*color8: grey45
*color9: brown1
*color10: green3
*color11: khaki1
*color12: cornflower blue
*color13: hot pink
*color14: cyan1
*color15: white
! icon path
URxvt.iconFile: /usr/share/pixmaps/urxvt.xpm
Mutt.iconFile: /usr/share/pixmaps/mutt.xpm
Weechat.iconFile: /usr/share/pixmaps/weechat.xpm
! }}}
! @@ Shortkeys @@ {{{
!!
!! replace rxvt-unicode-256color with xterm-256color
!! https://wiki.archlinux.org/index.php/Home_and_End_keys_not_working#URxvt.2FRxvt
!!
!! URxvt.keysym.Home: \033[1~
!! URxvt.keysym.End: \033[4~
!! URxvt.keysym.KP_Home: \033[1~
!! URxvt.keysym.KP_End: \033[4~
!!
!! XXX
!! 换了 xterm-256color 后,在 NeoVIM 中无法使用 <Home> 和 <End>
!! 再次改回 rxvt-256color ($HOME/.terminfo/r/rxvt-256color)
!!!!
!! mouseless url yanking
!! http://www.jukie.net/~bart/blog/urxvt-url-yank
URxvt.keysym.M-u: perl:mark-yank-urls:activate_mark_mode
!!
!! vim-scrollback
!! http://github.com/ervandew/vimfiles
!!
!! map shift-space with Shift-F12, for Vim.
!! http://vim.wikia.com/wiki/Avoid_the_escape_key
!! URxvt.keysym.S-space: \033[24$
!
!! rebind keycode for vimwiki <C-CR>, <S-CR> mapping
!! take two function keycode: <C-F3>, <S-F3> ~ lOl ~
URxvt.keysym.C-Return: \033[13^
URxvt.keysym.S-Return: \033[25~
!!
!! keyboard-select: Use keyboard shortcuts to select and copy text
!! https://github.com/muennich/urxvt-perls
!! 还是习惯了用 vim-scrollback
!!
! URxvt.keysym.M-s: perl:keyboard-select:search
! URxvt.keysym.M-r: perl:keyboard-select:activate
! }}}
! @@ Plugins @@ {{{
!!
!! Tabbedex for Urxvt.
!! https://github.com/shaggytwodope/tabbedex-urxvt
!! 有点遗憾,和 Fcitx 输入法冲突,
!! 启用之后,鼠标落在 Fcitx 选单、引起输入焦点丢失
!!
!URxvt.tabbed.tabbar-fg: 8
!URxvt.tabbed.tabbar-bg: 0
!URxvt.tabbed.tab-fg: 15
!URxvt.tabbed.tab-bg: 8
!URxvt.tabbed.autohide: yes
!URxvt.tabbed.title: yes
!URxvt.tabbed.new-button: false
!URxvt.keysym.C-t: perl:tabbedex:new_tab
!URxvt.keysym.C-M-p: perl:tabbedex:prev_tab
!URxvt.keysym.C-M-n: perl:tabbedex:next_tab
!URxvt.keysym.C-M-h: perl:tabbedex:move_tab_left
!URxvt.keysym.C-M-l: perl:tabbedex:move_tab_right
!URxvt.keysym.C-M-t: perl:tabbedex:rename_tab
!
! Extended tabbed plugin for rxvt-unicode (urxvt)
! https://github.com/gryf/tabbedalt
!
! % urxvt -pe tabbedalt
!
URxvt.tabbedalt.autohide: true
URxvt.tabbedalt.new-button: false
URxvt.tabbedalt.disable-shift-down: true
URxvt.tabbedalt.tabbar-timeouts: 16:.:8:::4:+
! }}}