Linux command
hyprctl 命令
文本
Copy it and replace filenames, paths, or keywords as needed.
命令示例
Reload
hyprctl reload
Example
hyprctl activewindow
Example
hyprctl devices
Example
hyprctl workspaces
Example
hyprctl dispatch [dispatcher]
Example
hyprctl keyword [keyword] [value]
Example
hyprctl version
说明
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.
参数
- 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
FAQ
What is the hyprctl command used for?
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.
How do I run a basic hyprctl example?
Run `hyprctl reload` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does reload do in hyprctl?
Reload Hyprland configuration