rioastamal / shfokus

shFokus is Bash script to make you focus and stay productive by blocking distracting websites such as Facebook, Youtube etc.
24 stars 2 forks source link

Unblock with duration #1

Closed rioastamal closed 4 years ago

rioastamal commented 4 years ago

Currently we only have "block with duration" feature but missing "unblock with duration". It could be nice if we have both. It should be easy to implements.

    [[ "$MODE" == "unblock" ]] && {
        echo "Distracting websites has been unblocked -- Enjoy your day :)"

        [[ "$FOKUS_MINUTES" != "0" ]] && shfokus_unblock_in_minutes
        return 0
    }
rioastamal commented 4 years ago

This has been implemented. Closing this issue.

Ref: 1357dc5a9778b61101a4d9151ca47e3d97c3e7b0