X-Git-Url: https://git.r.bdr.sh/rbdr/r.bdr.sh/blobdiff_plain/4356e493efd67f3ba62b83dcd84458e8957a4062..1bf7c9b9f1fd1a86add1fd18f310f506df26d5fc:/swiftbar/sourcehut-builds.1m.sh diff --git a/swiftbar/sourcehut-builds.1m.sh b/swiftbar/sourcehut-builds.1m.sh index d7ae08f..d5d2ae4 100644 --- a/swiftbar/sourcehut-builds.1m.sh +++ b/swiftbar/sourcehut-builds.1m.sh @@ -9,14 +9,27 @@ # https://r.bdr.sh/swiftbar_scripts.html # string(VAR_SOURCEHUT_API_TOKEN): Your sourcehut API Token. # number(VAR_BUILD_COUNT=10): How many items to show. +# string(VAR_RUN_ON_FOCUS): Focus in which to run. +# string(VAR_HALT_ON_FOCUS): Focus in which to halt. # true -# VAR_SOURCEHUT_API_TOKEN=no, VAR_BUILD_COUNT=9 +# VAR_SOURCEHUT_API_TOKEN=no, VAR_BUILD_COUNT=9, VAR_RUN_ON_FOCUS=, VAR_HALT_ON_FOCUS= ############################################################################### # The Variables ############################################################################### VAR_SOURCEHUT_API_TOKEN=${VAR_SOURCEHUT_API_TOKEN:-'ADD YOUR TOKEN HERE'} VAR_BUILD_COUNT=${VAR_BUILD_COUNT:-10} +VAR_RUN_ON_FOCUS= +VAR_HALT_ON_FOCUS= + +############################################################################### +# Focus Check +############################################################################### + +if [[ -f "${BASH_SOURCE%/*}/focus.utils.sh" ]]; then + source "${BASH_SOURCE%/*}/focus.utils.sh" + focus_check +fi ############################################################################### # The Code