X-Git-Url: https://git.r.bdr.sh/rbdr/r.bdr.sh/blobdiff_plain/15472493c4baeb35027a30340044e48286c6ad17..67da58d3675b36b34b7b2ee3f5b6581cac7c3162:/swiftbar/sourcehut-builds.1m.sh?ds=inline diff --git a/swiftbar/sourcehut-builds.1m.sh b/swiftbar/sourcehut-builds.1m.sh index f62324d..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=10 +# 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