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

Introduce anchor option #57

Merged
merged 2 commits into from
Jul 16, 2018
Merged

Introduce anchor option #57

merged 2 commits into from
Jul 16, 2018

Conversation

RyanDwyer
Copy link
Contributor

This adds an anchor option, to allow the user to choose which corner of the output the notifications should appear in.

Usage:

--anchor topright|bottomright|bottomleft|topleft

@@ -414,7 +436,7 @@ int parse_config_arguments(struct mako_config *config, int argc, char **argv) {

const char *name = long_options[option_index].name;
if (!apply_style_option(&global_criteria(config)->style, name, optarg)
|| apply_config_option(config, name, optarg)) {
&& !apply_config_option(config, name, optarg)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looked wrong to me, and I was getting a parse failure for --output until I changed it to this.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh right, good catch

This adds an anchor option, to allow the user to choose which corner of
the output the notifications should appear in.

Usage:

* --anchor topright|bottomright|bottomleft|topleft
Copy link
Owner

@emersion emersion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Is it possible to add an hyphen (e.g. top-right) so that it'll be easier to automatically accept things like top (to center the bar on top) in the future?

Copy link
Owner

@emersion emersion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@emersion emersion merged commit d8161cd into emersion:master Jul 16, 2018
@emersion
Copy link
Owner

Sweet, thanks!

@RyanDwyer RyanDwyer deleted the anchor branch July 16, 2018 07:42
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.

2 participants