From 09382d492470d0279e4e74c7133275e34edfe427 Mon Sep 17 00:00:00 2001 From: talned Date: Thu, 29 Jan 2026 08:53:19 +1100 Subject: [PATCH] making a new horizontal tab layout --- src/layout/horizontal.h | 5 +++++ src/layout/layout.h | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/layout/horizontal.h b/src/layout/horizontal.h index e1a335d..ef3c69a 100644 --- a/src/layout/horizontal.h +++ b/src/layout/horizontal.h @@ -930,3 +930,8 @@ void tgmix(Monitor *m) { return; } } + +void tab_layout(Monitor *m) { + monocle(m) +} + diff --git a/src/layout/layout.h b/src/layout/layout.h index f896ac2..fce020e 100644 --- a/src/layout/layout.h +++ b/src/layout/layout.h @@ -12,6 +12,7 @@ static void vertical_grid(Monitor *m); static void vertical_scroller(Monitor *m); static void vertical_deck(Monitor *mon); static void tgmix(Monitor *m); +static void tab_layout(Monitor *m); /* layout(s) */ Layout overviewlayout = {"󰃇", overview, "overview"}; @@ -29,6 +30,7 @@ enum { VERTICAL_DECK, RIGHT_TILE, TGMIX, + TAB, }; Layout layouts[] = { @@ -47,4 +49,5 @@ Layout layouts[] = { {"VG", vertical_grid, "vertical_grid", VERTICAL_GRID}, // 垂直格子布局 {"VK", vertical_deck, "vertical_deck", VERTICAL_DECK}, // 垂直卡片布局 {"TG", tgmix, "tgmix", TGMIX}, // 混合布局 -}; \ No newline at end of file + {"TAB", tab_layout, "tab_layout", TAB} +};