Guest

swiftbar-config

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