2023-04-09 11:09:53 -04:00
|
|
|
#! /usr/bin/env bash
|
|
|
|
|
|
|
|
# start activity watch without QT
|
|
|
|
|
2023-04-29 13:26:04 -04:00
|
|
|
/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
|