add workspace clicks

This commit is contained in:
2025-12-10 02:49:17 +01:00
parent 45d932329a
commit a01bb7554b
5 changed files with 75 additions and 8 deletions

View File

@@ -48,6 +48,11 @@ class HyprlandService
const Monitor *getMonitorById(int id) const;
Monitor *getMonitorByIndex(std::size_t index);
const Monitor *getMonitorByIndex(std::size_t index) const;
// Switch to a workspace slot on a given monitor. If the workspace has an
// associated Hyprland workspace id (hyprId >= 0) that id will be used.
// Otherwise the slot and monitor name will be used to request creation
// / activation via `hyprctl`.
void switchToWorkspace(int monitorId, int slot);
private:
int m_fd = -1;