Send a bell when a long-running command ends

This commit is contained in:
Alexander Bantyev 2022-05-03 21:26:30 +03:00
parent f9fec1e441
commit 2c3cf1b9a4
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5

View File

@ -86,6 +86,7 @@
fi fi
if [ ! -z "$cmd" ] && [[ $cmd_time -gt 3 ]]; then if [ ! -z "$cmd" ] && [[ $cmd_time -gt 3 ]]; then
${pkgs.libnotify}/bin/notify-send -a command_complete -i utilities-terminal -u low "$cmdstat $cmd" "in `date -u -d @$cmd_time +'%T'`" ${pkgs.libnotify}/bin/notify-send -a command_complete -i utilities-terminal -u low "$cmdstat $cmd" "in `date -u -d @$cmd_time +'%T'`"
echo -e '\a'
fi fi
unset cmd unset cmd
} }