config.h, menu.c: remove unused config option, add virtual desktop names to config.h

This commit is contained in:
Iris Lightshard 2021-03-04 00:18:10 -05:00
parent e7a71e88ac
commit 608ea90f1e
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398
2 changed files with 22 additions and 17 deletions

View file

@ -38,9 +38,6 @@
#define VIRTHEADER "virtual"
#define VIRTMSG "[%s]"
/* Deny focus to autostuck windows? (eg xosview, clock) */
#define NOFOCUS
/* Modifier key and associated modifier bits;
* Shift = (1<<0)
* Lock = (1<<1)
@ -113,4 +110,25 @@
0 \
}
/* Names for the virtual desktops. You can define all 12, or only
* as many as you use.
* Remember the backslash at the end of non-terminating lines!
*/
#define VIRTUALLIST {\
"One", \
"Two", \
"Three", \
"Four", \
"Five", \
"Six", \
"Seven", \
"Eight", \
"Nine", \
"Ten", \
"Eleven", \
"Twelve", \
0 \
}
// clang-format on

15
menu.c
View file

@ -27,20 +27,7 @@ int reversehide = 1;
Client* currents[NUMVIRTUALS] = {NULL, NULL, NULL, NULL};
char* b2items[NUMVIRTUALS + 1] = {
"One",
"Two",
"Three",
"Four",
"Five",
"Six",
"Seven",
"Eight",
"Nine",
"Ten",
"Eleven",
"Twelve",
0};
char* b2items[NUMVIRTUALS + 1] = VIRTUALLIST;
Menu b2menu = {b2items};