mirror of
https://github.com/Threnklyn/zeit.git
synced 2026-05-30 02:28:27 +02:00
Adding Wrapper for Sketchybar integration
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
## Skeytchybar configuration:
|
||||
# sketchybar --add item zeit e \
|
||||
# --set zeit icon= \
|
||||
# script="$HOME/bin/zeit-sketchybar.sh" \
|
||||
# update_freq=15
|
||||
|
||||
|
||||
ZEIT_BIN=$HOME/bin/zeit
|
||||
SKETCHY_BIN=/opt/homebrew/bin/sketchybar
|
||||
|
||||
line_identifier='^ ▶ tracking'
|
||||
|
||||
tracking=$($ZEIT_BIN tracking --no-colors | grep "$line_identifier" | sed -e "s/$line_identifier//")
|
||||
|
||||
echo $tracking
|
||||
$SKETCHY_BIN --set zeit label="$tracking"
|
||||
Reference in New Issue
Block a user