Thursday, December 24, 2015

bash console GUI popup notification

The following script allows for GUI popup display for Ubuntu and the likes:

#!/bin/bash

# basic script to display a GUI popup box
# requires libnotify-bin (for command notify-send)
notify-send -t 4000 "Take a look at the console !" $(eval pwd)"\n"`date +%Y/%m/%d-%H:%M:%S`

No comments:

Post a Comment