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

feat(screenshot): upload screenshot

Open rubiin opened this issue 1 year ago • 10 comments

Adds a script that can upload the screenshot taken. The best place to invoke the script is to add it here https://github.com/kRHYME7/Hyde-cli/blob/9a94ab16f9134fe63d40dc3cf86bfaec2f0a65a8/Hyde#L770

Maybe a --share option ?

Also note this introduces a new dep pngquant which is a image compression

rubiin avatar May 26 '24 14:05 rubiin

demo : image

rubiin avatar May 26 '24 14:05 rubiin

Will try to find alternative, this actually gives 2 dependencies. insert 'yad '

kRHYME7 avatar May 26 '24 14:05 kRHYME7

yad was already there on my system . Just had to install pngnaut

rubiin avatar May 26 '24 14:05 rubiin

what is the use of pngnaut BTW ?

kRHYME7 avatar May 26 '24 14:05 kRHYME7

what is the use of pngnaut BTW ?

image compression.

whiptail --msgbox "my text" 10 20 for dialog you can replace with this. This is native

rubiin avatar May 26 '24 14:05 rubiin

I think we can remove that too. Will refactor

rubiin avatar May 26 '24 14:05 rubiin

for image comp/decomp we can use imagemagick

kRHYME7 avatar May 26 '24 14:05 kRHYME7

WAhhhh what package brought whiptail ?? I got it too

I see! This is for terminal, right? lemme check anything about it. This is cool

kRHYME7 avatar May 26 '24 14:05 kRHYME7

whiptail is native terminal dialog

rubiin avatar May 26 '24 14:05 rubiin

okay removed both dep. Thanks chatgpt :D

rubiin avatar May 26 '24 14:05 rubiin

@rubiin Yow I got something for yah.

image

You can play around with notify send plus rofi. Here's the basic idea ❯ notify-send "upload online??" --action="okokoko" --action="command to do so " --action="alright"

kRHYME7 avatar May 27 '24 14:05 kRHYME7

@kRHYME7 any updates on this. I am thinking of adding a font switcher afterwards for Hyde. Will switch fonts for kitty, code and maybe waybar

rubiin avatar Jun 14 '24 05:06 rubiin

You can play around with notify send plus rofi. Here's the basic idea ❯ notify-send "upload online??" --action="okokoko" --action="command to do so " --action="alright"

I think we can harness

The notification prompt for this.

Will merge this later but maybe I'll change it.

kRHYME7 avatar Jun 14 '24 06:06 kRHYME7

You can play around with notify send plus rofi. Here's the basic idea ❯ notify-send "upload online??" --action="okokoko" --action="command to do so " --action="alright"

I think we can harness

The notification prompt for this.

Will merge this later but maybe I'll change it.

What do you think about the font change?

rubiin avatar Jun 14 '24 06:06 rubiin

What do you think about the font change? That would be cool!

Are you trying to do text manipulation for each config files?

kRHYME7 avatar Jun 14 '24 06:06 kRHYME7

yeah I already have local script tailored for my needs , thoiught i should share Its inspired from https://github.com/basecamp/omakub/blob/master/bin/omakub-font Wont be downloading the fonts just displaying a list of fonts(fonts from hyperdots installation only) and prompting user to pick a font and then prompting on what apps they want to use them. The apps being code, terminal , and maybe waybar

rubiin avatar Jun 14 '24 06:06 rubiin

Wow, sure! I'll surely check that out.

kRHYME7 avatar Jun 14 '24 07:06 kRHYME7

Its inspired from https://github.com/basecamp/omakub/blob/master/bin/omakub-font

You can use this to list the fonts beautifully fc-list --format="%{family[0]}\n" | sort | uniq

kRHYME7 avatar Jun 15 '24 17:06 kRHYME7

Do merge the release PR when you are done with the revisions

rubiin avatar Jun 16 '24 14:06 rubiin