workspaces: Add workspace actions

This commit is contained in:
Consolatis 2022-06-15 01:38:22 +02:00
parent 8c5157a098
commit c93d625938
4 changed files with 39 additions and 0 deletions

View file

@ -75,10 +75,16 @@ fill_keybind(char *nodename, char *content)
wlr_log(WLR_ERROR, "Action argument already set: %s",
current_keybind_action->arg);
} else if (!strcmp(nodename, "command.action")) {
/* Execute */
current_keybind_action->arg = strdup(content);
} else if (!strcmp(nodename, "direction.action")) {
/* MoveToEdge, SnapToEdge */
current_keybind_action->arg = strdup(content);
} else if (!strcmp(nodename, "menu.action")) {
/* ShowMenu */
current_keybind_action->arg = strdup(content);
} else if (!strcmp(nodename, "to.action")) {
/* GoToDesktop, SendToDesktop */
current_keybind_action->arg = strdup(content);
}
}