Add wake-me-up script and wmu alias

Runs a command and sends a notification if it takes longer than a second
This commit is contained in:
Talia 2023-05-08 16:14:42 +02:00
parent 22d1b2fc45
commit fbfb29c27f
2 changed files with 8 additions and 0 deletions

7
bin/wake-me-up Executable file
View file

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

View file

@ -19,6 +19,7 @@ alias sakura='oneko -bg "#ffddee" -sakura -name sakura'
alias setclip='xclip -selection c' alias setclip='xclip -selection c'
alias tmux='tmux -2' alias tmux='tmux -2'
alias w='watch -t -d -n 1' alias w='watch -t -d -n 1'
alias wmu='wake-me-up'
# Funny # Funny
alias please='sudo' alias please='sudo'