diff options
| author | NRK <nrk@disroot.org> | 2022-08-18 22:13:08 +0600 |
|---|---|---|
| committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-08-19 11:47:22 +0200 |
| commit | 84d7322113c2bf023f5eaa8537fb0e72d4105046 (patch) | |
| tree | 40cb34e110e425618454bdd4c3ebc4f2b549dac1 /config.def.h | |
| parent | Remove blw variable in favour of calculating the value when needed (diff) | |
| download | dwm-84d7322113c2bf023f5eaa8537fb0e72d4105046.tar.gz dwm-84d7322113c2bf023f5eaa8537fb0e72d4105046.zip | |
config.def.h: make keys and buttons const
pretty much all other variables are declared as const when they're not
modified.
Diffstat (limited to '')
| -rw-r--r-- | config.def.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h index a2ac963..9efa774 100644 --- a/config.def.h +++ b/config.def.h | |||
| @@ -60,7 +60,7 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() | |||
| 60 | static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; | 60 | static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; |
| 61 | static const char *termcmd[] = { "st", NULL }; | 61 | static const char *termcmd[] = { "st", NULL }; |
| 62 | 62 | ||
| 63 | static Key keys[] = { | 63 | static const Key keys[] = { |
| 64 | /* modifier key function argument */ | 64 | /* modifier key function argument */ |
| 65 | { MODKEY, XK_p, spawn, {.v = dmenucmd } }, | 65 | { MODKEY, XK_p, spawn, {.v = dmenucmd } }, |
| 66 | { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, | 66 | { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, |
| @@ -99,7 +99,7 @@ static Key keys[] = { | |||
| 99 | 99 | ||
| 100 | /* button definitions */ | 100 | /* button definitions */ |
| 101 | /* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ | 101 | /* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ |
| 102 | static Button buttons[] = { | 102 | static const Button buttons[] = { |
| 103 | /* click event mask button function argument */ | 103 | /* click event mask button function argument */ |
| 104 | { ClkLtSymbol, 0, Button1, setlayout, {0} }, | 104 | { ClkLtSymbol, 0, Button1, setlayout, {0} }, |
| 105 | { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, | 105 | { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, |
