News for hackers. Stuff that matters.
Re:Modernize your Bash Scripts by adding GUI by Nightshaxx on Monday September 28, 2020 @02:02AM (#24613423)
I feel like notifications would be the only thing on that list I could see myself using. I know you can make the terminal make a noise, but I sometimes prefer visual alerts.
Re:Modernize your Bash Scripts by adding GUI by MayeulC on Monday September 28, 2020 @03:01AM (#24613734)
Edit: I read the article, this is covered a bit.

On Linux you can use `notify-send "title" "content"`. The only limitation it has is that you can't query the notification id to update or selectively dismiss it later.

Also, many terminals will have a visual alert instead/together with a sound: konsole does this, for instance.

Re:Modernize your Bash Scripts by adding GUI by bayindirh on Monday September 28, 2020 @05:20AM (#24614662)
Many Linux terminals can monitor for activity/silence/bell/process exit. Using these facilities, notifications can be done without modifying the script.
Re:Modernize your Bash Scripts by adding GUI by qz2 on Monday September 28, 2020 @02:24AM (#24613539)
./dosomething && mail user -s job done
Re:Modernize your Bash Scripts by adding GUI by kps on Monday September 28, 2020 @10:33AM (#24617005)
I use a shell script to flash the terminal background using OSC 11 — green or red depending on the last exit status.