Skip to content

Commit 7d55cba

Browse files
committed
hotfix: hyprexpo_workspace_method -> workspace_method (global)
1 parent 49e6970 commit 7d55cba

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

hyprexpo/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,17 +271,17 @@ Uses the same syntax as Hyprland's `gesture` keyword.
271271
You can configure different workspace methods for different monitors using the `workspace_method` custom keyword:
272272

273273
```ini
274-
# Global default (fallback for monitors without specific config)
274+
# Global default (inside plugin block)
275275
plugin {
276276
hyprexpo {
277277
workspace_method = center current
278278
}
279279
}
280280

281-
# Per-monitor overrides
281+
# Per-monitor overrides (outside plugin block, at top level)
282282
workspace_method = DP-1 first 1
283283
workspace_method = HDMI-A-1 center current
284284
workspace_method = eDP-1 first 10
285285
```
286286

287-
Each `workspace_method` line specifies: `MONITOR_NAME <center|first> <workspace>`
287+
The global keyword format: `workspace_method = MONITOR_NAME <center|first> <workspace>`

hyprexpo/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ static Hyprlang::CParseResult workspaceMethodKeyword(const char* LHS, const char
123123
return result;
124124

125125
// Parse format: "MONITOR_NAME method workspace"
126-
// Example: "hyprexpo_workspace_method = DP-1 first 19"
126+
// Example: "workspace_method = DP-1 first 19"
127127
CConstVarList data(RHS);
128128

129129
if (data.size() < 3) {
130-
result.setError("hyprexpo_workspace_method requires format: MONITOR_NAME <center|first> <workspace>");
130+
result.setError("workspace_method requires format: MONITOR_NAME <center|first> <workspace>");
131131
return result;
132132
}
133133

@@ -278,7 +278,7 @@ APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {
278278
HyprlandAPI::addDispatcherV2(PHANDLE, "hyprexpo:kb_selecti", ::onKbSelectIndexDispatcher);
279279

280280
HyprlandAPI::addConfigKeyword(PHANDLE, "hyprexpo_gesture", ::expoGestureKeyword, {});
281-
HyprlandAPI::addConfigKeyword(PHANDLE, "hyprexpo_workspace_method", ::workspaceMethodKeyword, {});
281+
HyprlandAPI::addConfigKeyword(PHANDLE, "workspace_method", ::workspaceMethodKeyword, {});
282282

283283
HyprlandAPI::addConfigValue(PHANDLE, "plugin:hyprexpo:columns", Hyprlang::INT{3});
284284
HyprlandAPI::addConfigValue(PHANDLE, "plugin:hyprexpo:gaps_in", Hyprlang::INT{5});

0 commit comments

Comments
 (0)