19 lines
483 B
Bash
19 lines
483 B
Bash
#! /usr/bin/env bash
|
|
|
|
# start activity watch without QT
|
|
|
|
/usr/bin/aw-server > /dev/null 2>&1 &
|
|
while ! ss -tnlH | grep '127.0.0.1:5600' > /dev/null; do
|
|
sleep 0.2
|
|
done
|
|
|
|
/usr/bin/aw-watcher-window < /dev/null > /dev/null 2>&1 & disown
|
|
while ! ss -apH state established | grep aw-watcher-wind > /dev/null; do
|
|
sleep 0.2
|
|
done
|
|
|
|
/usr/bin/aw-watcher-afk < /dev/null > /dev/null 2>&1 & disown
|
|
while ! ss -apH state established | grep aw-watcher-afk > /dev/null; do
|
|
sleep 0.2
|
|
done
|