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