-
Notifications
You must be signed in to change notification settings - Fork 7
Large refactor and some todo list items completed #4
Conversation
Thanks for your interest! I currently do not have the time, but I'll review this as soon as possible. |
theres an empty and about the |
iirc the socket allows you to send a batch of cmnds at once using |
yeah but i mean like how would you get all the settings via socket without knowing the names of every single specified setting before hand? reading from the file you just need to scan for the category names but via socket (unless im missing someting) you have to manually call every genera:thing general:thing2 general:thing3 right? |
i dont think there is anything to get all the settings at once without knowing each option thru socket, i had to do something like this for |
Yeah but even then you miss any device:name custom config options set by the user. I think just parsing the file is fine unless they eventually let you query for all settings from the socket. Up to you guys though. The new reader is pretty easy to add new categories/subcategories to tho. |
I prefer reading from a static config file (i.e. |
With the addition of |
if you want to have the config file conversion eventually then i would leave the file reader writer and build on it. but we can use hyprctl binds to get binds set during runtime |
i added the hyprctl reading and converting the modmask number. if your bindings have double quotes in it hyprctl doesnt validate the json before returning it so you get errors. i just changed all my double quotes to single and it works fine. |
Could you try if it works after the fix vaxry implemented? I am inclined to believe this is ready for merging (although I was intending to make parsing comments a command line flag) if it works on the latest version of Hyprland. Side note, if you could record a quick demo gif (using a tool such as vhs, perhaps) to put in the readme I would appreciate that. |
yeah it works after the recent fix. i can make comments a command line argument rq and record a video sure. |
Thanks! |
okay i added the flag and video and picture to readme |
The |
so right now the behavior is binds are always output then you can add additional things by adding flags. so --auto-start prints binds + execs --variables prints binds + variables. would you rather default output nothing and have a --binds flag to print the binds. |
i added a --binds flag it should work more how you were expecting now |
Ah, I wasn't trying to tell you to change the behaviour as I was only confused, but thanks regardless. LGTM! I will be merging this unless there is anything else you would like to add? |
nah seems fine for me. and it makes more sense to work with flags so idm. |
I spent some time refactoring this for personal use.
JSON output has been added
output to passable file
command line argument improvements (getopt)
handles and displays comments in JSON and markdown output
handles pipes in markdown output
updated markdown output to not have the "bind* =" part
added Makefile for install
config file parsing to read all variable categories and subcategories
proper go tests and removed the --test flag, outputs all test results to test/ directory
and probably something i cant remember
if you want anything done differently let me know I am happy to work on it.