matryer / xbar

Put the output from any script or program into your macOS Menu Bar (the BitBar reboot)
https://xbarapp.com
MIT License
17.55k stars 643 forks source link

Add "Open at Login" option #659

Closed ucirello closed 3 years ago

ucirello commented 3 years ago

I have to manually open xbar every time I log in. I wish the previous behavior from BitBar would still be available for xbar.

leaanthony commented 3 years ago

That's in progress 👍

guy4261 commented 3 years ago

For the meantime I put this in ~/Library/LaunchAgents/xbar.plist . Can be probably made into an xbar plugin :)

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>

     <key>Label</key>
     <string>xbar</string>

     <key>ProgramArguments</key>
     <array>
          <string>open</string>
          <string>-a</string>
          <string>xbar</string>
     </array>

    <key>RunAtLoad</key>
    <true/>

</dict>
</plist>
matryer commented 3 years ago

@guy4261 haha - well I think/hope we can get this feature officially supported. @leaanthony Do you have an idea of what's involved in doing this?

leaanthony commented 3 years ago

It's already done. It appears to be on a different branch!

leaanthony commented 3 years ago

@ucirello Please test the latest release 👍

ucirello commented 3 years ago

@leaanthony it works