Implemented first version of xbar (macOS) plugin

This commit is contained in:
マリウス 2021-03-16 17:49:01 -05:00
parent 84047e834e
commit 16b5625e78
No known key found for this signature in database
GPG key ID: C228EF0A530AF06F

20
extras/zeit.1m.sh Executable file
View file

@ -0,0 +1,20 @@
#!/bin/bash
# <xbar.title>zeit</xbar.title>
# <xbar.author>Marius</xbar.author>
# <xbar.author.github>mrusme</xbar.author.github>
# <xbar.desc>Control `zeit` (https://github.com/mrusme/zeit) from the macOS menu bar.</xbar.desc>
# <xbar.image>https://github.com/mrusme/zeit/raw/main/documentation/zeit.png</xbar.image>
# <xbar.abouturl>https://マリウス.com/zeit-erfassen-a-cli-activity-time-tracker/</xbar.abouturl>
# <xbar.version>1.0</xbar.version>
#
# <xbar.var>string(ZEIT_BIN="/usr/local/bin/zeit"): Your zeit binary location</xbar.var>
# <xbar.var>string(ZEIT_DB="$HOME/.zeit.db"): Your zeit database location</xbar.var>
#
# Control `zeit` (https://github.com/mrusme/zeit) from the macOS menu bar.
#
# by Marius (marius@xn--gckvb8fzb.com)
#
echo $($ZEIT_BIN tracking)
exit