How to send desktop notifications to users from the terminal (notify-send)


I often encountered such a problem before, that is, when I compile a software or execute a command for a long time, I often check whether the command has been executed or not, then will there be such a tool? When executing make or a long-running command, send a notification to your desktop after it has completed, as shown in the picture in this article, so that you don't need to constantly switch to the terminal to see this The command has not been executed. So today I recommend a tool called notify-send

install and use

Installation is very simple, just use it under ubuntu, sudo apt-get install libnotify-binjust do it when you execute make or other commandsmake && notify-send make-finished

Welcome to follow Bboysoul's blog Have Fun

Guess you like