darkrc/bin/wake-me-up
DarkWiiPlayer fbfb29c27f Add wake-me-up script and wmu alias
Runs a command and sends a notification if it takes longer than a second
2023-05-08 16:14:42 +02:00

7 lines
118 B
Bash
Executable file

#!/bin/sh
start=$(date +%s)
$@
if [ $(($(date +%s) - $start)) -gt 0 ]
then notify-send "Command finished:" "$*"
fi