mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-26 01:31:54 -07: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:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -12,6 +12,7 @@ _deps
|
||||
build/
|
||||
result*
|
||||
/.vscode/
|
||||
/.idea/
|
||||
.envrc
|
||||
.cache
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user