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

init.lua #1

Open
dodo opened this issue Apr 21, 2012 · 1 comment
Open

init.lua #1

dodo opened this issue Apr 21, 2012 · 1 comment

Comments

@dodo
Copy link
Contributor

dodo commented Apr 21, 2012

how about adding an init.lua file?

so i can use couth simply as git submodule in my awesomerc without changing anything :)

this would even simplify the necessary require:

require("couth")
@gorlowski
Copy link
Owner

Interesting. I'm not a very experienced git user, and I was unaware of how git submodules work. I did a quick DDG search and read up on them.

Maybe I will add a function called couth.config(args) that will take a simple list of options like

require("couth")
couth.config({alsa = couth.AUTOCONFIG, ... }) 

That way the user could choose the default keybindings with a simple function call or she could not use the autoconfig and instead bind keys manually.

I could configure couth.CONFIG.ALSA_CONTROLS automatically if the user chooses some autoconfig option. The code could call amixer to get the list of controls and include all the ones that have a "pvolume" capability.

I'll look into this some evening this week and update the code to add some kind of autoconfig option with sensible defaults + introspection of alsa controls. I'll have to think about a way to make the configure statement both simple and flexible.

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

No branches or pull requests

2 participants