feat: support keybind mode
This commit is contained in:
@@ -22,6 +22,7 @@ void tagmon(const Arg *arg);
|
||||
void spawn(const Arg *arg);
|
||||
void spawn_shell(const Arg *arg);
|
||||
void spawn_on_empty(const Arg *arg);
|
||||
void setkeymode(const Arg *arg);
|
||||
void setlayout(const Arg *arg);
|
||||
void switch_layout(const Arg *arg);
|
||||
void switch_keyboard_layout(const Arg *arg);
|
||||
|
||||
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user