Overview of the sunset-sunrise xbar plugin
mainsunset-sunrise plugin is an xbar plugin designed to display sunrise and sunset times. It is part of the kiprasmel/xbar-plugins collection.repository·main·Indexed 25 days ago
https://github.com/matryer/xbar-pluginsA collection of scripts, programs, and command-line tools designed to extend the functionality of xbar, a menu bar application. Includes plugins such as sunrise-sunset and disable-sleep, as well as specialized integrations for Acquia Cloud.
sunset-sunrise plugin is an xbar plugin designed to display sunrise and sunset times. It is part of the kiprasmel/xbar-plugins collection.You can customize the installation of the Disable sleep plugin using environment variables or flags:
--clean flag to copy runtime files directly into ~/Library/Application Support/xbar/disable-sleep-plugin/ and remove the git clone immediately after.REPO environment variable before running the script.To remove the plugin from your xbar menu bar, run the uninstall.sh script. This removes the symlink from the xbar plugins folder but leaves the git repository clone intact.
./xbar-plugins/uninstall.shTo install this plugin, you must first have xbar installed and launched to initialize the plugins directory (~/Library/Application Support/xbar/plugins).
Run the install.sh script to clone the repository and symlink the plugin into your xbar folder. During the first setup, you will be prompted for your sudo password to allow the plugin to run sudo pmset (to toggle sleep) without a password prompt in the future.
curl -fsSLO https://raw.githubusercontent.com/kiprasmel/xbar-plugins/refs/heads/main/System/disable-sleep/install.sh
bash install.shTo use Acquia Cloud plugins in xBar, you must first install and configure several prerequisites: Composer, BitBar PHP, and the Acquia CLI. Once the prerequisites are set up and you are authenticated, you can install the plugins via the xBar user interface.
# 1. Install BitBar PHP via Composer
composer global require steveedson/bitbar-php
# 2. Install Acquia CLI
curl -OL https://github.com/acquia/cli/releases/latest/download/acli.phar
chmod +x acli.phar
mv acli.phar /usr/local/bin/acli
# 3. Authenticate with Acquia CLI
acli loginBefore installing the plugins, ensure the following tools are installed on your system:
composer global require steveedson/bitbar-phpcurl -OL https://github.com/acquia/cli/releases/latest/download/acli.phar
chmod +x acli.phar
mv acli.phar /usr/local/bin/acliacli loginTo use a plugin with xbar, follow these steps:
Enabled folder if you have cloned the repository).chmod +x <plugin_name>.Refresh all from the xbar menus to load the new plugin.chmod +x plugin.shTo update the plugin to the latest version, navigate to the cloned directory and pull the latest changes via git. To modify the plugin's behavior, edit the script located at ./xbar-plugins/System/disable-sleep/disable-sleep.10s.sh. xbar will automatically reload the plugin on its 10-second tick.
cd xbar-plugins && git pull