aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.def.h7
-rw-r--r--monsterwm.c1
2 files changed, 5 insertions, 3 deletions
diff --git a/config.def.h b/config.def.h
index 3c2c7cf..3683ee5 100644
--- a/config.def.h
+++ b/config.def.h
@@ -21,9 +21,10 @@
#define CLICK_TO_FOCUS True /* focus an unfocused window when clicked */
#define FOCUS_BUTTON Button3 /* mouse button to be used along with CLICK_TO_FOCUS */
#define BORDER_WIDTH 2 /* window border width */
-#define FOCUS "#ff950e" /* focused window border color */
-#define UNFOCUS "#444444" /* unfocused window border color */
-#define MINWSZ 50 /* minimum window size in pixels */
+#define FOCUS "#ff950e" /* focused window border color */
+#define UNFOCUS "#444444" /* unfocused window border color */
+#define MINWSZ 50 /* minimum window size in pixels */
+#define DEFAULT_DESKTOP 0 /* the desktop to focus initially */
#define DESKTOPS 4 /* number of desktops - edit DESKTOPCHANGE keys to suit */
/**
diff --git a/monsterwm.c b/monsterwm.c
index 71e2d04..428a311 100644
--- a/monsterwm.c
+++ b/monsterwm.c
@@ -1007,6 +1007,7 @@ void setup(void) {
XSync(dis, False);
grabkeys();
+ if (DEFAULT_DESKTOP >= 0 && DEFAULT_DESKTOP < DESKTOPS) change_desktop(&(Arg){.i = DEFAULT_DESKTOP});
}
void sigchld(__attribute__((unused)) int sig) {