Live data from Hacker News

Modernize your Bash Scripts by adding GUI

medium.com

11–20 of 72 posts

Re: Modernize your Bash Scripts by adding GUI

#11
post #3

If you just need to display some text or at most you need a "yes/no" answer that integrates well with your bash script, you could try herbe[1]. I was somewhat inspired by zenity, but it felt too heavy for my minimal use case. [1] https://github.com/dudik/herbe

Too heavy? The executable I just built is 19K. I like it for localhost.

Did you wind up picking something else?

Re: Modernize your Bash Scripts by adding GUI

#13
post #10
post #3

If you just need to display some text or at most you need a "yes/no" answer that integrates well with your bash script, you could try herbe[1]. I was somewhat inspired by zenity, but it felt too heavy for my minimal use case. [1] https://github.com/dudik/herbe

Try `notify-send TEXT` instead. E.g. alias n="notify-send Completed."

Thank you, but I don't use a notification server.

Re: Modernize your Bash Scripts by adding GUI

#14
post #3

If you just need to display some text or at most you need a "yes/no" answer that integrates well with your bash script, you could try herbe[1]. I was somewhat inspired by zenity, but it felt too heavy for my minimal use case. [1] https://github.com/dudik/herbe

Too heavy? The executable I just built is 19K. I like it for localhost. Did you wind up picking something else?

Sorry for my poor choice of words. What I wanted to say was that I prefer using software that does exactly what I need and nothing else. For some people it might sound silly, but I enjoy the suckless philosophy.

Re: Modernize your Bash Scripts by adding GUI

#16

"Tired of displaying raw text on Console?" Nope. I am a scripter. I will never get tired of raw text, but I sure get tired of GUIs, fast. If the author had pitched this as a way to make the scripter's scripts accessible to others who do not understand scripts, I would have a different response.

Last sentence of the first paragraph "But if it is used by a general audience it is obviously good to have some user friendly interactions."

Re: Modernize your Bash Scripts by adding GUI

#18

Scripts are useful, even to the non-technical. Easily adding some GUI to a user-facing script is a good thing.

Agreed. While most people on this website would probably not use it, this can only expand the use of bash scripts to the general public, and encourage the next generation to get interested in them.

Re: Modernize your Bash Scripts by adding GUI

#19

I don't understand this recent trend of modernizing things just for the sake of modernity. Old ideas are often the best ones, why shove everything down the drain every five years?

Accessibility. You and I would probably use the CLI versions of these bash scripts. But my parents or friends would probably not use one unless it came with a GUI. Getting them interested in running shell scripts rather than purchasing expensive apps can only be a good thing.

Re: Modernize your Bash Scripts by adding GUI

#20

I always thought shell scripts are intended to avoid using GUI altogether?

I write shell scripts all the time. I have probably written hundreds of shell scripts this year.

If you think it was to avoid using a gui, I would have to say that's not really it.

It's more to do something (automate stuff) rather than not do something.

I learned about zenity but chose yad instead - it has the same interface + a few more bells and whistles.

What it's good for is launching something you'll do on your primary display, that has a lot of options that you might change individually.

probably also good for a phone. I learned about yad reading this article:

https://wp.puri.sm/posts/easy-librem-5-app-development-flash...

Post reply on HN