mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-05 13:29:54 -05:00
feat: support keybind mode
This commit is contained in:
parent
0622ab463b
commit
572fe6ae27
6 changed files with 64 additions and 3 deletions
|
|
@ -457,6 +457,17 @@ setlayout(const Arg *arg) {
|
|||
}
|
||||
}
|
||||
|
||||
void // 17
|
||||
setkeymode(const Arg *arg) {
|
||||
snprintf(keymode.mode, sizeof(keymode.mode), "%.27s", arg->v);
|
||||
if (strcmp(keymode.mode, "default") == 0) {
|
||||
keymode.isdefault = true;
|
||||
} else {
|
||||
keymode.isdefault = false;
|
||||
}
|
||||
printstatus();
|
||||
}
|
||||
|
||||
void set_proportion(const Arg *arg) {
|
||||
if (selmon->sel) {
|
||||
unsigned int max_client_width =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue