mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 12:25:58 +01:00
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:
parent
85c07c2fe0
commit
445f8c71c5
2 changed files with 2 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -12,6 +12,7 @@ _deps
|
||||||
build/
|
build/
|
||||||
result*
|
result*
|
||||||
/.vscode/
|
/.vscode/
|
||||||
|
/.idea/
|
||||||
.envrc
|
.envrc
|
||||||
.cache
|
.cache
|
||||||
|
|
||||||
|
|
|
@ -170,7 +170,7 @@ void requestHyprpaper(std::string arg) {
|
||||||
|
|
||||||
int dispatchRequest(int argc, char** argv) {
|
int dispatchRequest(int argc, char** argv) {
|
||||||
|
|
||||||
if (argc < 4) {
|
if (argc < 3) {
|
||||||
std::cout << "Usage: hyprctl dispatch <dispatcher> <arg>\n\
|
std::cout << "Usage: hyprctl dispatch <dispatcher> <arg>\n\
|
||||||
Execute a hyprland keybind dispatcher with the given argument";
|
Execute a hyprland keybind dispatcher with the given argument";
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in a new issue