Hyde-cli icon indicating copy to clipboard operation
Hyde-cli copied to clipboard

Features discussion

Open rubiin opened this issue 1 year ago • 50 comments

Make readme more user friendly. May include an optional video tour guide on install. Also add sections on how to update to latest hyprdots

rubiin avatar May 05 '24 09:05 rubiin

Soon will change the goal of this project. At first, it only acts as helper and workarounds, but I guess we should consider turning this project as a wrapper for Hyde.

kRHYME7 avatar May 05 '24 15:05 kRHYME7

I think we should make the cli as preferred option for installing dots in the readme . And the git clone as manual

rubiin avatar May 05 '24 15:05 rubiin

tl;tr

Not yet, for now. As the CLI is dependent on some install scripts from Hyde. I am now considering an independent one in case we can't follow the breaking changes upstream.

Expect a markdown for these soon in README.

Hyde-install Done:

  • shell selection
  • patching themes
  • Sddm theme selectiom
  • Restoring configs

not yet:

  • nvidia handling ( will steal it from upstream or I'm considering forking the endeavorOS nvidia-inst pkg ) Can you check if it's legal? I already tested it on my local and it works. I'm hesitant because no one ported this packaeg to AUR. (nvidia-inst AUR is ready too, in my local machine 😄)
  • GRUB, (will copy upstream lol)

What's on my plate:

  • Hyde-TUI templating (for declarative formats for devs - just bash lol )
  • Package installation
  1. Everything works now my only issue is I really want to store the package array inside a variable not a file so that it will be faster than writing multiple files. (Just my ego and proof of concept)
  2. We can write it all in memory, drawbacks are We should execute everything in a single shell , or do some exports.

Will try 2 this week if it's too much then will use the first method.

I made a fast sketch: image

NOTE consider --[flags] to be invoked manually and consciously, this gives freedom without breaking the defaults for unconscious inputs.

kRHYME7 avatar May 05 '24 16:05 kRHYME7

Also, I think we should rename the cli from "Hyde" to "hyde" , most clis have small case naming patterns

rubiin avatar May 06 '24 09:05 rubiin

Also another thing, the make version of the install requires you to sudo. Is it okay?

rubiin avatar May 06 '24 09:05 rubiin

Yes it requires sudo so that it will be available systemwide.

kRHYME7 avatar May 06 '24 09:05 kRHYME7

about the Command being Uppercase, It's for clarity and being conscious of what the user types in the Terminal.

is it really necessary to make it lowercases?

kRHYME7 avatar May 06 '24 10:05 kRHYME7

nah not necessary but a typical linux person would definitely type hyde after installing as the aur name is also hyde-cli-git .

rubiin avatar May 06 '24 13:05 rubiin

Will leave it like that for now.

My convention for this is like

1st: Main Command 2nd: Actual function 3rd: [args/params]

For me this is too long, so I decided to make the first command stand out, indicating that this is the main Shell. Something like that. Will definitely make it lowercase if 2 or more requested it. ( inspired byt the Compositor command Hyprland )

kRHYME7 avatar May 06 '24 13:05 kRHYME7

that makes sense. lets get on with the remaining milestones . I could help out on my free time with some issues

rubiin avatar May 06 '24 13:05 rubiin

I'm just annoyed with the Hyde.usage haha. I'm thinking of breaking it down to single file for each funtions. eg upgrade restore etc then will make a script to merge them later on, plus compile with complgen. It is not a perfect solution, But will make it easier for me and other contributors to find the function via file, then add its related function.

Another thing can we use endeavorOS nvidia-inst? https://github.com/endeavouros-team/PKGBUILDS/blob/master/nvidia-inst/nvidia-inst

kRHYME7 avatar May 06 '24 13:05 kRHYME7

@rubiin Hello! the Hyde.usage now is auto generated

kRHYME7 avatar May 08 '24 03:05 kRHYME7

@kRHYME7 cool. Will try out. It was a pain to maintain the usage file as we are adding so many things .

rubiin avatar May 08 '24 04:05 rubiin

This is exclusive for --dev (contributors)

so Hyde --dev select the gen completion then it will output the Hyde.usgae in the terminal (stdou).

or just using ./complgen.sh

kRHYME7 avatar May 08 '24 05:05 kRHYME7

I was thinking of adding jp2a dependency when installing from aur for seamless experience

rubiin avatar May 10 '24 06:05 rubiin

This is used to render images in ascii right?

kRHYME7 avatar May 10 '24 10:05 kRHYME7

yup. Having it will dependency will make the CLI workable straightforward

rubiin avatar May 10 '24 10:05 rubiin

I was thinking of adding jp2a dependency when installing from aur for seamless experience

@kRHYME7 is this there? Or should I make a pr.

rubiin avatar Jun 01 '24 14:06 rubiin

This will opt to install when running anything that renders images and not using kitty

kRHYME7 avatar Jun 01 '24 18:06 kRHYME7

closing this as it looks covered

rubiin avatar Jun 25 '24 10:06 rubiin

@kRHYME7 you can take code plus inspirations for features from here https://github.com/JaKooLit/Hyprland-Dots that will make hyde a lil better

rubiin avatar Jul 03 '24 10:07 rubiin

@kRHYME7 how about a powersaver mode? Like powersaver on would quicky turn off all these

[-a] [--animations] Default animations [-ba] [--borderangle] Default border angle animation [-b] [--blur] Default blur [-o] [--opacity] Default tranparency

and again on toggle would enable them.

The current toggle option doesnt do anything :(

rubiin avatar Aug 03 '24 15:08 rubiin

Yes that would be helpful! But take note this is NOT set using hyprctl keywords so it will be a persistent mode across reboots.

kRHYME7 avatar Aug 03 '24 16:08 kRHYME7

yeah lets make toggle act as what the name would suggest. I dont know what toggle does now atm

also can you merge the PR so we might release the 0.60

rubiin avatar Aug 03 '24 16:08 rubiin

yeah lets make toggle act as what the name would suggest. I dont know what toggle does now atm

Toggle will unset/set everything being declared set.

So when you run Hyde power save --[multiple_params] you could unset it using "toggle". Then you can set it back to set it again. I will be adding Hyde power save --all ` to set into power save all the [params]

kRHYME7 avatar Aug 04 '24 01:08 kRHYME7

yeah lets make toggle act as what the name would suggest. I dont know what toggle does now atm

Toggle will unset/set everything being declared set.

So when you run Hyde power save --[multiple_params] you could unset it using "toggle". Then you can set it back to set it again. I will be adding Hyde power save --all ` to set into power save all the [params]

what will be the counterpart for save --all . If save --all would allow to restore the chnages prior to the command, then maybe I could add a waybar module with a button to turn on and off powersaver mode for convinience

rubiin avatar Aug 04 '24 02:08 rubiin

Is Hyde power save off good?

The toggle command actually just add/remove the sourced file of the Hyde power options so it would still be good Idea to have explicit on/off, in which will be handles by save on and save off

But to maintain the initial convention I will still add

Hyde power save --all is same with Hyde power save on Hyde power unset --all same as Hyde power save off

This way we can toggle them one by one and in bulk.

kRHYME7 avatar Aug 04 '24 03:08 kRHYME7

image

kRHYME7 avatar Aug 04 '24 03:08 kRHYME7

yeah save on and save off sounds good. I will try to implement a waybar module too

rubiin avatar Aug 04 '24 06:08 rubiin

How I wish we could come up with a good plugin system for HyDE. It is easy to input files but managing it across updates and removing it is an extra work.

This plugin system should be the backbone of the installer and anything HyDE extra stuff.

kRHYME7 avatar Aug 04 '24 07:08 kRHYME7