mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-09-01 12:23:48 -07:00
hyprctl: move to a class and unify commands
This commit is contained in:
@@ -50,9 +50,9 @@ APICALL bool HyprlandAPI::unregisterCallback(HANDLE handle, HOOK_CALLBACK_FN* fn
|
||||
|
||||
APICALL std::string HyprlandAPI::invokeHyprctlCommand(const std::string& call, const std::string& args, const std::string& format) {
|
||||
if (args.empty())
|
||||
return HyprCtl::makeDynamicCall(format + "/" + call);
|
||||
return g_pHyprCtl->makeDynamicCall(format + "/" + call);
|
||||
else
|
||||
return HyprCtl::makeDynamicCall(format + "/" + call + " " + args);
|
||||
return g_pHyprCtl->makeDynamicCall(format + "/" + call + " " + args);
|
||||
}
|
||||
|
||||
APICALL bool HyprlandAPI::addLayout(HANDLE handle, const std::string& name, IHyprLayout* layout) {
|
||||
|
Reference in New Issue
Block a user