hyprctl(1)
π NAME π
Okay bestie, welcome to the hyprctl User Manual page for hyprctl(1) β the utility for controlling parts of Hyprland from a CLI or a script. Itβs giving tiny command-line remote control for your compositor energy, and weβre gonna go through every command, flag, and detail together. π
π SYNOPSIS π
hyprctl [(opt)flags] [command] [(opt)args]
β¨ DESCRIPTION β¨
hyprctl is a utility for controlling some parts of the compositor from a CLI or a script. No cap, thatβs the whole vibe: you type stuff, Hyprland listens. π¦
πΉοΈ CONTROL COMMANDS πΉοΈ
π dispatch
Call a dispatcher with an argument.
An argument must be present. For dispatchers without parameters it can be anything.
Returns: ok on success, and an error message on failure.
Examples:
hyprctl dispatch "hl.dsp.exec_cmd('kitty')"
hyprctl dispatch "hl.dsp.window.close()"
π keyword
Set a config keyword dynamically.
Heads-up, bestie: this will not work if your config provider is lua (refer to eval).
Returns: ok on success, and an error message on failure.
Examples:
hyprctl keyword bind SUPER,0,pseudo
hyprctl keyword general:border_size 10
π§ͺ eval
Evaluate arbitrary Lua expressions dynamically when using a Lua-based config provider.
Returns: ok on success, and an error message on failure.
Examples:
hyprctl eval 'hl.bind("SUPER + SHIFT + Q", hl.dsp.exec_cmd("firefox"))'
hyprctl eval 'hl.config({ general = { border_size = 10 } })'
π reload
Force a reload of the config file. Refresh era. β¨
π kill
Enter kill mode, where you can kill an app by clicking on it. You can exit by pressing ESCAPE. Dramatic? Maybe. Useful? Absolutely. π
π INFO COMMANDS π
π·οΈ version
Prints the Hyprland version, flags, commit and branch of build.
π₯οΈ monitors
Lists all the outputs with their properties.
ποΈ workspaces
Lists all workspaces with their properties.
πͺ clients
Lists all windows with their properties.
ποΈ devices
Lists all connected input devices.
π activewindow
Returns the active window name.
π§
layers
Lists all the layers.
π splash
Returns the current random splash.
π status
Returns internal status information like config format or backend.
βοΈ OPTIONS βοΈ
--batchβ Specify a batch of commands to execute.
Example:
hyprctl --batch "keyword general:border_size 2 ; keyword general:gaps_out 20"
; separates the commands. Cute, efficient, batch queen behavior. π
-jβ Outputs information in JSON.
π BUGS π
Submit bug reports and request features online at:
<https://github.com/hyprwm/Hyprland/issues>
π SEE ALSO π
Sources at:
<https://github.com/hyprwm/Hyprland>
Β©οΈ COPYRIGHT Β©οΈ
Copyright (c) 2022, vaxerski
π AUTHORS π
Vaxerski <https://github.com/vaxerski>.
π Sign-off time, bestie: this page is from the hyprctl User Manual and its footer gives us hyprctl(1) β thatβs the source/version energy on this copy β and thereβs no date shown here, so no invented date drama. Bye~ π«Άβ¨
π¦ where this page comes from
- arch rolling: hyprland 0.57.0-3 Β· BSD-3-Clause
- arch rolling: hyprland 0.57.1-1 Β· BSD-3-Clause
- nixpkgs unstable: hyprland 0.57.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms