I won't be able to get to tinkering with this for a couple weeks, but if it does what it says it does, I've been wanting almost exactly this for a very long time. Thanks for getting it out there.
In case you made the mistake of choosing a directory with thousands of files as the plugin directory and BitBar getting stuck forever, do this from terminal to reset it:
I only use one though, so I can't say for sure but judging by their blog posts they offer to choose which monitor Ubersicht runs on, but I believe it can't be displayed on multiple monitors at the same time. That's true about the menubar icon, but it doesn't bother me.
As my way of playing around with what BitBar can do, I created a Spotify script. Until it's merged you can check out the pull request: https://github.com/matryer/bitbar/pull/34
Shows current track name and artist in menu bar. Shows track/artist/album in dropdown along with play/pause/next/previous buttons.
Awesome, now I can run quick Python commands and see the output in my XFCE panel:
sudo apt-get install xfce4-genmon-plugin
Right click panel > Panel > Add New Items > Generic Monitor > Add
Right click "(genmon)XXX", > Properties
Try this command: python -c "import time;print time.time()"
You might set it to run every 10 seconds.
You could get results from a webpage or all kinds of things.
It supports images, tooltips, progress bar, buttons...
This is great!
Thanks!
Could also use Hammerspoon (http://www.hammerspoon.org/) for this. It uses Lua but you can invoke processes and modify the toolbar. In addition you can hook into keystrokes, do window management, and all kinds of stuff.
and the upcoming 0.9.44 release will be even more flexible for this sort of use, because the process invoking stuff (http://www.hammerspoon.org/docs/hs.task.html ) will support processes that run indefinitely, so you could do crazy stuff like have a menubar item that shows the most recent line of a log file, or whatever you want :)
-- Creating a simple menubar item
-- Lots of Mac utilities place a small icon in the system menubar to display their
-- status and let you interact with them. We're going to use two of Hammerspoon's
-- extensions to whip up a very simple replacement for the popular utility Caffeine.
local caffeine = hs.menubar.new()
function setCaffeineDisplay(state)
if state then
caffeine:setTitle("AWAKE")
else
caffeine:setTitle("SLEEPY")
end
end
function caffeineClicked()
setCaffeineDisplay(hs.caffeinate.toggle("displayIdle"))
end
if caffeine then
caffeine:setClickCallback(caffeineClicked)
setCaffeineDisplay(hs.caffeinate.get("displayIdle"))
end
Sadly it's too bespoke to release, I had all the profile switching scripts written already and have been using them for a few years now. On top of updating environment variables with proxy settings etc, they also update a bunch of configuration files for maven, ssh, stunnel etc via symlinks
All this bitbar thing does is call those existing scripts, very simple, but saves me
a) wondering what profile I have enabled (now in the menubar)
b) opening a terminal and typing "update-env (work|home)" (one click switch)
The issue i can see in gnome-shell (on linux) implementations is that long running script can block the UI. Async script execution, on the other hand, exhaust open file resources due to non closed file descriptors. Do OSX tools like this suffer the same problem?
66 comments
[ 5.3 ms ] story [ 131 ms ] threadBitBar focuses on just the Menu Bar use case though, and does a more polished job than Platypus.
Or TextBar, which is a $3 utility: http://www.richsomerfield.com/apps/
Related:
Is there no simple way to get the current temperature for location based off of GeoIP using `curl`?
I had to use this monstrosity to get the current temperature:
That would get you Kelvin, use `&units=metric` for Celsius
https://github.com/abgoyal/ShellToolsApplet http://cinnamon-spices.linuxmint.com/applets/view/136
I was checking the plugins and some of them allow clicking on items in the dropdown and having an action execute.
The clipboard history now has code for this.
defaults delete com.matryer.BitBar
――――――
¹ — http://projects.tynsoe.org/en/geektool/download.php
http://tracesof.net/uebersicht/
Also big minus was menu bar icon, such tools don't need one.
Shows current track name and artist in menu bar. Shows track/artist/album in dropdown along with play/pause/next/previous buttons.
Raw script here: https://raw.githubusercontent.com/jtokoph/bitbar/jtokoph-spo...
EDIT: The reason for this is the version installed by brew is 1.2, and that bug was fixed in 1.3.1.
Been having lots of fun playing with BitBar. Just finished a clipboard history plugin: https://github.com/matryer/bitbar/pull/47
http://www.hammerspoon.org/go/#simplemenubar
https://github.com/abgoyal/ShellToolsApplet http://cinnamon-spices.linuxmint.com/applets/view/136
So when I'm not in the office switching to my "home" profile is just a menu click away.
This has been a long standing dream of mine to automate - so thanks!
EDIT: also it works with emojis, which is handy, here's a screenshot http://imgur.com/CVxchnI
All this bitbar thing does is call those existing scripts, very simple, but saves me
a) wondering what profile I have enabled (now in the menubar) b) opening a terminal and typing "update-env (work|home)" (one click switch)
https://news.ycombinator.com/item?id=10843704 https://news.ycombinator.com/item?id=10841525
Some of them are like full apps in their own right.
https://github.com/vivien/i3blocks