|
5 | 5 | #define TERMCLASS "St"
|
6 | 6 |
|
7 | 7 | /* appearance */
|
8 |
| -static unsigned int borderpx = 3; /* border pixel of windows */ |
9 |
| -static unsigned int snap = 32; /* snap pixel */ |
10 |
| -static unsigned int gappih = 20; /* horiz inner gap between windows */ |
11 |
| -static unsigned int gappiv = 10; /* vert inner gap between windows */ |
12 |
| -static unsigned int gappoh = 10; /* horiz outer gap between windows and screen edge */ |
13 |
| -static unsigned int gappov = 30; /* vert outer gap between windows and screen edge */ |
14 |
| -static int smartgaps = 0; /* 1 means no outer gap when there is only one window */ |
15 |
| -static unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */ |
16 |
| -static unsigned int systrayonleft = 0; /* 0: systray in the right corner, >0: systray on left of status text */ |
17 |
| -static unsigned int systrayspacing = 2; /* systray spacing */ |
18 |
| -static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display systray on the first monitor, False: display systray on the last monitor*/ |
19 |
| -static int showsystray = 1; /* 0 means no systray */ |
20 |
| -static int swallowfloating = 0; /* 1 means swallow floating windows by default */ |
21 |
| -static int showbar = 1; /* 0 means no bar */ |
22 |
| -static int topbar = 1; /* 0 means bottom bar */ |
23 |
| -static int viewontag = 1; /* Switch view on tag switch */ |
24 |
| -static char *fonts[] = { "monospace:size=10", "JoyPixels:pixelsize=10:antialias=true:autohint=true" }; |
25 |
| -static char normbgcolor[] = "#222222"; |
26 |
| -static char normbordercolor[] = "#444444"; |
27 |
| -static char normfgcolor[] = "#bbbbbb"; |
28 |
| -static char selfgcolor[] = "#eeeeee"; |
29 |
| -static char selbordercolor[] = "#770000"; |
30 |
| -static char selbgcolor[] = "#005577"; |
31 |
| -static char color0[] = "#000000"; /* black dark */ |
32 |
| -static char color8[] = "#79A9FF"; /* black light */ |
33 |
| -static char color1[] = "#ff5555"; /* red dark */ |
34 |
| -static char color9[] = "#ff6e67"; /* red light */ |
35 |
| -static char color2[] = "#50fa7b"; /* green dark */ |
36 |
| -static char color10[] = "#5af78e"; /* green light */ |
37 |
| -static char color3[] = "#f1fa8c"; /* yellow dark */ |
38 |
| -static char color11[] = "#f4f99d"; /* yellow light */ |
39 |
| -static char color4[] = "#6790EB"; /* blue dark */ |
40 |
| -static char color12[] = "#79A9FF"; /* blue light */ |
41 |
| -static char color5[] = "#ff79c6"; /* purple dark */ |
42 |
| -static char color13[] = "#ff92d0"; /* purple light */ |
43 |
| -static char color6[] = "#8be9fd"; /* cyan dark */ |
44 |
| -static char color14[] = "#9aedfe"; /* cyan light */ |
45 |
| -static char color7[] = "#bfbfbf"; /* white dark */ |
46 |
| -static char color15[] = "#e6e6e6"; /* white light */ |
| 8 | +static const unsigned int borderpx = 3; /* border pixel of windows */ |
| 9 | +static const unsigned int snap = 32; /* snap pixel */ |
| 10 | +static const unsigned int gappih = 20; /* horiz inner gap between windows */ |
| 11 | +static const unsigned int gappiv = 10; /* vert inner gap between windows */ |
| 12 | +static const unsigned int gappoh = 10; /* horiz outer gap between windows and screen edge */ |
| 13 | +static const unsigned int gappov = 30; /* vert outer gap between windows and screen edge */ |
| 14 | +static const int smartgaps = 0; /* 1 means no outer gap when there is only one window */ |
| 15 | +static const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */ |
| 16 | +static const unsigned int systrayonleft = 0; /* 0: systray in the right corner, >0: systray on left of status text */ |
| 17 | +static const unsigned int systrayspacing = 2; /* systray spacing */ |
| 18 | +static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display systray on the first monitor, False: display systray on the last monitor*/ |
| 19 | +static const int showsystray = 1; /* 0 means no systray */ |
| 20 | +static const int swallowfloating = 0; /* 1 means swallow floating windows by default */ |
| 21 | +static const int showbar = 1; /* 0 means no bar */ |
| 22 | +static const int topbar = 1; /* 0 means bottom bar */ |
| 23 | +static const int viewontag = 1; /* Switch view on tag switch */ |
| 24 | +static const char *fonts[] = { "Inconsolata Nerd Font:size=12", "JoyPixels:pixelsize=10:antialias=true:autohint=true" }; |
| 25 | +static const char normbgcolor[] = "#222222"; |
| 26 | +static const char normbordercolor[] = "#444444"; |
| 27 | +static const char normfgcolor[] = "#bbbbbb"; |
| 28 | +static const char selfgcolor[] = "#eeeeee"; |
| 29 | +static const char selbordercolor[] = "#770000"; |
| 30 | +static const char selbgcolor[] = "#005577"; |
| 31 | +static const char color0[] = "#000000"; /* black dark */ |
| 32 | +static const char color8[] = "#79A9FF"; /* black light */ |
| 33 | +static const char color1[] = "#ff5555"; /* red dark */ |
| 34 | +static const char color9[] = "#ff6e67"; /* red light */ |
| 35 | +static const char color2[] = "#50fa7b"; /* green dark */ |
| 36 | +static const char color10[] = "#5af78e"; /* green light */ |
| 37 | +static const char color3[] = "#f1fa8c"; /* yellow dark */ |
| 38 | +static const char color11[] = "#f4f99d"; /* yellow light */ |
| 39 | +static const char color4[] = "#6790EB"; /* blue dark */ |
| 40 | +static const char color12[] = "#79A9FF"; /* blue light */ |
| 41 | +static const char color5[] = "#ff79c6"; /* purple dark */ |
| 42 | +static const char color13[] = "#ff92d0"; /* purple light */ |
| 43 | +static const char color6[] = "#8be9fd"; /* cyan dark */ |
| 44 | +static const char color14[] = "#9aedfe"; /* cyan light */ |
| 45 | +static const char color7[] = "#bfbfbf"; /* white dark */ |
| 46 | +static const char color15[] = "#e6e6e6"; /* white light */ |
47 | 47 |
|
48 | 48 | enum { SchemeNorm, SchemeCol0, SchemeCol1, SchemeCol2, SchemeCol3, SchemeCol4,
|
49 | 49 | SchemeCol5, SchemeCol6, SchemeCol7, SchemeCol8, SchemeCol9, SchemeCol10,
|
50 | 50 | SchemeCol11, SchemeCol12, SchemeCol13, SchemeCol14, SchemeCol15, SchemeSel }; /* color schemes */
|
51 | 51 |
|
52 |
| -static char *colors[][3] = { |
| 52 | +static const char *colors[][3] = { |
53 | 53 | /* fg bg border */
|
54 | 54 | [SchemeNorm] = { normfgcolor, normbgcolor, normbordercolor }, // \x0b
|
55 | 55 | [SchemeCol0] = { color0, normbgcolor, normbordercolor }, // \x0c
|
@@ -107,10 +107,10 @@ static const Rule rules[] = {
|
107 | 107 | };
|
108 | 108 |
|
109 | 109 | /* layout(s) */
|
110 |
| -static float mfact = 0.55; /* factor of master area size [0.05..0.95] */ |
111 |
| -static int nmaster = 1; /* number of clients in master area */ |
112 |
| -static int resizehints = 0; /* 1 means respect size hints in tiled resizals */ |
113 |
| -static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ |
| 110 | +static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ |
| 111 | +static const int nmaster = 1; /* number of clients in master area */ |
| 112 | +static const int resizehints = 0; /* 1 means respect size hints in tiled resizals */ |
| 113 | +static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ |
114 | 114 | #include "vanitygaps.c"
|
115 | 115 | static const Layout layouts[] = {
|
116 | 116 | /* symbol arrange function */
|
@@ -144,53 +144,6 @@ static const Layout layouts[] = {
|
144 | 144 | /* commands */
|
145 | 145 | static const char *termcmd[] = { TERMINAL, NULL };
|
146 | 146 |
|
147 |
| -/* |
148 |
| - * Xresources preferences to load at startup |
149 |
| - */ |
150 |
| -ResourcePref resources[] = { |
151 |
| - { "borderpx", INTEGER, &borderpx }, |
152 |
| - { "snap", INTEGER, &snap }, |
153 |
| - { "gappih", INTEGER, &gappih }, |
154 |
| - { "gappiv", INTEGER, &gappiv }, |
155 |
| - { "gappoh", INTEGER, &gappoh }, |
156 |
| - { "gappov", INTEGER, &gappov }, |
157 |
| - { "smartgaps", INTEGER, &smartgaps }, |
158 |
| - { "systraypinning", INTEGER, &systraypinning }, |
159 |
| - { "systrayonleft", INTEGER, &systrayonleft }, |
160 |
| - { "systrayspacing", INTEGER, &systrayspacing }, |
161 |
| - { "showsystray", INTEGER, &showsystray }, |
162 |
| - { "swallowfloating", INTEGER, &swallowfloating }, |
163 |
| - { "showbar", INTEGER, &showbar }, |
164 |
| - { "topbar", INTEGER, &topbar }, |
165 |
| - { "viewontag", INTEGER, &viewontag }, |
166 |
| - // { "font", STRING, &font }, |
167 |
| - // { "color0", STRING, &normbgcolor }, |
168 |
| - // { "color0", STRING, &normbordercolor }, |
169 |
| - // { "color4", STRING, &normfgcolor }, |
170 |
| - // { "color0", STRING, &selfgcolor }, |
171 |
| - // { "color8", STRING, &selbordercolor }, |
172 |
| - // { "color4", STRING, &selbgcolor }, |
173 |
| - { "color0", STRING, &color0 }, |
174 |
| - { "color1", STRING, &color1 }, |
175 |
| - { "color2", STRING, &color2 }, |
176 |
| - { "color3", STRING, &color3 }, |
177 |
| - { "color4", STRING, &color4 }, |
178 |
| - { "color5", STRING, &color5 }, |
179 |
| - { "color6", STRING, &color6 }, |
180 |
| - { "color7", STRING, &color7 }, |
181 |
| - { "color8", STRING, &color8 }, |
182 |
| - { "color9", STRING, &color9 }, |
183 |
| - { "color10", STRING, &color10 }, |
184 |
| - { "color11", STRING, &color11 }, |
185 |
| - { "color12", STRING, &color12 }, |
186 |
| - { "color13", STRING, &color13 }, |
187 |
| - { "color14", STRING, &color14 }, |
188 |
| - { "color15", STRING, &color15 }, |
189 |
| - { "mfact", FLOAT, &mfact }, |
190 |
| - { "nmaster", INTEGER, &nmaster }, |
191 |
| - { "resizehints", INTEGER, &resizehints }, |
192 |
| -}; |
193 |
| - |
194 | 147 | #include <X11/XF86keysym.h>
|
195 | 148 | #include "shiftview.c"
|
196 | 149 |
|
|
0 commit comments