4 ms·
If you use Hammerspoon, you can build your own menubar icons in Lua using the hs.menubar[1] API. I've built a clipboard history tool using that, for instance.
by duskwuff 4y ago
If you use Hammerspoon, you can build your own menubar icons in Lua using the hs.menubar[1] API. I've built a clipboard history tool using that, for instance.
If you don't use Hammerspoon, you should check it out. :)
[1]: https://www.hammerspoon.org/docs/hs.menubar.html https://www.hammerspoon.org/docs/hs.menubar.html
- tra3 4y agoHammerspoon is awesome. I have an `hs_message` alias that basically calls `hs.alert`. Super handy. The good thing about xbar is that you can quickly write small shells scripts. But I definitely love HS for global shortcuts/automation. One of the more impressive things I've seen is stack line [0] a visualization tool that works with tiling window manager, yabai. [0]: https://github.com/AdamWagner/stackline https://github.com/AdamWagner/stackline
- jemmyw 4y agoYeah Hammerspoon is great. I've written scripts to rearrange things correctly when I plug/unplug my laptop into external monitors.
- reddit_clone 4y agoIf it is not a hassle, could you please share some of these scripts? I always find rearranging apps/windows (I use multiple desktops) after a reboot quit painful.
- jemmyw 4y agoYou'll be disappointed because my use case is pretty simple - move the dock, remaximize all windows on the main screen and move chrome to my secondary screen. https://github.com/jemmyw/hammerspoon/blob/main/init.lua https://github.com/jemmyw/hammerspoon/blob/main/init.lua