matryer / xbar

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

Change plugin folder (xbar) #653

Open joshstrange opened 3 years ago

joshstrange commented 3 years ago

With BitBar I had a repo of all my plugins nested inside a folder (so I could install dependencies up 1 level) but with xbar there is no option to change the folder. I "solved" this by removing the plugin folder created by xbar and symlinking in my old folder. It would be nice to do this via the GUI in a "supported" way. Thank you!

Temp Fix:

rm ~/Library/Application\ Support/xbar/plugins
ln -s ~/git/joshstrange/bitbar-scripts/scripts ~/Library/Application\ Support/xbar/plugins
matryer commented 3 years ago

Hey @joshstrange - you're right, BitBar let you pick the folder, in xbar it's static. Is it possible to do what you were doing with the xbar plugin folder being static?

joshstrange commented 3 years ago

@matryer Absolutely, I have it working just like I want now using the symlink method from above. I was just suggesting it be added back in as GUI option to change it. It works for now but I wasn't sure if it might break in future versions or if there was some kind of issue that symlinking the folder could cause. The other option would be to symlink in my scripts (opposed to replacing the whole plugins folder) which might be more "friendly" if xbar wants to fully "own" that folder but for now I'm symlinking the whole folder and it's doing exactly what I need it to to do.

matryer commented 3 years ago

@joshstrange That makes sense. Tbh, xbar tries not to be very opinionated when it comes to the executables etc. which is why tricks like the one you've found works. Let me know how you get on with it, if it doesn't quite work out, I'm happy to consider adding a simple "Change plugin folder" option to xbar, like BitBar had. Thanks again.

matryer commented 3 years ago

Maybe we should just add this to the xbar config file?

cc #748 reported by @kudumi

dzg commented 2 years ago

+1 I would very much like to option to set plugin folder location

ozgrozer commented 2 years ago

Until this feature arrives I'll be using symlinks. I'm also using Dropbox for synchronization. When I switch computers I don't have to copy paste the updated shell file.

# Go to xbar plugin folder
cd /Users/USER_NAME/Library/Application\ Support/xbar/plugins

# Link your shell file in Dropbox to xbar's plugin folder
ln -s /Users/USER_NAME/Dropbox/apps/xbar/SHELL_FILE.365d.sh
varikin commented 2 years ago

This is closed as completed, but does not appear to be addressed.

martin-braun commented 2 years ago

@matryer Could you please reopen the issue?

pvegh commented 11 months ago

I'd also like to set the folder myself easily from the UI. For me a better default is always a hidden folder in my home.

matryer commented 11 months ago

@pvegh @martin-braun @varikin does anyone fancy contributing a PR for this?