xbar: terminal=false does not work?

#!/bin/bash

echo "πŸ€–";
echo "---";
echo "πŸ—― nudge | bash=\"adb shell input keyevent 82\" terminal=false"

am I doing something wrong ?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 21 (6 by maintainers)

Most upvoted comments

@syllogismos You need to download it manually; https://github.com/oleander/bitbar/releases/download/untagged-296d5d289628e56e2a8e/BitBar.dmg It’s a build from my pull request.

I have found what is the problem PATH was not set for adb, so I have used source ~/.zshrc where adb PATH is already defined

#!/bin/bash

if [[ "$1" = "nudge" ]]; then
  source ~/.zshrc
  adb shell input keyevent 82
  exit
fi

echo "πŸ€–";
echo "---";
echo "πŸ—―nudge | bash=$0 param1=nudge terminal=false"

it was difficult to debug this because error was silent, maybe it would be good to write output somewhere for example ~/.bitbar-debug when exit code is different than 0 and show osx notification that something went wrong