Hyprland
Hyprland copied to clipboard
Dispatcher focuswindow need return a error code if no matching window found
Description
The current behavior is to return 0 regardless of whether a corresponding window is found. If changed to return 1 when no matching window is found, it would enable the operation of opening the program if it is not already open, or switching to the program otherwise.
hyprctl dispatch focuswindow firefox || hyprctl dispatch exec firefox