summaryrefslogtreecommitdiff
path: root/src/parser.c
diff options
context:
space:
mode:
authorAbhinav <abhinav.prsai@gmail.com>2025-06-24 16:56:23 +0100
committerAbhinav <abhinav.prsai@gmail.com>2025-06-24 16:56:23 +0100
commit8418960055da3337e767afb49f59c7eec229dc3c (patch)
tree6555adbe7dd562018d358b2b3df69f590bcb413b /src/parser.c
parentde5be2ff9d3e8d0c0f3c725a9fb9ea7046c12862 (diff)
add window centering
the user can now center any floating window with default bind centre_window
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parser.c b/src/parser.c
index eb0b1a8..79cf29b 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -37,6 +37,7 @@ static const struct {
{"toggle_floating", toggle_floating},
{"global_floating", toggle_floating_global},
{"fullscreen", toggle_fullscreen},
+ {"centre_window", centre_window},
{NULL, NULL}};
static void remap_and_dedupe_binds(Config *cfg)
@@ -691,4 +692,4 @@ const char **build_argv(const char *cmd)
free(tmp);
return argv;
#endif
-} \ No newline at end of file
+}