aboutsummaryrefslogtreecommitdiffhomepage
path: root/hyprctl
diff options
context:
space:
mode:
authorozwaldorf <[email protected]>2023-02-01 05:01:56 -0500
committerGitHub <[email protected]>2023-02-01 10:01:56 +0000
commit445f8c71c50ed9cdd72299b2ddf696b7baeb1b03 (patch)
tree13ff247c2cf91bc2441510269914fab7e18ce87d /hyprctl
parent85c07c2fe0427ab5603addcef0e6b7cc211e1af7 (diff)
downloadHyprland-445f8c71c50ed9cdd72299b2ddf696b7baeb1b03.tar.gz
Hyprland-445f8c71c50ed9cdd72299b2ddf696b7baeb1b03.zip
fix(hyprctl): allow dispatcher to have no args (#1464)
* fix(hyprctl): allow dispatch to have no args * chore: add .idea/ to gitignore
Diffstat (limited to 'hyprctl')
-rw-r--r--hyprctl/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp
index fd2a5b08..81343526 100644
--- a/hyprctl/main.cpp
+++ b/hyprctl/main.cpp
@@ -170,7 +170,7 @@ void requestHyprpaper(std::string arg) {
int dispatchRequest(int argc, char** argv) {
- if (argc < 4) {
+ if (argc < 3) {
std::cout << "Usage: hyprctl dispatch <dispatcher> <arg>\n\
Execute a hyprland keybind dispatcher with the given argument";
return 1;