Linux Desktop notifications

Date: 2018-07-16

Source: https://www.maketecheasier.com/desktop-notifications-for-linux-command/

#! /bin/bash
 
if sudo apt install $1; then
    notify-send "Install Successful!" "$1 installed successfully" -u normal -t 5000 -i checkbox-checked-symbolic;
else
    notify-send "Install Failed" "$1 failed to install" -u critical -i error;
fi
ssh -X user@192.168.0.112 'DISPLAY=:0 notify-send "HAHA I'm In Your Computer!" "Deleting all your stuff!" -u critical -i face-worried'

 

11680cookie-checkLinux Desktop notifications