crontab easier solution #5

Open
opened 2026-05-04 12:35:24 +00:00 by utopiah · 0 comments
Owner

e.g.

* 8-17 * * 1-5 killall SlayTheSpire && date >> ~/shame
# prevents from playing during weekday working hours
# de-activated during holidays

        # consider also a threshold e.g. pgrep mpv && >> mpv_minutes; if [ $(wc -l .viminfo | sed 's/ .*//') -gt 1000 ]; then echo beyond threshold; fi

        # watch -n 60 "pgrep SlayTheSpire >> SlayTheSpire.minutes; pgrep firefox >> firefox.minutes; "
        # wc -l SlayTheSpire.minutes firefox.minutes 
        # possibly to be more specific than just browser getTabs 
e.g. ```bash * 8-17 * * 1-5 killall SlayTheSpire && date >> ~/shame # prevents from playing during weekday working hours # de-activated during holidays # consider also a threshold e.g. pgrep mpv && >> mpv_minutes; if [ $(wc -l .viminfo | sed 's/ .*//') -gt 1000 ]; then echo beyond threshold; fi # watch -n 60 "pgrep SlayTheSpire >> SlayTheSpire.minutes; pgrep firefox >> firefox.minutes; " # wc -l SlayTheSpire.minutes firefox.minutes # possibly to be more specific than just browser getTabs ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: utopiah/online-hygiene#5