hyprland-community / Hyprkeys

A simple, scriptable keybind retrieval utility for Hyprland [maintainer=none]
GNU General Public License v3.0
120 stars 6 forks source link

add some parser functionality (parse blocks and group them into global, input, general, etc...) #2

Closed flick0 closed 1 year ago

flick0 commented 1 year ago

image is output for config

$globalvar=9999

general{
    generalconfig = 000000
    nested {
        spaces_after_labels_work_too=nested,nested
    }
}

another_block{
    another_block_contents=1
}
NotAShelf commented 1 year ago

And also, please use the command line flags for parsing individual config sections. The general idea should be:

./Hyprkeys (without arguments) & ./Hyprkeys --help = example usage ./Hyprkeys --verbose = Print config options as is ./Hyprkeys --markdown = Print config options (this is mostly for binds, maybe not necessary for config values) in a markdown table.

Ideally, we should combine arguments together to get a functional output. For example:

./Hyprkeys --binds --verbose would print only the binds, as would replacing --verbose with --markdown would print those; but in markdown.

To print out config options, please add a flag like --keywords that can be combined with --verbose or --markdown