xbar icon indicating copy to clipboard operation
xbar copied to clipboard

Change plugin folder (xbar)

Open joshstrange opened this issue 5 years ago • 12 comments

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

joshstrange avatar Mar 19 '21 15:03 joshstrange

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?

matryer avatar Mar 19 '21 15:03 matryer

@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.

joshstrange avatar Mar 19 '21 15:03 joshstrange

@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 avatar Mar 19 '21 17:03 matryer

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

cc #748 reported by @kudumi

matryer avatar Aug 28 '21 12:08 matryer

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

dzg avatar May 11 '22 16:05 dzg

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

ozgrozer avatar Jun 03 '22 22:06 ozgrozer

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

varikin avatar Jul 28 '22 22:07 varikin

@matryer Could you please reopen the issue?

martin-braun avatar Aug 28 '22 17:08 martin-braun

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.

pvegh avatar Dec 10 '23 13:12 pvegh

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

matryer avatar Dec 10 '23 14:12 matryer