Not a member of GistPad yet?
Sign Up,
it unlocks many cool features!
- mkdir -p ~/.config/swiftbar
- cat > ~/.config/swiftbar/teams.10s.sh <<'EOF'
- #!/bin/bash
- COUNT=$(lsappinfo info -only StatusLabel "Microsoft Teams" | sed -n 's/.*"label"="\([^"]*\)".*/\1/p')
- if [ -n "$COUNT" ]; then
- echo "💬 $COUNT | color=#a855f7"
- else
- echo "💬"
- fi
- echo "---"
- echo "Open Teams | bash='open' param1='-a' param2='Microsoft Teams' terminal=false"
- EOF
- chmod +x ~/.config/swiftbar/teams.10s.sh
RAW Paste Data
Copied
