Ubuntu – Notify-send and terminal command

command linenotificationnotify-osdnotify-send

Let's use sudo apt-get install linux as an example.

Here is the notify send command: notify-send -i terminal Bash "execution complete"

How could I substitute 'bash' with the entire sudo command? Where the command appears in bold as the title as "execution complete" displays below it as a message. This would be used as a means of notification. Once a command finishes a notification appears displaying the message.

Others have used ";alert" to utilize notify-send.
notify-send -i terminal Bash "execution complete" is saved as an alias as 'alert,' I'd like to add to this alias for the sake of convenience.

Best Answer

You format text with html code

notify-send -i terminal "<font size=16 color=blue><b><i>'bash -c ls'</b></i></font>"  "execution complete"

change what is in the single quotes with the command you wish, feel free to change the size and color to what you wish.

If you need assistance, post your code and more detailed information on what you wish to change