Adding quitonlyonempty patch and made monocle layout position configurable for fullscreen and warp patches

This commit is contained in:
bakkeby
2019-10-03 22:58:58 +02:00
parent 9ebd9c8397
commit 40000bba1c
5 changed files with 39 additions and 3 deletions

View File

@ -1,11 +1,11 @@
Layout *last_layout;
Layout *last_layout = &layouts[0];
void
fullscreen(const Arg *arg)
{
if (selmon->showbar) {
for (last_layout = (Layout *)layouts; last_layout != selmon->lt[selmon->sellt]; last_layout++);
setlayout(&((Arg) { .v = &layouts[2] })); // <-- NB! hardcoded monocle
setlayout(&((Arg) { .v = &layouts[MONOCLE_LAYOUT_POS] }));
} else {
setlayout(&((Arg) { .v = last_layout }));
}