diff options
| author | virchau13 <virchau13@hexular.net> | 2024-01-15 23:30:46 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-15 16:30:46 +0100 |
| commit | 3c964a9fdc220250a85b1c498e5b6fad9390272f (patch) | |
| tree | 7bd1b78108c75497244e53c6d8df674866cf4f39 /src/managers/KeybindManager.hpp | |
| parent | f14c5ea5c56858260c1133d8003fc5961ace373d (diff) | |
keybinds: Add dispatcher for xmonad/qtile-style workspace switching (#4439)
* feat: implement xmonad/qtile-style workspace switching
Implements the focusWorkspaceOnCurrentMonitor dispatcher and function,
which implements XMonad/Qtile-style workspace switching.
When called, focusWorkspaceOnCurrentMonitor will:
1. Send the requested workspace to the current monitor,
2. If the workspace was previously active on a different monitor,
replace it with the workspace that was previously active on the
current monitor,
3. Focus the workspace on the current monitor.
* fix: address PR comments
Diffstat (limited to 'src/managers/KeybindManager.hpp')
| -rw-r--r-- | src/managers/KeybindManager.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/managers/KeybindManager.hpp b/src/managers/KeybindManager.hpp index 957cbdf6..7ca43ec1 100644 --- a/src/managers/KeybindManager.hpp +++ b/src/managers/KeybindManager.hpp @@ -134,6 +134,7 @@ class CKeybindManager { static void exitHyprland(std::string); static void moveCurrentWorkspaceToMonitor(std::string); static void moveWorkspaceToMonitor(std::string); + static void focusWorkspaceOnCurrentMonitor(std::string); static void toggleSpecialWorkspace(std::string); static void forceRendererReload(std::string); static void resizeActive(std::string); |
