Rename ephemeral dispatcher to setephemeral

This commit is contained in:
Sekhat Temporus 2023-08-18 08:07:38 +01:00
parent 5cc6f08046
commit a2dd898eba
2 changed files with 3 additions and 3 deletions

View file

@ -218,7 +218,7 @@ plugin {
- `hy3:changegroup, <h | v | tab | untab | opposite>` - change the group the node belongs to, to a different layout
- `untab` will untab the group if it was previously tabbed
- `opposite` will toggle between horizontal and vertical layouts if the group is not tabbed.
- `hy3:changeephemerality, <true | false>` - change the ephemerality of the group the node belongs to
- `hy3:setephemeral, <true | false>` - change the ephemerality of the group the node belongs to
- `hy3:movefocus, <l | u | d | r | left | down | up | right>, [visible]` - move the focus left, up, down, or right
- `visible` - only move between visible nodes, not hidden tabs
- `hy3:movewindow, <l | u | d | r | left | down | up | right>, [once]` - move a window left, up, down, or right

View file

@ -62,7 +62,7 @@ void dispatch_changegroup(std::string value) {
}
}
void dispatch_changeephemerality(std::string value) {
void dispatch_setephemeral(std::string value) {
int workspace = workspace_for_action();
if (workspace == -1) return;
@ -219,7 +219,7 @@ void dispatch_debug(std::string arg) {
void registerDispatchers() {
HyprlandAPI::addDispatcher(PHANDLE, "hy3:makegroup", dispatch_makegroup);
HyprlandAPI::addDispatcher(PHANDLE, "hy3:changegroup", dispatch_changegroup);
HyprlandAPI::addDispatcher(PHANDLE, "hy3:changeephemerality", dispatch_changeephemerality);
HyprlandAPI::addDispatcher(PHANDLE, "hy3:setephemeral", dispatch_setephemeral);
HyprlandAPI::addDispatcher(PHANDLE, "hy3:movefocus", dispatch_movefocus);
HyprlandAPI::addDispatcher(PHANDLE, "hy3:movewindow", dispatch_movewindow);
HyprlandAPI::addDispatcher(PHANDLE, "hy3:changefocus", dispatch_changefocus);