initial commit

This commit is contained in:
2023-09-18 23:34:29 +02:00
commit faedc5a5ea
292 changed files with 26289 additions and 0 deletions

10
patch/cyclelayouts.c Normal file
View File

@@ -0,0 +1,10 @@
void
cyclelayout(const Arg *arg)
{
int i;
int num_layouts = LENGTH(layouts);
for (i = 0; i < num_layouts && &layouts[i] != selmon->lt[selmon->sellt]; i++);
i += arg->i;
setlayout(&((Arg) { .v = &layouts[(i % num_layouts + num_layouts) % num_layouts] })); // modulo
}