KEY_EVENT might not be always defined
[dvtm.git] / dvtm-status
blob6062248fd6f7979dd24a202aaad9e0c47cb6a818
1 #!/bin/sh
3 FIFO="/tmp/dvtm-status.$$"
5 [ -e "$FIFO" ] || mkfifo "$FIFO"
6 chmod 600 $FIFO
8 while true; do
9 date +%H:%M
10 sleep 60
11 done > $FIFO &
13 STATUS_PID=$!
14 dvtm -s $FIFO "$@" 2> /dev/null
15 kill $STATUS_PID
16 rm $FIFO