feat: support movewin and resizewin dispatch, fix dirtomon

feat: support resizewin

fix: fix resizewin some error

fix: fix dirtomon dir

Avoid shortcut key conflicts
This commit is contained in:
chenyc 2025-04-06 01:01:15 +08:00 committed by DreamMaoMao
parent dfaab261c1
commit b4cf9d4b81
4 changed files with 191 additions and 3 deletions

View file

@ -477,6 +477,12 @@ FuncType parse_func_name(char *func_name, Arg *arg, char *arg_value) {
} else if (strcmp(func_name, "toggleview") == 0) {
func = toggleview;
(*arg).ui = 1 << (atoi(arg_value) - 1);
} else if (strcmp(func_name, "movewin") == 0) {
func = movewin;
(*arg).i = parse_direction(arg_value);
} else if (strcmp(func_name, "resizewin") == 0) {
func = resizewin;
(*arg).i = parse_direction(arg_value);
} else {
return NULL;
}
@ -1378,4 +1384,4 @@ void reload_config(const Arg *arg) {
}
}
arrange(selmon, false);
}
}