added one 'known bug'
[k8sterm.git] / .sterm.rc
bloba6081fca4335e1c486ed61e1427dfa92188f96f3
1 # select one of two predefined terminals below
2 #term  xterm
3 term  rxvt
5 title  sterm
6 class  sterm
8 doubleclicktimeout  300
9 tripleclicktimeout  600
11 drawtimeout  20
12 maxdrawtimeout 3000  # 100..60000, milliseconds
14 audiblebell  1
16 # set 'urgent' flag on '\a' if terminal window is inactive
17 urgentbell  1
20 # set to 1 if you want sterm to ignore WM close requests
21 # set to 0 if you want close query
22 # set to -1 if you want sterm to die silently
23 ignoreclose 0
26 #visiblebell  0  # not yet
28 ptrblank 1500
29 #tabcount 2
30 #tabposition 1
32 fontnorm  "-*-terminus-bold-*-*-*-20-*-*-*-*-*-*-*"
33 fontbold  "-*-terminus-bold-*-*-*-20-*-*-*-*-*-*-*"
34 #fonttab   "-*-andale mono-*-*-*-*-17-*-*-*-*-*-*-*"
35 fonttab   "-*-calibri-medium-r-*-*-17-*-*-*-*-*-*-*"
37 tabsize  8
39 # default shell to use if SHELL is not set in the env
40 shell /bin/sh
42 # 8 normal colors
43 color.0   "#000000"
44 color.1   "#b21818"
45 color.2   "#18b218"
46 color.3   "#b26818"
47 color.4   "#1818b2"
48 color.5   "#b218b2"
49 color.6   "#18b2b2"
50 color.7   "#b2b2b2"
51 # 8 bright colors
52 color.8   "#686868"
53 color.9   "#ff5454"
54 color.10  "#54ff54"
55 color.11  "#ffff54"
56 color.12  "#5454ff"
57 color.13  "#ff54ff"
58 color.14  "#54ffff"
59 color.15  "#ffffff"
62 # xterm colors
63 ## color.0   "#000000"
64 ## color.1   "#cd0000"
65 ## color.2   "#00cd00"
66 ## color.3   "#cdcd00"
67 ## color.4   "#0000ee"
68 ## color.5   "#cd00cd"
69 ## color.6   "#00cdcd"
70 ## color.7   "#e5e5e5"
71 ## color.8   "#7f7f7f"
72 ## color.9   "#ff0000"
73 ## color.10  "#00ff00"
74 ## color.11  "#ffff00"
75 ## color.12  "#5c5cff"
76 ## color.13  "#ff00ff"
77 ## color.14  "#00ffff"
78 ## color.15  "#ffffff"
81 # more colors can be added after 255 to use with DefaultXX
82 color.256  "#cccccc"
83 color.257  "#333333"
84 # root terminal fg and bg
85 color.258  "#809a70"
86 color.259  "#002000"
87 # bold and underline
88 color.260  "#00afaf"
89 color.261  "#00af00"
91 defaultFG        7
92 defaultBG        0
93 defaultCursorFG  0
94 defaultCursorBG  256
95 defaultInactiveCursorFG  0
96 defaultInactiveCursorBG  -1
98 defaultBoldFG       260
99 defaultUnderlineFG  261
100 drawunderline  0  # heh; draw 'underline underline'?
102 normalTabFG  258
103 normalTabBG  257
104 activeTabFG  258
105 activeTabBG  0
108 #cursorBlink 0 -- turn off; time in milliseconds
109 #cursorBlink  800
110 #cursorBlinkInactive  1  # boolean
113 maxhistory 512
116 # unicode --> linedrawing
117 # TODO: double-frames (160-190)
118 # 'alt' means 'alternate (line drawing) charset'
119 # '0' is special value: 'inverted space'
120 #unimap 0x2000 0x3F
121 #unimap 0x2592 0x61 alt
122 #unimap 0x2588 0x00 alt
123 #unimap 0x2589 0x00 alt
125 unimap 0x2518 0x6a alt
126 unimap 0x2510 0x6b alt
127 unimap 0x250c 0x6c alt
128 unimap 0x2514 0x6d alt
129 unimap 0x253c 0x6e alt
130 unimap 0x2500 0x71 alt
131 unimap 0x251c 0x74 alt
132 unimap 0x2524 0x75 alt
133 unimap 0x2534 0x76 alt
134 unimap 0x252c 0x77 alt
135 unimap 0x2502 0x78 alt
137 unimap 0x2580 0x8b
138 unimap 0x2584 0x8c
139 unimap 0x258c 0x8e
140 unimap 0x2590 0x8f
142 unimap 0x2588 0x8d
143 unimap 0x25a0 0x8d
144 unimap 0x2591 0x90
145 unimap 0x2592 0x91
146 unimap 0x2593 0x92
149 # key bindings
150 keybind reset
152 # X11 clipboards
153 keybind shift+Insert      PastePrimary
154 keybind alt+Insert        PasteClipboard
155 keybind alt+shift+Insert  PasteSecondary
157 # new tab
158 keybind ctrl+alt+t  NewTab
159 keybind ctrl+alt+m  NewTab; exec mc
161 # new utf-8 tab
162 keybind ctrl+alt+u  NewTab; UTF8Locale tan
164 # new root tab
165 #keybind ctrl+alt+r  NewTab; defaultFG 258; defaultBG 259; exec su -
166 keybind ctrl+alt+r  NewTab; mono 2; defaultBG 259; exec su -
167 keybind ctrl+alt+p  NewTab; defaultFG 258; defaultBG 259; exec su -l -c mc
169 # on-the-fly switching between UTF-8 and default locale
170 keybind win+alt+8  UTF8Locale tan
171 keybind win+alt+1  UTF8Locale ona
173 keybind win+alt+b  AudibleBell toggle
175 # press win+c to enter 'command mode'
176 keybind win+c  CommandMode
178 keybind ctrl+win+q  CloseTab
179 keybind ctrl+win+k  KillTab
181 keybind ctrl+alt+Left   SwitchToTab prev nowrap
182 keybind ctrl+alt+Right  SwitchToTab next nowrap
183 keybind ctrl+alt+Home   SwitchToTab first
184 keybind ctrl+alt+End    SwitchToTab last
186 keybind ctrl+alt+1      SwitchToTab 1
187 keybind ctrl+alt+2      SwitchToTab 2
188 keybind ctrl+alt+3      SwitchToTab 3
189 keybind ctrl+alt+4      SwitchToTab 4
190 keybind ctrl+alt+5      SwitchToTab 5
191 keybind ctrl+alt+6      SwitchToTab 6
192 keybind ctrl+alt+7      SwitchToTab 7
193 keybind ctrl+alt+8      SwitchToTab 8
194 keybind ctrl+alt+9      SwitchToTab 9
195 keybind ctrl+alt+0      SwitchToTab 0
197 keybind alt+shift+Left   MoveTabTo prev nowrap
198 keybind alt+shift+Right  MoveTabTo next nowrap
200 keybind alt+Up     ScrollHistoryLineUp
201 keybind alt+Down   ScrollHistoryLineDown
202 keybind alt+Prior  ScrollHistoryPageUp
203 keybind alt+Next   ScrollHistoryPageDown
204 keybind alt+Home   ScrollHistoryTop
205 keybind alt+End    ScrollHistoryBottom
207 # keypad translation for keymap (only!)
208 keytrans reset
209 keytrans KP_Home    Home
210 keytrans KP_Left    Left
211 keytrans KP_Up      Up
212 keytrans KP_Right   Right
213 keytrans KP_Down    Down
214 keytrans KP_Prior   Prior
215 keytrans KP_Next    Next
216 keytrans KP_End     End
217 keytrans KP_Begin   Begin
218 keytrans KP_Insert  Insert
219 keytrans KP_Delete  Delete
222 # keycodes
223 # modificators: ctrl, shift, alt, win, any
224 keymap reset
225 keymap BackSpace  \177
226 keymap Insert     \e[2~
227 keymap Delete     \e[3~
228 ifterm "rxvt"
229   keymap Home       \e[7~
230   keymap End        \e[8~
231 else
232   keymap Home       \e[1~
233   keymap End        \e[4~
234 endif
235 keymap Prior      \e[5~
236 keymap Next       \e[6~
238 keymap ctrl+Home    \e[1^
239 keymap ctrl+Insert  \e[2^
240 keymap ctrl+Delete  \e[3^
241 keymap ctrl+End     \e[4^
242 keymap ctrl+Prior   \e[5^
243 keymap ctrl+Next    \e[6^
245 ifterm "xterm"
246   # xterm
247   keymap F1   \eOP
248   keymap F2   \eOQ
249   keymap F3   \eOR
250   keymap F4   \eOS
251 else
252   # rxvt
253   keymap F1   \e[11~
254   keymap F2   \e[12~
255   keymap F3   \e[13~
256   keymap F4   \e[14~
257 endif
258 keymap F5   \e[15~
259 keymap F6   \e[17~
260 keymap F7   \e[18~
261 keymap F8   \e[19~
262 keymap F9   \e[20~
263 keymap F10  \e[21~
264 keymap F11  \e[23~
265 keymap F12  \e[24~
267 keymap shift+F1   \e[23~
268 keymap shift+F2   \e[24~
269 keymap shift+F3   \e[25~
270 keymap shift+F4   \e[26~
271 keymap shift+F5   \e[28~
272 keymap shift+F6   \e[29~
273 keymap shift+F7   \e[31~
274 keymap shift+F8   \e[32~
275 keymap shift+F9   \e[33~
276 keymap shift+F10  \e[34~
278 keymap ctrl+F1   \e[11^
279 keymap ctrl+F2   \e[12^
280 keymap ctrl+F3   \e[13^
281 keymap ctrl+F4   \e[14^
282 keymap ctrl+F5   \e[15^
283 keymap ctrl+F6   \e[17^
284 keymap ctrl+F7   \e[18^
285 keymap ctrl+F8   \e[19^
286 keymap ctrl+F9   \e[20^
287 keymap ctrl+F10  \e[21^
289 keymap ctrl+shift+F1   \e[11@
290 keymap ctrl+shift+F2   \e[12@
291 keymap ctrl+shift+F3   \e[13@
292 keymap ctrl+shift+F4   \e[14@
293 keymap ctrl+shift+F5   \e[15@
294 keymap ctrl+shift+F6   \e[17@
295 keymap ctrl+shift+F7   \e[18@
296 keymap ctrl+shift+F8   \e[19@
297 keymap ctrl+shift+F9   \e[20@
298 keymap ctrl+shift+F10  \e[21@
300 ifterm "xterm"
301  # xterm
302  keymap Up     \eOA
303  keymap Down   \eOB
304  keymap Right  \eOC
305  keymap Left   \eOD
306 else
307  # rxvt
308   keymap Up     \e[A
309   keymap Down   \e[B
310   keymap Right  \e[C
311   keymap Left   \e[D
312 endif
314 ### keymap kpad+Up     \eOA
315 ### keymap kpad+Down   \eOB
316 ### keymap kpad+Right  \eOC
317 ### keymap kpad+Left   \eOD
319 keymap shift+Up     \e[1;2A
320 keymap shift+Down   \e[1;2B
321 keymap shift+Right  \e[1;2C
322 keymap shift+Left   \e[1;2D
324 keymap alt+Up     \e[1;3A
325 keymap alt+Down   \e[1;3B
326 keymap alt+Right  \e[1;3C
327 keymap alt+Left   \e[1;3D
329 keymap shift+alt+Up     \e[1;4A
330 keymap shift+alt+Down   \e[1;4B
331 keymap shift+alt+Right  \e[1;4C
332 keymap shift+alt+Left   \e[1;4D
334 keymap ctrl+Up     \e[1;5A
335 keymap ctrl+Down   \e[1;5B
336 keymap ctrl+Right  \e[1;5C
337 keymap ctrl+Left   \e[1;5D
339 keymap ctrl+shift+Up     \e[1;6A
340 keymap ctrl+shift+Down   \e[1;6B
341 keymap ctrl+shift+Right  \e[1;6C
342 keymap ctrl+shift+Left   \e[1;6D
344 keymap ctrl+alt+Up     \e[1;7A
345 keymap ctrl+alt+Down   \e[1;7B
346 keymap ctrl+alt+Right  \e[1;7C
347 keymap ctrl+alt+Left   \e[1;7D
349 keymap ctrl+alt+shift+Up     \e[1;8A
350 keymap ctrl+alt+shift+Down   \e[1;8B
351 keymap ctrl+alt+shift+Right  \e[1;8C
352 keymap ctrl+alt+shift+Left   \e[1;8D
354 #keymap alt+Return  \e\x0a
357 ifterm "rxvt"
358   keymap Ctrl+Prior  \e\133\065\136
359   keymap Ctrl+Next   \e\133\066\136
360   keymap Ctrl+Home   \e\133\067\136
361   keymap Ctrl+End    \e\133\070\136
362   keymap Shift+Home  \e\133\067\044
363   keymap Shift+End   \e\133\070\044
364   keymap Shift+F1    \e\133\062\063\176
365   keymap Shift+F2    \e\133\062\064\176
366   keymap Shift+F3    \e\133\062\065\176
367   keymap Shift+F4    \e\133\062\066\176
368   keymap Shift+F5    \e\133\062\070\176
369   keymap Shift+F6    \e\133\062\071\176
370   keymap Shift+F7    \e\133\063\061\176
371   keymap Shift+F8    \e\133\063\062\176
372   keymap Shift+F9    \e\133\063\063\176
373   keymap Shift+F10   \e\133\063\064\176
374   #keymap Alt+Return  \e\012
375   #keymap Alt+Tab     \e\t
376 endif