a2dd898ebabaef0dc5f939ada28342b9c0f794ee

Author
Sekhat Temporus <sekhat@temporus.me>
Committer
Sekhat Temporus <sekhat@temporus.me>
Date

Message

Rename ephemeral dispatcher to `setephemeral`

Diff

 1diff --git a/README.md b/README.md
 2index 61039423a0dae1836033869115d4c300021edf27..8ceec53439e4fcbed6548b461a379a7c83e5c0ce 100644
 3--- a/README.md
 4+++ b/README.md
 5@@ -218,7 +218,7 @@ plugin {
 6  - `hy3:changegroup, <h | v | tab | untab | opposite>` - change the group the node belongs to, to a different layout
 7    - `untab` will untab the group if it was previously tabbed
 8    - `opposite` will toggle between horizontal and vertical layouts if the group is not tabbed.
 9- - `hy3:changeephemerality, <true | false>` - change the ephemerality of the group the node belongs to
10+ - `hy3:setephemeral, <true | false>` - change the ephemerality of the group the node belongs to
11  - `hy3:movefocus, <l | u | d | r | left | down | up | right>, [visible]` - move the focus left, up, down, or right
12    - `visible` - only move between visible nodes, not hidden tabs
13  - `hy3:movewindow, <l | u | d | r | left | down | up | right>, [once]` - move a window left, up, down, or right
14diff --git a/src/dispatchers.cpp b/src/dispatchers.cpp
15index 3250ee074734bb5c08ababbbf09ff3a21d50a6eb..f2ae3d4a09eb15d77e8aaac02ac80c555d9a3430 100644
16--- a/src/dispatchers.cpp
17+++ b/src/dispatchers.cpp
18@@ -62,7 +62,7 @@ void dispatch_changegroup(std::string value) {
19 	}
20 }
21 
22-void dispatch_changeephemerality(std::string value) {
23+void dispatch_setephemeral(std::string value) {
24 	int workspace = workspace_for_action();
25 	if (workspace == -1) return;
26 
27@@ -219,7 +219,7 @@ void dispatch_debug(std::string arg) {
28 void registerDispatchers() {
29 	HyprlandAPI::addDispatcher(PHANDLE, "hy3:makegroup", dispatch_makegroup);
30 	HyprlandAPI::addDispatcher(PHANDLE, "hy3:changegroup", dispatch_changegroup);
31-	HyprlandAPI::addDispatcher(PHANDLE, "hy3:changeephemerality", dispatch_changeephemerality);
32+	HyprlandAPI::addDispatcher(PHANDLE, "hy3:setephemeral", dispatch_setephemeral);
33 	HyprlandAPI::addDispatcher(PHANDLE, "hy3:movefocus", dispatch_movefocus);
34 	HyprlandAPI::addDispatcher(PHANDLE, "hy3:movewindow", dispatch_movewindow);
35 	HyprlandAPI::addDispatcher(PHANDLE, "hy3:changefocus", dispatch_changefocus);