From a2dd898ebabaef0dc5f939ada28342b9c0f794ee Mon Sep 17 00:00:00 2001 From: Sekhat Temporus Date: Fri, 18 Aug 2023 08:07:38 +0100 Subject: [PATCH] Rename ephemeral dispatcher to `setephemeral` --- README.md | 2 +- src/dispatchers.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6103942..8ceec53 100644 --- a/README.md +++ b/README.md @@ -218,7 +218,7 @@ plugin { - `hy3:changegroup, ` - 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, ` - change the ephemerality of the group the node belongs to + - `hy3:setephemeral, ` - change the ephemerality of the group the node belongs to - `hy3:movefocus, , [visible]` - move the focus left, up, down, or right - `visible` - only move between visible nodes, not hidden tabs - `hy3:movewindow, , [once]` - move a window left, up, down, or right diff --git a/src/dispatchers.cpp b/src/dispatchers.cpp index 3250ee0..f2ae3d4 100644 --- a/src/dispatchers.cpp +++ b/src/dispatchers.cpp @@ -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);