Skip to main content
Glama
alderban107

hyprland-mcp

by alderban107

switch_workspace

Switch between workspaces in Hyprland by name or number to organize windows and manage desktop layouts.

Instructions

Switch to a workspace by name or number.

Args: workspace: Workspace name or number (e.g. "1", "3", "special:scratchpad")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceYes

Implementation Reference

  • The switch_workspace tool uses hyprctl to dispatch the "workspace" command to Hyprland.
    @mcp.tool()
    async def switch_workspace(workspace: str) -> str:
        """Switch to a workspace by name or number.
    
        Args:
            workspace: Workspace name or number (e.g. "1", "3", "special:scratchpad")
        """
        await hyprctl.dispatch("workspace", workspace)
        return f"Switched to workspace {workspace}"

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alderban107/hyprland-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server