action: add 'MoveToEdge'

Currently only moves view to edges of outputs

Example keybind:

<keybind key="A-Left">
  <action name="MoveToEdge">
    <direction>left</direction>
  </action>
</keybind>
This commit is contained in:
Johan Malm 2021-07-20 19:54:57 +01:00
parent 10264110f1
commit 49a73befdb
4 changed files with 57 additions and 0 deletions

View file

@ -52,6 +52,8 @@ fill_keybind(char *nodename, char *content)
current_keybind->action = strdup(content);
} else if (!strcmp(nodename, "command.action")) {
current_keybind->command = strdup(content);
} else if (!strcmp(nodename, "direction.action")) {
current_keybind->command = strdup(content);
} else if (!strcmp(nodename, "menu.action")) {
current_keybind->command = strdup(content);
}