diff options
| author | bakkeby <[email protected]> | 2022-08-21 10:31:55 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2022-08-21 10:33:53 +0200 |
| commit | 90f9b2d9820b8da03d54a64e523aa1f104b4ff2b (patch) | |
| tree | f0f5ea333e4d13f496fd2396bf959be7774d511b /config.def.h | |
| parent | b93a5de5587432f21a850c2e86f8478433c30c8e (diff) | |
| download | dwm-flexipatch-90f9b2d9820b8da03d54a64e523aa1f104b4ff2b.tar.gz dwm-flexipatch-90f9b2d9820b8da03d54a64e523aa1f104b4ff2b.zip | |
Bump to 84d7322.
config.def.h: make keys and buttons const
Pretty much all other variables are declared as const when they're not
modified.
Ref.
https://git.suckless.org/dwm/commit/84d7322113c2bf023f5eaa8537fb0e72d4105046.html
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/config.def.h b/config.def.h index cfe41db..562a516 100644 --- a/config.def.h +++ b/config.def.h @@ -879,13 +879,13 @@ static const char *statuscmd[] = { "/bin/sh", "-c", NULL, NULL }; #if ON_EMPTY_KEYS_PATCH static const char* firefoxcmd[] = {"firefox", NULL}; -static Key on_empty_keys[] = { +static const Key on_empty_keys[] = { /* modifier key function argument */ { 0, XK_f, spawn, {.v = firefoxcmd } }, }; #endif // ON_EMPTY_KEYS_PATCH -static Key keys[] = { +static const Key keys[] = { /* modifier key function argument */ #if KEYMODES_PATCH { MODKEY, XK_Escape, setkeymode, {.ui = COMMANDMODE} }, @@ -1281,14 +1281,14 @@ static Key keys[] = { }; #if KEYMODES_PATCH -static Key cmdkeys[] = { +static const Key cmdkeys[] = { /* modifier keys function argument */ { 0, XK_Escape, clearcmd, {0} }, { ControlMask, XK_c, clearcmd, {0} }, { 0, XK_i, setkeymode, {.ui = INSERTMODE} }, }; -static Command commands[] = { +static const Command commands[] = { /* modifier (4 keys) keysyms (4 keys) function argument */ { {ControlMask, ShiftMask, 0, 0}, {XK_w, XK_h, 0, 0}, setlayout, {.v = &layouts[0]} }, { {ControlMask, 0, 0, 0}, {XK_w, XK_o, 0, 0}, setlayout, {.v = &layouts[2]} }, @@ -1312,7 +1312,7 @@ static Command commands[] = { #else /* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ #endif // -static Button buttons[] = { +static const Button buttons[] = { /* click event mask button function argument */ #if BAR_STATUSBUTTON_PATCH { ClkButton, 0, Button1, spawn, {.v = dmenucmd } }, @@ -1381,7 +1381,7 @@ static Button buttons[] = { /* signal definitions */ /* signum must be greater than 0 */ /* trigger signals using `xsetroot -name "fsignal:<signame> [<type> <value>]"` */ -static Signal signals[] = { +static const Signal signals[] = { /* signum function */ { "focusstack", focusstack }, { "setmfact", setmfact }, @@ -1572,7 +1572,7 @@ static Signal signals[] = { #if IPC_PATCH static const char *ipcsockpath = "/tmp/dwm.sock"; -static IPCCommand ipccommands[] = { +static const IPCCommand ipccommands[] = { IPCCOMMAND( focusmon, 1, {ARG_TYPE_SINT} ), IPCCOMMAND( focusstack, 1, {ARG_TYPE_SINT} ), IPCCOMMAND( incnmaster, 1, {ARG_TYPE_SINT} ), |
