feat: changed default tiling modes

This commit is contained in:
2025-07-05 21:13:10 +02:00
parent e965863d95
commit d400b7b0e9
2 changed files with 106 additions and 99 deletions

View File

@@ -70,7 +70,8 @@ static const int topbar = 1; /* 0 means bottom bar */
/* Display modes of the tab bar: never shown, always shown, shown only in */ /* Display modes of the tab bar: never shown, always shown, shown only in */
/* monocle mode in the presence of several windows. */ /* monocle mode in the presence of several windows. */
/* Modes after showtab_nmodes are disabled. */ /* Modes after showtab_nmodes are disabled. */
enum showtab_modes { enum showtab_modes
{
showtab_never, showtab_never,
showtab_auto, showtab_auto,
showtab_nmodes, showtab_nmodes,
@@ -382,10 +383,14 @@ static const char title_bg_dark[] = "#303030";
static const char title_bg_light[] = "#fdfdfd"; static const char title_bg_light[] = "#fdfdfd";
static const int color_ptrs[][ColCount] = { static const int color_ptrs[][ColCount] = {
/* fg bg border float */ /* fg bg border float */
[SchemeNorm] = {-1, -1, 5, 12}, [SchemeSel] = {-1, -1, 11, 13}, [SchemeNorm] = {-1, -1, 5, 12},
[SchemeTitleNorm] = {6, -1, -1, -1}, [SchemeTitleSel] = {6, -1, -1, -1}, [SchemeSel] = {-1, -1, 11, 13},
[SchemeTagsNorm] = {2, 0, 0, -1}, [SchemeTagsSel] = {6, 5, 5, -1}, [SchemeTitleNorm] = {6, -1, -1, -1},
[SchemeHidNorm] = {5, 0, 0, -1}, [SchemeHidSel] = {6, -1, -1, -1}, [SchemeTitleSel] = {6, -1, -1, -1},
[SchemeTagsNorm] = {2, 0, 0, -1},
[SchemeTagsSel] = {6, 5, 5, -1},
[SchemeHidNorm] = {5, 0, 0, -1},
[SchemeHidSel] = {6, -1, -1, -1},
[SchemeUrg] = {7, 9, 9, 15}, [SchemeUrg] = {7, 9, 9, 15},
}; };
#endif // BAR_VTCOLORS_PATCH #endif // BAR_VTCOLORS_PATCH
@@ -907,7 +912,6 @@ static const Layout layouts[] = {
#if TILE_LAYOUT #if TILE_LAYOUT
{"[]=", tile}, /* first entry is default */ {"[]=", tile}, /* first entry is default */
#endif #endif
{"><>", NULL}, /* no layout function means floating behavior */
#if MONOCLE_LAYOUT #if MONOCLE_LAYOUT
{"[M]", monocle}, {"[M]", monocle},
#endif #endif
@@ -947,6 +951,7 @@ static const Layout layouts[] = {
#if NROWGRID_LAYOUT #if NROWGRID_LAYOUT
{"###", nrowgrid}, {"###", nrowgrid},
#endif #endif
{"><>", NULL}, /* no layout function means floating behavior */
}; };
#endif // FLEXTILE_DELUXE_LAYOUT #endif // FLEXTILE_DELUXE_LAYOUT
@@ -1689,6 +1694,8 @@ static const Key keys[] = {
#if CYCLELAYOUTS_PATCH #if CYCLELAYOUTS_PATCH
{MODKEY | ControlMask, XK_comma, cyclelayout, {.i = -1}}, {MODKEY | ControlMask, XK_comma, cyclelayout, {.i = -1}},
{MODKEY | ControlMask, XK_period, cyclelayout, {.i = +1}}, {MODKEY | ControlMask, XK_period, cyclelayout, {.i = +1}},
{MODKEY, XK_grave, cyclelayout, {.i = +1}},
{MODKEY | ShiftMask, XK_grave, cyclelayout, {.i = -1}},
#endif // CYCLELAYOUTS_PATCH #endif // CYCLELAYOUTS_PATCH
#if MPDCONTROL_PATCH #if MPDCONTROL_PATCH
{MODKEY, XK_F1, mpdchange, {.i = -1}}, {MODKEY, XK_F1, mpdchange, {.i = -1}},

View File

@@ -1331,7 +1331,7 @@
* https://github.com/bakkeby/patches/wiki/togglelayout * https://github.com/bakkeby/patches/wiki/togglelayout
*/ */
#define TOGGLELAYOUT_PATCH 1 #define TOGGLELAYOUT_PATCH 0
/* Minor patch that lets you use the same keyboard shortcut to toggle to the previous tag if the /* Minor patch that lets you use the same keyboard shortcut to toggle to the previous tag if the
* designated tag is already active. * designated tag is already active.
@@ -1451,12 +1451,12 @@
/* Bottomstack layout. /* Bottomstack layout.
* https://dwm.suckless.org/patches/bottomstack/ * https://dwm.suckless.org/patches/bottomstack/
*/ */
#define BSTACK_LAYOUT 1 #define BSTACK_LAYOUT 0
/* Bottomstack horizontal layout. /* Bottomstack horizontal layout.
* https://dwm.suckless.org/patches/bottomstack/ * https://dwm.suckless.org/patches/bottomstack/
*/ */
#define BSTACKHORIZ_LAYOUT 1 #define BSTACKHORIZ_LAYOUT 0
/* Centered master layout. /* Centered master layout.
* https://dwm.suckless.org/patches/centeredmaster/ * https://dwm.suckless.org/patches/centeredmaster/
@@ -1466,34 +1466,34 @@
/* Centered floating master layout. /* Centered floating master layout.
* https://dwm.suckless.org/patches/centeredmaster/ * https://dwm.suckless.org/patches/centeredmaster/
*/ */
#define CENTEREDFLOATINGMASTER_LAYOUT 1 #define CENTEREDFLOATINGMASTER_LAYOUT 0
/* Same as the default tile layout except clients in the master area are arranged in /* Same as the default tile layout except clients in the master area are arranged in
* columns (i.e. left to right). * columns (i.e. left to right).
* https://dwm.suckless.org/patches/columns/ * https://dwm.suckless.org/patches/columns/
*/ */
#define COLUMNS_LAYOUT 1 #define COLUMNS_LAYOUT 0
/* Deck layout. /* Deck layout.
* https://dwm.suckless.org/patches/deck/ * https://dwm.suckless.org/patches/deck/
*/ */
#define DECK_LAYOUT 1 #define DECK_LAYOUT 0
/* Fibonacci dwindle layout. /* Fibonacci dwindle layout.
* https://dwm.suckless.org/patches/fibonacci/ * https://dwm.suckless.org/patches/fibonacci/
*/ */
#define FIBONACCI_DWINDLE_LAYOUT 1 #define FIBONACCI_DWINDLE_LAYOUT 0
/* Fibonacci spiral layout. /* Fibonacci spiral layout.
* https://dwm.suckless.org/patches/fibonacci/ * https://dwm.suckless.org/patches/fibonacci/
*/ */
#define FIBONACCI_SPIRAL_LAYOUT 1 #define FIBONACCI_SPIRAL_LAYOUT 0
/* Flextile deluxe layout. /* Flextile deluxe layout.
* A revamped, more flexible, and over-the-top version of the original flextile layout. * A revamped, more flexible, and over-the-top version of the original flextile layout.
* https://dwm.suckless.org/patches/flextile/ (original) * https://dwm.suckless.org/patches/flextile/ (original)
*/ */
#define FLEXTILE_DELUXE_LAYOUT 1 #define FLEXTILE_DELUXE_LAYOUT 0
/* Gappless grid layout. /* Gappless grid layout.
* https://dwm.suckless.org/patches/gaplessgrid/ * https://dwm.suckless.org/patches/gaplessgrid/
@@ -1503,7 +1503,7 @@
/* Gridmode (grid) layout. /* Gridmode (grid) layout.
* https://dwm.suckless.org/patches/gridmode/ * https://dwm.suckless.org/patches/gridmode/
*/ */
#define GRIDMODE_LAYOUT 1 #define GRIDMODE_LAYOUT 0
/* Horizontal grid (horizgrid) layout. /* Horizontal grid (horizgrid) layout.
* https://dwm.suckless.org/patches/horizgrid/ * https://dwm.suckless.org/patches/horizgrid/
@@ -1513,14 +1513,14 @@
/* Grid layout where nmaster controls the number of rows. /* Grid layout where nmaster controls the number of rows.
* https://dwm.suckless.org/patches/nrowgrid/ * https://dwm.suckless.org/patches/nrowgrid/
*/ */
#define NROWGRID_LAYOUT 0 #define NROWGRID_LAYOUT 1
/* The default tile layout. /* The default tile layout.
* This can be optionally disabled in favour of other layouts. * This can be optionally disabled in favour of other layouts.
*/ */
#define TILE_LAYOUT 1 #define TILE_LAYOUT 0
/* Monocle layout (default). /* Monocle layout (default).
* This can be optionally disabled in favour of other layouts. * This can be optionally disabled in favour of other layouts.
*/ */
#define MONOCLE_LAYOUT 1 #define MONOCLE_LAYOUT 0