KeepingYouAwake is nice (and I'm not about to pretend the following solution is good for everyone), however, I've found on the last couple of McBook fresh installs using caffeinate [1] from the terminal is sufficient.
I usually have a terminal open anyway and `caffeinate -d -t 999999` usually does what I want (stay awake until I come back and tell you to go to sleep). Usually it's two keystrokes away (up arrow, enter), if not, that's quick enough to type for my purposes. That said, it's a bad approach if you want to suggest it as a tool for someone's workflow who _doesn't_ have a terminal open all of the time.
When I started using a Mac for work, the fact that so much functionality which is available free on Linux was now locked behind a paywall in the App Store was frustrating.
Hammerspoon gave me basically all of it back, in a scriptable form which makes it much better suited to what I want. It’s truly great software.
Yah I’ve been able to implement so many different features, and I love doing it myself not just because I don’t have to spend money on software (I’m perfectly willing to do that). I just hate having a myriad of single use third party utilities scattered around my hard drive and cluttering up my OS. I don’t know if I’ve just become more aware, or apps have gotten worse, but so many apps have opaque and undesirable behaviours / scopes nowadays.
I've been using CyberDuck since PowerPC 10.5. I don't open it much any more because sftp feels like it takes less effort (despite the lack of autocomplete on Mac) but I do keep it installed. I can also vouch for ItsyCal, another one of the first things I install on a fresh Mac.
How does it compare to Swiftbar[0]? Any reasons to use Xbar over SwiftBar given that the latter was built with a stack that is more "native" to Mac than Golang?
UPDATE: XBar is a reboot by the original creator of BitBar [2]. I understood it as I was confused why I have it in my starred. The below is my analysis before I understood it.
UPDATE 2: The authors of both also were considering to merge the projects. [3]
I see XBar seems to be more advanced and more popular.
It has these Advanced APIs like URL schema [0].
and also the GUI for plugins compared to Swiftbar
The tech stack of course is also much different as it's written in Go and Swiftbar as the name applies in Swift.
Although I like that SwiftBar has cron syntax support [1]. I didn't find a similar function in XBar.
A comprehensive comparison in one or the other's repo README could be useful
One issue I've run into with BitBar is that you would need to install dependencies systemwide which I don't want to. A solution I found was to create a virtualenv for a specific script (or BitBar as a whole) and just put the path of the Python executable in the hashbang of the BitBar script, ie:
#!/path/to/the/virtualenv/bin/python
There is no need to 'activate' the virtualenv or use some kind of wrapper (unless your script depends on PATH for subcommands to be executed from the virtualenv as well).
I'm not the person you're asking, and I do most of my work on a PC running Linux now, but Hammerspoon is one of a few things I really miss about OSX.
I mostly used it to create small utility applications for the menu bar. Probably the most useful one was a Bitbucket pull request checker, which would monitor the status of open pull requests and display information about which PRs I hadn't yet viewed or approved, number of new comments since I last viewed the PR, build status etc. My job involves frequently reviewing PRs so this was really helpful for me.
I've tried rewriting this app for polybar on Linux but it's much more difficult to maintain, and sadly too much effort for me to bother with right now.
I haven't tried Keyboard Maestro - at a glance it looks really good, but doesn't appear to be open source like Hammerspoon. I can't tell whether it enables you to create stuff for the menu bar.
I'm pretty sure Hammerspoon can do anything KM can, but I imagine KM is easier to use, particularly if you're not into programming.
BitBar is really cool. You can get something up and running in no time and it's fun to come up with some small personal automations.
On this topic, does anyone know simple way on Mac to display a multiline text input pop-up?
I'm playing with making a BitBar app that lets you keep a timesheet of what you've done today that syncs with a cloud API. I want a system tray icon that when you click it, it pops up with your notes so far that you can then edit and save your changes.
I know you can use osascript to create an ugly text input pop-up but it gets dismissed when you hit enter which I don't want. I'm looking for something lightweight to setup. Likely using Node but would rather not have to require Electron.
Just updated from BitBar and ran into a small issue since xbar doesn't support custom plugin folders the same way BitBar did (as in a way to change it via the GUI). Thankfully you can just symlink the plugin folder to your old BitBar folder and everything works as expected. I opened an issue for it here: https://github.com/matryer/xbar/issues/653
Bitbar-esque tools are fantastic. There are a wide variety on Linux, watching with slightly different formatting, but converting isn't a big pain. Being able to toss something together to display a portion of a curl call in a few minutes is great. I used to hate the top bar concept years ago when I was a windows user, but after switching to Unix for the past handful of years, I couldn't go back.
A couple of weeks ago I looked for a Bitbar alternative for Linux Mint/Cinnamon and there is really nothing. There's some implementation of the "Argos" app but it doesn't really work.
I love BitBar and currently have 6 separate tools in my menu bar to keep track of things like Kubernetes instances in various QA environments, local services running on my machine (with stats + start/stop buttons + recent logs), or jobs running on cloud platforms.
It's a fantastic tool and I'd encourage anyone who is thinking about building a tiny menubar app in just a few lines of code to look into it.
I personally use it just to display the currently playing track on Music--which actually solved a huge gap.
It was amazing to me that I couldn't find anything else to do just a basic "track playing" I could always see, without an always-on-top window blocking real estate. It seemed so obvious but nobody was offering that without adding a ton of other crap on top or making an intrusive windowed UI.
Then this little script executor with a per-menu output schema worked great. I was able to customize a basic "current track" script that either came with or was around as a plugin/sample and get it working to my exact spec within an hour.
What was especially awesome was when I moved to Catalina and the AppleScript targets changed from iTunes to Apple Music and broke automation, I was able to fix it in 30s by editing the script file for the new target name and it just worked. It was great to not have to wait on anyone else.
This is quite weird. Saw BitBar on here about five years ago and started using it. Then today, having upgraded to Big Sur recently, I noticed it didn't look right. The update didn't work either, so I went to find the repo and saw it was now called XBar. I upgraded and moved my scripts across and forgot about it.
Now what do I see when I come to HN for a quick break?
I've been using barbly[0] which I wrote to scratch my own itch. It uses a JSON format for describing the menu bars which I found easier to work with. It's aesthetic is slightly different as well.
It would be awesome to find something similar to windows...I can imagine "boosting up" my taskbar with this kind of stuff.
If anyone knows a similar app to Windows please let us know
I like that they have some to show the number of unread Slack notifications, but the scripts are necessarily kind of hacky in order to deal with rate-limiting. It's ridiculous that Slack doesn't have such a feature built-in because people have been asking for it for years.
https://github.com/iterate-ch/cyberduck
https://github.com/rxhanson/Rectangle
https://github.com/sfsam/Itsycal
https://github.com/newmarcel/KeepingYouAwake