Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve several hyprctl commands #912

Merged
merged 1 commit into from Oct 27, 2022
Merged

Conversation

riley-martin
Copy link
Contributor

Describe your PR, what does it fix/add?

This adds better help for some hyprctl subcommands, particularly dispatch, keyword,
hyprpaper and setcursor. It also makes them return a nonzero exit status to the shell
when they do not have enough arguments.

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

No, not that I am aware of.

Is it ready for merging, or does it need work?

Works for me (tm), but yes, it should be ready to merge.

@NotAShelf
Copy link
Member

I'm all in for this PR, but why those commands in those particular?

@riley-martin
Copy link
Contributor Author

riley-martin commented Oct 25, 2022

Mostly because they were ones that took additional arguments, and gave somewhat unclear
error messages when not enough arguments were provided. getoption also takes another argument
but since it is just one argument (instead of 2 like the other commands), its a little easier to understand IMO; also changing it would be more complicated. If you think the others should
be improved, though, I can work on it.

hyprctl/main.cpp Outdated Show resolved Hide resolved
hyprctl/main.cpp Outdated Show resolved Hide resolved
@vaxerski
Copy link
Member

can you plox squash

Added better help for some hyprctl commands.
Failed commands should now 'fail' by returning a nonzero status to the shell

Fix typos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants