mirror of
https://github.com/Threnklyn/zeit.git
synced 2026-05-18 21:03:30 +02:00
19 lines
475 B
Bash
Executable File
19 lines
475 B
Bash
Executable File
#!/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"
|