LinuxCommandLibrary

hyprctl

command-line control utility for Hyprland, a dynamic tiling Wayland compositor

TLDR

Reload Hyprland configuration
$ hyprctl reload
copy
Return the active window name
$ hyprctl activewindow
copy
List all connected input devices
$ hyprctl devices
copy
List all workspaces with properties
$ hyprctl workspaces
copy
Call a dispatcher
$ hyprctl dispatch [dispatcher]
copy
Set a configuration keyword dynamically
$ hyprctl keyword [keyword] [value]
copy
Display version
$ hyprctl version
copy

SYNOPSIS

hyprctl [command] [arguments]

DESCRIPTION

hyprctl is the command-line control utility for Hyprland, a dynamic tiling Wayland compositor. It provides runtime control over window management, configuration, and system queries.
Dispatchers control actions like moving windows, changing workspaces, and executing programs. Common dispatchers include: exec, killactive, workspace, movewindow, fullscreen, togglefloating.
Configuration changes made with keyword are temporary and reset on reload. For persistent changes, edit the config file.

PARAMETERS

reload

Reload Hyprland configuration
activewindow
Show active window information
devices
List input devices
workspaces
List workspaces
monitors
List monitors and properties
clients
List all windows/clients
dispatch DISPATCHER [ARGS]
Execute a dispatcher (window actions, workspace changes)
keyword KEY VALUE
Set configuration option at runtime
setcursor THEME SIZE
Set cursor theme and size
switchxkblayout DEVICE CMD
Switch keyboard layout
--batch
Execute multiple commands separated by semicolons
-j
Output in JSON format

CAVEATS

Only works when Hyprland is running. Some commands require appropriate permissions. Changes via keyword don't persist across restarts or reloads.

HISTORY

hyprctl is part of the Hyprland project, a modern Wayland compositor created by Vaxry. Hyprland gained popularity starting in 2022 for its smooth animations, dynamic tiling, and extensive customization options.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard