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

Feat: multiple config file loading & '@' '~' prefix #87

Merged
merged 23 commits into from
Mar 13, 2022
Merged

Conversation

EdenQwQ
Copy link
Member

@EdenQwQ EdenQwQ commented Mar 10, 2022

No description provided.

This was linked to issues Mar 10, 2022
@EdenQwQ EdenQwQ requested review from Shinyzenith, angelofallars and vainiovano and removed request for Shinyzenith March 10, 2022 14:11
src/daemon.rs Outdated
@@ -216,6 +221,11 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
Some((i, Ok(event))) = keyboard_stream_map.next() => {
let keyboard_state = &mut keyboard_states[i];
if let InputEventKind::Key(key) = event.kind() {
if last_hotkey.is_some() && pending_release.is_some() && event.value() == 0 && event.code() == pending_release.as_ref().unwrap().keysym().code() {
Copy link
Member

Choose a reason for hiding this comment

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

If we're checking for event value == 0 anyways, why not put this in the match statement ?

@Shinyzenith
Copy link
Member

I wanted to choose comment type review but the car was shaking, my apologies.

Copy link
Contributor

@angelofallars angelofallars left a comment

Choose a reason for hiding this comment

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

LGTM!

@Shinyzenith
Copy link
Member

@angelofallars I'm gonna merge since you have already approved this pr.

@Shinyzenith
Copy link
Member

Oh @EdenQwQ would you mind adding some documentation to readme.md?

@Shinyzenith Shinyzenith merged commit e1e2616 into main Mar 13, 2022
@Shinyzenith Shinyzenith deleted the config_devel branch March 13, 2022 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Per-user configuration? Todo: @ and ~ Load multiple config files
3 participants