hyprctl(1)

πŸ“¦
version 0.57.1 Β· 5 versions
, in arch rolling, nixpkgs unstable

πŸŽ€ 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 (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