Send a bell when a long-running command ends
This commit is contained in:
parent
f9fec1e441
commit
2c3cf1b9a4
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user