From 1c9c338b36c6fdf48b69dc7eeb0b9b9c75632725 Mon Sep 17 00:00:00 2001 From: Anas Elgarhy Date: Sun, 10 Jul 2022 21:00:35 +0200 Subject: [PATCH] =?UTF-8?q?Improve=20the=20code=20=F0=9F=A4=93=F0=9F=A4=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.h | 9 --------- layouts/layouts.h | 11 +++++++++++ 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/config.h b/config.h index ef5dd67..ff55204 100644 --- a/config.h +++ b/config.h @@ -61,15 +61,6 @@ static const int resizehints = 1; /* 1 means respect size hints in tiled resi static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ #include "layouts/layouts.h" -static const Layout layouts[] = { - /* symbol arrange function */ - { "[]=", tile }, /* first entry is default */ - { "><>", NULL }, /* no layout function means floating behavior */ - { "[M]", monocle }, - { "HHH", grid }, - { "[@]", spiral }, - { "[\\]", dwindle }, -}; /* key definitions */ #define MODKEY Mod4Mask // win/super key diff --git a/layouts/layouts.h b/layouts/layouts.h index 9f30d4f..33aa977 100644 --- a/layouts/layouts.h +++ b/layouts/layouts.h @@ -7,4 +7,15 @@ #include "grid.c" #include "fibonacci.c" +// Layouts array +static const Layout layouts[] = { + /* symbol arrange function */ + { "[]=", tile }, /* first entry is default */ + { "><>", NULL }, /* no layout function means floating behavior */ + { "[M]", monocle }, + { "HHH", grid }, + { "[@]", spiral }, + { "[\\]", dwindle }, +}; + #endif // !layouts.h