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

Add new input module #123

Merged
merged 38 commits into from
Jul 28, 2024
Merged

Add new input module #123

merged 38 commits into from
Jul 28, 2024

Conversation

toast003
Copy link
Collaborator

No description provided.

@toast003
Copy link
Collaborator Author

Had a bit of a brain fart there, sorry for the force pushing

@toast003 toast003 mentioned this pull request Apr 11, 2024
@toast003
Copy link
Collaborator Author

toast003 commented Jul 1, 2024

@magnouvean I changed the write_config script a bit, since doing base conversion inside nix seems too complicated.
I am very new at python, and although my code seems to work just fine I would appreciate if you could take a look at it

@toast003
Copy link
Collaborator Author

toast003 commented Jul 1, 2024

Also I don't think the check failing was due to something I did, not sure why
EDIT: nvm it is, I'll fix it later

Copy link
Collaborator

@magnouvean magnouvean left a comment

Choose a reason for hiding this comment

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

I can't really test much atm, but looking at the code in general this looks fine after the minor suggested tweaks :)

script/write_config.py Outdated Show resolved Hide resolved
script/write_config.py Outdated Show resolved Hide resolved
script/write_config.py Outdated Show resolved Hide resolved
modules/input.nix Outdated Show resolved Hide resolved
modules/input.nix Outdated Show resolved Hide resolved
First real python code I wrote so I made some rookie mistakes
@toast003
Copy link
Collaborator Author

toast003 commented Jul 7, 2024

I will when I finish

@magnouvean
Copy link
Collaborator

I'll try to add support for configuring multiple touchpads and add some assertions today. I think I'll just commit directly here if that's OK :)

@magnouvean
Copy link
Collaborator

Imo it's more or less good enough to merge in the current state. I haven't found any issues (though I also haven't done enough testing to confirm a lot of edge-cases). There are obviously some tweaks as mentioned above such as changing the README and maybe also adding some examples.

@HeitorAugustoLN
Copy link
Member

HeitorAugustoLN commented Jul 22, 2024

@toast003 I sent you a pull request that adds configurations for mouses in the input module.

@toast003
Copy link
Collaborator Author

You guys did all of my work 😅

@HeitorAugustoLN I'll take a look at it rn

HeitorAugustoLN and others added 4 commits July 24, 2024 15:10
@toast003
Copy link
Collaborator Author

All seems good to me!

I'll change the readme and after that I think we can merge the PR

@toast003 toast003 marked this pull request as ready for review July 24, 2024 15:57
Copy link
Collaborator

@magnouvean magnouvean left a comment

Choose a reason for hiding this comment

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

I'll test more right away

modules/input.nix Outdated Show resolved Hide resolved
@magnouvean
Copy link
Collaborator

But yeah other than the two minor things above this work great so we can probably merge after they are fixed :)

@magnouvean magnouvean merged commit b3b80a0 into nix-community:trunk Jul 28, 2024
1 check passed
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.

5 participants