@@ -0,0 +1,22 @@ | |||
#!/bin/bash | |||
if [[ $1 ]]; then | |||
name=$1 | |||
else | |||
name="<unknown>" | |||
fi | |||
code=1 | |||
while true; do | |||
read -r -d "" -t 10; | |||
code=$? | |||
if [[ $code > 128 ]]; then | |||
continue | |||
fi | |||
if [[ $code != 0 ]]; then | |||
break; | |||
fi | |||
mnotify "Bell from $name" | |||
done; |
@@ -1,3 +1,6 @@ | |||
alias irc="ssh serve.mort.coffee -t \"tmux attach -t $1\"" | |||
alias please="sudo $(history -p \!\!)" | |||
alias fuck="sudo pkill -9 $1" | |||
alias attach="ssh serve.mort.coffee -t \"tmux attach -t $1\"" | |||
function irc | |||
{ | |||
attach $1 | tee >(mbell "irc $1") | |||
} |