Skip to main content
Glama
alderban107

hyprland-mcp

by alderban107

toggle_fullscreen

Switch active windows to fullscreen or maximized mode to optimize workspace visibility and focus during desktop automation tasks.

Instructions

Toggle fullscreen for the active window.

Args: mode: "fullscreen" for real fullscreen, "maximize" for maximized (keeps bar)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNofullscreen

Implementation Reference

  • The toggle_fullscreen tool handler. It calculates the correct flag for hyprctl based on the mode and dispatches the fullscreen command.
    async def toggle_fullscreen(mode: str = "fullscreen") -> str:
        """Toggle fullscreen for the active window.
    
        Args:
            mode: "fullscreen" for real fullscreen, "maximize" for maximized (keeps bar)
        """
        flag = "0" if mode == "fullscreen" else "1"
        await hyprctl.dispatch("fullscreen", flag)
        return f"Toggled {mode}"
  • The registration decorator for the toggle_fullscreen tool.
    @mcp.tool()

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