fix(hyprctl): allow dispatcher to have no args (#1464)

* fix(hyprctl): allow dispatch to have no args

* chore: add .idea/ to gitignore
This commit is contained in:
ozwaldorf 2023-02-01 05:01:56 -05:00 committed by GitHub
parent 85c07c2fe0
commit 445f8c71c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -12,6 +12,7 @@ _deps
build/
result*
/.vscode/
/.idea/
.envrc
.cache

View file

@ -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;