Live data from Hacker News

Modernize your Bash Scripts by adding GUI

medium.com

1–10 of 72 posts

Re: Modernize your Bash Scripts by adding GUI

#2
"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.

Re: Modernize your Bash Scripts by adding GUI

#4
This is such a backwards way of thinking. Like modernizing math by using little colored blocks with symbols written on them, because your tired of using boring old white and black pencil and paper... It's what you do to entertain children into being interested in something, not how adults get stuff done.

Re: Modernize your Bash Scripts by adding GUI

#6

This is such a backwards way of thinking. Like modernizing math by using little colored blocks with symbols written on them, because your tired of using boring old white and black pencil and paper... It's what you do to entertain children into being interested in something, not how adults get stuff done.

There is a value in making things enjoyable/a bit fun to use. I would prefer my real analysis textbook to have color block. I don't understand the concept that adults need to use product that is boring.

Re: Modernize your Bash Scripts by adding GUI

#9
I find that Zenity really shines if the script is intended to be launched outside of a terminal window.

For example, I have a script bound to Super+Y that opens a youtube video inside a local video player. Before it starts the video it shows a zenity popup with the URL so I can confirm that it is correct.

Re: Modernize your Bash Scripts by adding GUI

#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."
Post reply on HN