Macro hyprland::command

source ·
macro_rules! command {
    ($flag:ident, $($k:tt)*) => { ... };
}
Expand description

Creates a CommandContent instance with the given flag and formatted data.

§Arguments

  • $flag - A CommandFlag variant (JSON or Empty) that represents the flag for the command.
  • $($k:tt)* - A format string and its arguments to be used as the data in the CommandContent instance.