CmdBar looks at $HOME/.cmdbar
directory for scripts to execute. Scripts have to follow these naming conventions: name.time.extension
OR name.time
. For example, transmission.2s.sh
is a shell script named transmission that will execute every two seconds OR main.2m
is an executable named main that will execute every two mintues. You can use “s” for seconds, “m” for minutes, “h” for hours, and “d” for days. Although you can set days for execution interval, it is pointless. CmdBar reloads scripts whenever MacOS wakes up -- this might change in the future. Current implementation could be useful if your computer never goes into sleep mode.
If you wish to store your scripts directory in other place, you can create a symbolic link, but otherwise $HOME/.cmdbar
is the only location CmdBar looks in.
You can click the blue button to reload the current script. Hold shift and click the blue button to reload all scripts. This might be useful whenever you add or remove scripts from .cmdbar
.
You can click the orange button to toggle launch at login.
There are no restrictions on the type of executable you can use, for as long as they write to standard output.
The first line of the output will be used to display as a title of a status bar button, and the rest will go into the body of the popover.
Will output:
brew outdated
, but /opt/homebrew/bin/brew outdated
). Esentially, everything that is not in /usr/bin
, /bin
, /usr/sbin
, /sbin
should have an absolute path. To find out absolute path of a program, you can use which
command (e.g. which brew
).