3 This page holds the SwiftBar[1] / xbar scripts I've made. Since I use the first
4 one, I'm not sure whether they work with xbar[2], but should probably be OK.
6 => https://swiftbar.app/ [1] SwiftBar
7 => https://xbarapp.com/ [2] Xbar
11 View the status of your last few builds in sourcehut. You can open the URL by clicking on the menu items. The count of failed, pending and successful runs of the last 15m are shown next to the icon.
13 To use the plugin you'll need to set your sourcehut token in the VAR_SOURCEHUT_API_TOKEN variable (See the 'ADD YOUR TOKEN HERE' string). You can also control how many builds to show by changing the VAR_BUILD_COUNT variable (defaults to 5)
15 This script includes focus checks (See focus checks column at the end of this page on how to use them.)
17 => ./swiftbar/sourcehut-builds.1m.sh ⧇ source
21 View your monitorcito[3] tracked services at a glance. ○ is shown if everything is OK, and ╳ if at least one service is failing. Clicking on an item refreshes the status.
23 This script includes focus checks (See focus checks column at the end of this page on how to use them.)
25 => https://git.sr.ht/~rbdr/monitorcito [3] Monitorcito
26 => ./swiftbar/monitorcito.1m.sh ⧇ source
32 You can ask a script to only continue if it matches a focus mode, or to halt if it encounters it. You can do this by passing pipe separated strings to VAR_RUN_ON_FOCUS or VAR_HALT_ON_FOCUS. For example, this will only run the script if "Personal" or "Do Not Disturb" are active:
35 VAR_RUN_ON_FOCUS="Personal|Do Not Disturb"
38 And this will halt the script only if the focus is Work
41 VAR_HALT_ON_FOCUS="Work"
44 If neither variable is set, then all checks will be disabled.
46 The script will only appear or disappear when it's next refreshed. If you
47 want this faster, trigger a full refresh of your plugins.
51 Download and copy focus.utils.sh to your SwiftBar directory on the same directory as the scripts that use this functionality.
55 For the script to correctly get focus data, it requires full disk access. You
56 can do this by going to System Settings > Privacy & Security > Full Disk Access,
57 and adding SwiftBar to the list.
61 If you want to include this functionality in your script, check the script
62 comments for instructions on how to use it in your scripts.
64 => ./swiftbar/focus.utils.sh ⧇ source