You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use rumps to make a simple RSS feed title viewer in my macOS status bar, displaying the RSS article title on the status bar app title.
Sometimes, the title is too big for my status bar and the app won't be visible anymore. I've tried to tinker with rumps to see if there's a way to know beforehand how much free space there is on the status bar but I couldn't come up with a solution.
Is there a way to do it? I'd be happy even if I'd have to make a big mess with Foundation/AppKit wrappers.
The text was updated successfully, but these errors were encountered:
I don't think you can detect how much space is available, unfortunately, but you could detect whether the menu bar item is visible and then adjust the title accordingly. Since hiding is different from forced removal, you have to check the item's window visibility. To do that, you can use a private API to check the window occlusion state:
how about adding a feature to scroll the title text back and forth automatically? i try do implement this actually in my script, but somehow the text is moved one line up...
I'm trying to use rumps to make a simple RSS feed title viewer in my macOS status bar, displaying the RSS article title on the status bar app title.
Sometimes, the title is too big for my status bar and the app won't be visible anymore. I've tried to tinker with rumps to see if there's a way to know beforehand how much free space there is on the status bar but I couldn't come up with a solution.
Is there a way to do it? I'd be happy even if I'd have to make a big mess with Foundation/AppKit wrappers.
The text was updated successfully, but these errors were encountered: