kRHYME7 / Hyde-cli

A HyDE CLI, wrapper, tweaks , workarounds, and more!
https://github.com/prasanthrangan/hyprdots
GNU General Public License v3.0
56 stars 4 forks source link

[Feature Request] Try to use a config file? #2

Closed Skerse closed 6 months ago

Skerse commented 6 months ago

I was thinking, and i'd be happy to help on the implementation of this, i think it would be useful to have a config file for the configuration of Hyprdots-ctl. It doesn't need to have many options, the biggest reason i had in my mind was if we could change the URL and branch of where Hyprdots would be downloaded from without it being hard-coded into the package itself.

Some other ideas i had:

All of this would be stored in something like ~/.config/hyprdots-ctl.conf.

Also, i hope you don't mind if i use an issue page, i would start a discussion, but i don't think you enabled it. If you want to enable it that would be nice.

kRHYME7 commented 6 months ago

Change how often it checks for updates

Is 12 hours too soon right, What can you recommend? also The lock file wll be deleted after reboot so it would check updates every after boot

Specify the exact location of Hyprdots

This might be very dangerous as all of the CLI will fail if It can't find the directory. If you meant about the Fresh install I will add that option.

but I did add the Hyprdots --clone /path/to/dir option but it is for testing, it won't be in man for now.

What can you recommend for how would this be implemented?

I am testing now the control file system, I appended it with .conf. This involves 1 script and a Control file, After restoring the default Hyprdots the script is run.

I will try to use perl as perl is faster but I'm still trying to figure it out here is the WIP to restore the user Variables https://github.com/kRHYME7/Hyprdots-ctl/blob/master/Scripts/define_user.sh

then here is the control file https://github.com/kRHYME7/Hyprdots-ctl/blob/master/Configs/hyprdots.conf

kRHYME7 commented 6 months ago

Also, i hope you don't mind if i use an issue page, i would start a discussion, but i don't think you enabled it. If you want to enable it that would be nice.

I'll try explore github now

Skerse commented 6 months ago

Is 12 hours too soon right, What can you recommend?

12 hours is fine, could be less too, in my opinion just don't bother the user if there is nothing to do.

it won't be in man for now

Perhaps we could add Hyprdots man advanced or something similar that's mostly for testing and could cause issues?

What can you recommend for how would this be implemented?

I'm not really sure, i think that implementation is fine.

Really, i just make this feature request because i think it'd be great to have more user control, you know? I also thought it'd be nice to maintain my fork of hyprdots with some personal modifications, and this script work with that also.

kRHYME7 commented 6 months ago

Is the update query disturbing? like it take up time to load?