adamharmansky / showkeys

Keybind popup like in awesomewm
MIT License
65 stars 1 forks source link

parsing config files #1

Open iamlambda opened 2 years ago

iamlambda commented 2 years ago

Instead of getting keybinds from config files you write by hand, it would be better to parse specific config files according to each program. btw this is very pog.

adamharmansky commented 2 years ago

Yes, I am currently working on the loading mechanism. I will need to split it into multiple functions, like load_program, load_category and load_key and optimize the string operations.

I probably don't want to parse the individual config files in the program itself, but rather create a script that will convert the files.

adamharmansky commented 2 years ago

Alright, the load function is fixed.

I will try to make a script that parses dwm config.h, we'll see how reliable it is.

I'll leave this thread open if anyone has suggestions on parsing config files.

0Karakurt0 commented 2 years ago

I'd say it would be more beneficial to make showkeys read it's own config and provide a bunch of scripts that would generate this config from other programs configs (dwm, i3wm, vim, etc). Besides... Why directories with text files? I was expecting something like JSON