diff options
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/config.h b/config.h new file mode 100644 index 0000000..785ca10 --- /dev/null +++ b/config.h | |||
| @@ -0,0 +1,120 @@ | |||
| 1 | static const unsigned int borderpx = 0; /* border pixel of windows */ | ||
| 2 | static const unsigned int snap = 32; /* snap pixel */ | ||
| 3 | static const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */ | ||
| 4 | static const unsigned int systrayonleft = 0; /* 0: systray in the right corner, >0: systray on left of status text */ | ||
| 5 | static const unsigned int systrayspacing = 2; /* systray spacing */ | ||
| 6 | static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display systray on the first monitor, False: display systray on the last monitor*/ | ||
| 7 | static const int showsystray = 1; /* 0 means no systray */ | ||
| 8 | static const unsigned int gappih = 10; /* horiz inner gap between windows */ | ||
| 9 | static const unsigned int gappiv = 10; /* vert inner gap between windows */ | ||
| 10 | static const unsigned int gappoh = 10; /* horiz outer gap between windows and screen edge */ | ||
| 11 | static const unsigned int gappov = 10; /* vert outer gap between windows and screen edge */ | ||
| 12 | static const int smartgaps = 0; /* 1 means no outer gap when there is only one window */ | ||
| 13 | static const int swallowfloating = 1; /* 1 means no outer gap when there is only one window */ | ||
| 14 | static const int showbar = 0; /* 0 means no bar */ | ||
| 15 | static const int topbar = 1; /* 0 means bottom bar */ | ||
| 16 | static const char *fonts[] = { "monospace:size=10" }; | ||
| 17 | static const char dmenufont[] = "monospace:size=10"; | ||
| 18 | static const char col_gray1[] = "#222222"; | ||
| 19 | static const char col_gray2[] = "#444444"; | ||
| 20 | static const char col_gray3[] = "#bbbbbb"; | ||
| 21 | static const char col_gray4[] = "#eeeeee"; | ||
| 22 | static const char col_cyan[] = "#005577"; | ||
| 23 | static const char norm_fg[] = "#bfbfbf"; | ||
| 24 | static const char norm_bg[] = "#000001"; | ||
| 25 | static const char norm_border[] = "#3f3f40"; | ||
| 26 | |||
| 27 | static const char sel_fg[] = "#bfbfbf"; | ||
| 28 | static const char sel_bg[] = "#5A4A63"; | ||
| 29 | static const char sel_border[] = "#bfbfbf"; | ||
| 30 | |||
| 31 | static const char urg_fg[] = "#bfbfbf"; | ||
| 32 | static const char urg_bg[] = "#501C61"; | ||
| 33 | static const char urg_border[] = "#501C61"; | ||
| 34 | |||
| 35 | static const char *colors[][3] = { | ||
| 36 | /* fg bg border */ | ||
| 37 | [SchemeNorm] = { norm_fg, norm_bg, norm_border }, // unfocused wins | ||
| 38 | [SchemeSel] = { sel_fg, sel_bg, sel_border }, // the focused win | ||
| 39 | }; | ||
| 40 | |||
| 41 | /* tagging */ | ||
| 42 | static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; | ||
| 43 | |||
| 44 | static const Rule rules[] = { | ||
| 45 | /* class instance title tags mask isfloating isterminal noswallow monitor */ | ||
| 46 | { "St", NULL, NULL, 0, 0, 1, 0, -1 }, | ||
| 47 | { NULL, NULL, "Event Tester", 0, 0, 0, 1, -1 }, /* xev */ | ||
| 48 | }; | ||
| 49 | |||
| 50 | /* layout(s) */ | ||
| 51 | static const float mfact = 0.50; /* factor of master area size [0.05..0.95] */ | ||
| 52 | static const int nmaster = 1; /* number of clients in master area */ | ||
| 53 | static const int resizehints = 0; /* 1 means respect size hints in tiled resizals */ | ||
| 54 | static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ | ||
| 55 | |||
| 56 | static const Layout layouts[] = { | ||
| 57 | /* symbol arrange function */ | ||
| 58 | { "[]=", tile }, /* first entry is default */ | ||
| 59 | { "><>", NULL }, /* no layout function means floating behavior */ | ||
| 60 | { "[M]", monocle }, | ||
| 61 | }; | ||
| 62 | |||
| 63 | /* key definitions */ | ||
| 64 | #define MODKEY Mod4Mask | ||
| 65 | #define TAGKEYS(KEY,TAG) \ | ||
| 66 | { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ | ||
| 67 | { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ | ||
| 68 | { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ | ||
| 69 | { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, | ||
| 70 | |||
| 71 | /* helper for spawning shell commands in the pre dwm-5.0 fashion */ | ||
| 72 | #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } | ||
| 73 | |||
| 74 | /* commands */ | ||
| 75 | static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ | ||
| 76 | //static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", norm_bg, "-nf", norm_fg, "-sb", sel_bg, "-sf", sel_fg, NULL }; | ||
| 77 | static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, NULL}; | ||
| 78 | static const char *termcmd[] = { "st", NULL }; | ||
| 79 | |||
| 80 | static const Key keys[] = { | ||
| 81 | /* modifier key function argument */ | ||
| 82 | { MODKEY, XK_d, spawn, {.v = dmenucmd } }, | ||
| 83 | { MODKEY, XK_Return, spawn, {.v = termcmd } }, | ||
| 84 | { MODKEY, XK_b, togglebar, {0} }, | ||
| 85 | { MODKEY, XK_q, killclient, {0} }, | ||
| 86 | { MODKEY, XK_f, togglefullscr, {0} }, | ||
| 87 | { MODKEY, XK_space, setlayout, {0} }, | ||
| 88 | { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, | ||
| 89 | TAGKEYS( XK_1, 0) | ||
| 90 | TAGKEYS( XK_2, 1) | ||
| 91 | TAGKEYS( XK_3, 2) | ||
| 92 | TAGKEYS( XK_4, 3) | ||
| 93 | TAGKEYS( XK_5, 4) | ||
| 94 | TAGKEYS( XK_6, 5) | ||
| 95 | TAGKEYS( XK_7, 6) | ||
| 96 | TAGKEYS( XK_8, 7) | ||
| 97 | TAGKEYS( XK_9, 8) | ||
| 98 | { MODKEY|ShiftMask, XK_q, quit, {0} }, | ||
| 99 | }; | ||
| 100 | |||
| 101 | /* button definitions */ | ||
| 102 | /* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ | ||
| 103 | static const Button buttons[] = { | ||
| 104 | /* click event mask button function argument */ | ||
| 105 | { ClkLtSymbol, 0, Button1, setlayout, {0} }, | ||
| 106 | { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, | ||
| 107 | |||
| 108 | { ClkTagBar, MODKEY, Button1, tag, {0} }, | ||
| 109 | { ClkTagBar, MODKEY, Button3, toggletag, {0} }, | ||
| 110 | { ClkWinTitle, 0, Button2, zoom, {0} }, | ||
| 111 | { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, | ||
| 112 | { ClkClientWin, MODKEY, Button1, movemouse, {0} }, | ||
| 113 | { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, | ||
| 114 | { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, | ||
| 115 | { ClkTagBar, 0, Button1, view, {0} }, | ||
| 116 | { ClkTagBar, 0, Button3, toggleview, {0} }, | ||
| 117 | { ClkTagBar, MODKEY, Button1, tag, {0} }, | ||
| 118 | { ClkTagBar, MODKEY, Button3, toggletag, {0} }, | ||
| 119 | }; | ||
| 120 | |||
