Adding Wrapper for Sketchybar integration

This commit is contained in:
Martin (Schretzi) Fuchsluger
2025-02-17 19:26:28 +01:00
parent e7780432d7
commit 272e999605
+18
View File
@@ -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"