From 7700f6a52c1e1eb6cd7e394e6ddde7e5599cc657 Mon Sep 17 00:00:00 2001 From: yuuhikaze Date: Sun, 26 Apr 2026 16:52:40 -0500 Subject: [PATCH] fix(hyprfocus): rename nothing->none, bounce_strength->shrink_percentage --- hyprfocus/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hyprfocus/main.cpp b/hyprfocus/main.cpp index f974d5f..68f32c6 100644 --- a/hyprfocus/main.cpp +++ b/hyprfocus/main.cpp @@ -59,7 +59,7 @@ static void onFocusChange(PHLWINDOW window) { const std::string& mode = wasMouse ? *PMOUSE_ANIM : *PKEYBOARD_ANIM; static const auto POPACITY = CConfigValue("plugin:hyprfocus:fade_opacity"); - static const auto PSHRINK = CConfigValue("plugin:hyprfocus:shrink_strength"); + static const auto PSHRINK = CConfigValue("plugin:hyprfocus:shrink_percentage"); static const auto PSLIDE = CConfigValue("plugin:hyprfocus:slide_height"); const auto PIN = g_pConfigManager->getAnimationPropertyConfig("hyprfocusIn"); const auto POUT = g_pConfigManager->getAnimationPropertyConfig("hyprfocusOut"); @@ -146,9 +146,9 @@ APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) { HyprlandAPI::addConfigValue(PHANDLE, "plugin:hyprfocus:enable", Hyprlang::INT{1}); HyprlandAPI::addConfigValue(PHANDLE, "plugin:hyprfocus:animate_floating", Hyprlang::INT{1}); HyprlandAPI::addConfigValue(PHANDLE, "plugin:hyprfocus:keyboard_focus_animation", Hyprlang::STRING{"flash"}); - HyprlandAPI::addConfigValue(PHANDLE, "plugin:hyprfocus:mouse_focus_animation", Hyprlang::STRING{"nothing"}); + HyprlandAPI::addConfigValue(PHANDLE, "plugin:hyprfocus:mouse_focus_animation", Hyprlang::STRING{"none"}); HyprlandAPI::addConfigValue(PHANDLE, "plugin:hyprfocus:fade_opacity", Hyprlang::FLOAT{0.8F}); - HyprlandAPI::addConfigValue(PHANDLE, "plugin:hyprfocus:shrink_strength", Hyprlang::FLOAT{0.95F}); + HyprlandAPI::addConfigValue(PHANDLE, "plugin:hyprfocus:shrink_percentage", Hyprlang::FLOAT{0.95F}); HyprlandAPI::addConfigValue(PHANDLE, "plugin:hyprfocus:slide_height", Hyprlang::FLOAT{20.F}); // this will not be cleaned up after we are unloaded but it doesn't really matter,