diff --git a/config.h b/config.h index 778a84c..749ecd3 100644 --- a/config.h +++ b/config.h @@ -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 diff --git a/menu.c b/menu.c index 9dd279c..591d337 100644 --- a/menu.c +++ b/menu.c @@ -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};