diff options
author | Michael Forney <mforney@mforney.org> | 2017-01-20 00:06:39 -0800 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2017-01-20 19:42:26 -0800 |
commit | e2ee5ee6114eb74bb08cb9abe5a3020203e92688 (patch) | |
tree | 7fa47c27df85b1803f8e35860ad6ed2603138acb /config.def.h | |
parent | c63a87cd936c1eeef14c4c21572e5b782d3df4bc (diff) | |
download | st-patched-e2ee5ee6114eb74bb08cb9abe5a3020203e92688.tar.bz2 st-patched-e2ee5ee6114eb74bb08cb9abe5a3020203e92688.tar.xz st-patched-e2ee5ee6114eb74bb08cb9abe5a3020203e92688.zip |
Split X-specific code into x.c
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/config.def.h b/config.def.h index a719e36..fd80923 100644 --- a/config.def.h +++ b/config.def.h | |||
@@ -5,8 +5,8 @@ | |||
5 | * | 5 | * |
6 | * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html | 6 | * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html |
7 | */ | 7 | */ |
8 | static char font[] = "Liberation Mono:pixelsize=12:antialias=true:autohint=true"; | 8 | char font[] = "Liberation Mono:pixelsize=12:antialias=true:autohint=true"; |
9 | static int borderpx = 2; | 9 | int borderpx = 2; |
10 | 10 | ||
11 | /* | 11 | /* |
12 | * What program is execed by st depends of these precedence rules: | 12 | * What program is execed by st depends of these precedence rules: |
@@ -24,8 +24,8 @@ static char stty_args[] = "stty raw pass8 nl -echo -iexten -cstopb 38400"; | |||
24 | static char vtiden[] = "\033[?6c"; | 24 | static char vtiden[] = "\033[?6c"; |
25 | 25 | ||
26 | /* Kerning / character bounding-box multipliers */ | 26 | /* Kerning / character bounding-box multipliers */ |
27 | static float cwscale = 1.0; | 27 | float cwscale = 1.0; |
28 | static float chscale = 1.0; | 28 | float chscale = 1.0; |
29 | 29 | ||
30 | /* | 30 | /* |
31 | * word delimiter string | 31 | * word delimiter string |
@@ -35,26 +35,26 @@ static float chscale = 1.0; | |||
35 | static char worddelimiters[] = " "; | 35 | static char worddelimiters[] = " "; |
36 | 36 | ||
37 | /* selection timeouts (in milliseconds) */ | 37 | /* selection timeouts (in milliseconds) */ |
38 | static unsigned int doubleclicktimeout = 300; | 38 | unsigned int doubleclicktimeout = 300; |
39 | static unsigned int tripleclicktimeout = 600; | 39 | unsigned int tripleclicktimeout = 600; |
40 | 40 | ||
41 | /* alt screens */ | 41 | /* alt screens */ |
42 | static int allowaltscreen = 1; | 42 | int allowaltscreen = 1; |
43 | 43 | ||
44 | /* frames per second st should at maximum draw to the screen */ | 44 | /* frames per second st should at maximum draw to the screen */ |
45 | static unsigned int xfps = 120; | 45 | unsigned int xfps = 120; |
46 | static unsigned int actionfps = 30; | 46 | unsigned int actionfps = 30; |
47 | 47 | ||
48 | /* | 48 | /* |
49 | * blinking timeout (set to 0 to disable blinking) for the terminal blinking | 49 | * blinking timeout (set to 0 to disable blinking) for the terminal blinking |
50 | * attribute. | 50 | * attribute. |
51 | */ | 51 | */ |
52 | static unsigned int blinktimeout = 800; | 52 | unsigned int blinktimeout = 800; |
53 | 53 | ||
54 | /* | 54 | /* |
55 | * thickness of underline and bar cursors | 55 | * thickness of underline and bar cursors |
56 | */ | 56 | */ |
57 | static unsigned int cursorthickness = 2; | 57 | unsigned int cursorthickness = 2; |
58 | 58 | ||
59 | /* | 59 | /* |
60 | * bell volume. It must be a value between -100 and 100. Use 0 for disabling | 60 | * bell volume. It must be a value between -100 and 100. Use 0 for disabling |
@@ -63,7 +63,7 @@ static unsigned int cursorthickness = 2; | |||
63 | static int bellvolume = 0; | 63 | static int bellvolume = 0; |
64 | 64 | ||
65 | /* default TERM value */ | 65 | /* default TERM value */ |
66 | static char termname[] = "st-256color"; | 66 | char termname[] = "st-256color"; |
67 | 67 | ||
68 | /* | 68 | /* |
69 | * spaces per tab | 69 | * spaces per tab |
@@ -83,7 +83,7 @@ static char termname[] = "st-256color"; | |||
83 | static unsigned int tabspaces = 8; | 83 | static unsigned int tabspaces = 8; |
84 | 84 | ||
85 | /* Terminal colors (16 first used in escape sequence) */ | 85 | /* Terminal colors (16 first used in escape sequence) */ |
86 | static const char *colorname[] = { | 86 | const char *colorname[] = { |
87 | /* 8 normal colors */ | 87 | /* 8 normal colors */ |
88 | "black", | 88 | "black", |
89 | "red3", | 89 | "red3", |
@@ -116,10 +116,10 @@ static const char *colorname[] = { | |||
116 | * Default colors (colorname index) | 116 | * Default colors (colorname index) |
117 | * foreground, background, cursor, reverse cursor | 117 | * foreground, background, cursor, reverse cursor |
118 | */ | 118 | */ |
119 | static unsigned int defaultfg = 7; | 119 | unsigned int defaultfg = 7; |
120 | static unsigned int defaultbg = 0; | 120 | unsigned int defaultbg = 0; |
121 | static unsigned int defaultcs = 256; | 121 | unsigned int defaultcs = 256; |
122 | static unsigned int defaultrcs = 257; | 122 | unsigned int defaultrcs = 257; |
123 | 123 | ||
124 | /* | 124 | /* |
125 | * Default shape of cursor | 125 | * Default shape of cursor |
@@ -128,33 +128,33 @@ static unsigned int defaultrcs = 257; | |||
128 | * 6: Bar ("|") | 128 | * 6: Bar ("|") |
129 | * 7: Snowman ("☃") | 129 | * 7: Snowman ("☃") |
130 | */ | 130 | */ |
131 | static unsigned int cursorshape = 2; | 131 | unsigned int cursorshape = 2; |
132 | 132 | ||
133 | /* | 133 | /* |
134 | * Default columns and rows numbers | 134 | * Default columns and rows numbers |
135 | */ | 135 | */ |
136 | 136 | ||
137 | static unsigned int cols = 80; | 137 | unsigned int cols = 80; |
138 | static unsigned int rows = 24; | 138 | unsigned int rows = 24; |
139 | 139 | ||
140 | /* | 140 | /* |
141 | * Default colour and shape of the mouse cursor | 141 | * Default colour and shape of the mouse cursor |
142 | */ | 142 | */ |
143 | static unsigned int mouseshape = XC_xterm; | 143 | unsigned int mouseshape = XC_xterm; |
144 | static unsigned int mousefg = 7; | 144 | unsigned int mousefg = 7; |
145 | static unsigned int mousebg = 0; | 145 | unsigned int mousebg = 0; |
146 | 146 | ||
147 | /* | 147 | /* |
148 | * Color used to display font attributes when fontconfig selected a font which | 148 | * Color used to display font attributes when fontconfig selected a font which |
149 | * doesn't match the ones requested. | 149 | * doesn't match the ones requested. |
150 | */ | 150 | */ |
151 | static unsigned int defaultattr = 11; | 151 | unsigned int defaultattr = 11; |
152 | 152 | ||
153 | /* | 153 | /* |
154 | * Internal mouse shortcuts. | 154 | * Internal mouse shortcuts. |
155 | * Beware that overloading Button1 will disable the selection. | 155 | * Beware that overloading Button1 will disable the selection. |
156 | */ | 156 | */ |
157 | static MouseShortcut mshortcuts[] = { | 157 | MouseShortcut mshortcuts[] = { |
158 | /* button mask string */ | 158 | /* button mask string */ |
159 | { Button4, XK_ANY_MOD, "\031" }, | 159 | { Button4, XK_ANY_MOD, "\031" }, |
160 | { Button5, XK_ANY_MOD, "\005" }, | 160 | { Button5, XK_ANY_MOD, "\005" }, |
@@ -163,15 +163,15 @@ static MouseShortcut mshortcuts[] = { | |||
163 | /* Internal keyboard shortcuts. */ | 163 | /* Internal keyboard shortcuts. */ |
164 | #define MODKEY Mod1Mask | 164 | #define MODKEY Mod1Mask |
165 | 165 | ||
166 | static Shortcut shortcuts[] = { | 166 | Shortcut shortcuts[] = { |
167 | /* mask keysym function argument */ | 167 | /* mask keysym function argument */ |
168 | { XK_ANY_MOD, XK_Break, sendbreak, {.i = 0} }, | 168 | { XK_ANY_MOD, XK_Break, sendbreak, {.i = 0} }, |
169 | { ControlMask, XK_Print, toggleprinter, {.i = 0} }, | 169 | { ControlMask, XK_Print, toggleprinter, {.i = 0} }, |
170 | { ShiftMask, XK_Print, printscreen, {.i = 0} }, | 170 | { ShiftMask, XK_Print, printscreen, {.i = 0} }, |
171 | { XK_ANY_MOD, XK_Print, printsel, {.i = 0} }, | 171 | { XK_ANY_MOD, XK_Print, printsel, {.i = 0} }, |
172 | { MODKEY|ShiftMask, XK_Prior, xzoom, {.f = +1} }, | 172 | { MODKEY|ShiftMask, XK_Prior, zoom, {.f = +1} }, |
173 | { MODKEY|ShiftMask, XK_Next, xzoom, {.f = -1} }, | 173 | { MODKEY|ShiftMask, XK_Next, zoom, {.f = -1} }, |
174 | { MODKEY|ShiftMask, XK_Home, xzoomreset, {.f = 0} }, | 174 | { MODKEY|ShiftMask, XK_Home, zoomreset, {.f = 0} }, |
175 | { ShiftMask, XK_Insert, selpaste, {.i = 0} }, | 175 | { ShiftMask, XK_Insert, selpaste, {.i = 0} }, |
176 | { MODKEY|ShiftMask, XK_Insert, clippaste, {.i = 0} }, | 176 | { MODKEY|ShiftMask, XK_Insert, clippaste, {.i = 0} }, |
177 | { MODKEY|ShiftMask, XK_C, clipcopy, {.i = 0} }, | 177 | { MODKEY|ShiftMask, XK_C, clipcopy, {.i = 0} }, |
@@ -222,7 +222,7 @@ static uint ignoremod = Mod2Mask|XK_SWITCH_MOD; | |||
222 | * Note that if you want to use ShiftMask with selmasks, set this to an other | 222 | * Note that if you want to use ShiftMask with selmasks, set this to an other |
223 | * modifier, set to 0 to not use it. | 223 | * modifier, set to 0 to not use it. |
224 | */ | 224 | */ |
225 | static uint forceselmod = ShiftMask; | 225 | uint forceselmod = ShiftMask; |
226 | 226 | ||
227 | /* | 227 | /* |
228 | * This is the huge key array which defines all compatibility to the Linux | 228 | * This is the huge key array which defines all compatibility to the Linux |
@@ -451,7 +451,7 @@ static Key key[] = { | |||
451 | * ButtonRelease and MotionNotify. | 451 | * ButtonRelease and MotionNotify. |
452 | * If no match is found, regular selection is used. | 452 | * If no match is found, regular selection is used. |
453 | */ | 453 | */ |
454 | static uint selmasks[] = { | 454 | uint selmasks[] = { |
455 | [SEL_RECTANGULAR] = Mod1Mask, | 455 | [SEL_RECTANGULAR] = Mod1Mask, |
456 | }; | 456 | }; |
457 | 457 | ||
@@ -459,7 +459,7 @@ static uint selmasks[] = { | |||
459 | * Printable characters in ASCII, used to estimate the advance width | 459 | * Printable characters in ASCII, used to estimate the advance width |
460 | * of single wide characters. | 460 | * of single wide characters. |
461 | */ | 461 | */ |
462 | static char ascii_printable[] = | 462 | char ascii_printable[] = |
463 | " !\"#$%&'()*+,-./0123456789:;<=>?" | 463 | " !\"#$%&'()*+,-./0123456789:;<=>?" |
464 | "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_" | 464 | "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_" |
465 | "`abcdefghijklmnopqrstuvwxyz{|}~"; | 465 | "`abcdefghijklmnopqrstuvwxyz{|}~"; |