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.
[ Parent
| on HN ]
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.