How to Modernize Your Bash Scripts By Adding GUI
Tired of displaying raw text on Console? Try Zenity & notify-send
Bash scripts contain a set of instructions written in Bash command language and those scripts can be executed in Unix shell interpreters. We use bash scripts to automate several tasks that are apparently time consuming if we follow the manual way of doing it. But if we compare with modern computing bash scripts are old fashioned stuff since all the interactions with the user are done through the command line interface. We know that several developers are using eye catching signs and colors in order to highlight important things in the console interface. If a particular old fashioned bash script is used by a highly technical audience that is fine. But if it is used by a general audience it is obviously good to have some user friendly interactions.
In fact, you are able to include GUI (Graphical User Interface) based input/output components into your next bash script using the Zenity command line tool which helps us to display GTK dialog boxes. Furthermore, Native GUI notifications can be displayed using the notify-send command line tool. These two tools are usually coming with popular Linux distributions, therefore there is no need for any kind of pre-installations.