-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Show Notification Badges #11
Comments
Is this technically feasible? I'd love to see this feature. The only reason I keep the dock visible is for the notification badges |
If you can find me an official apple api to get notifications then sure |
I don't know the first thing about macos development, so I don't know if it's possible to get a handle on another app's NSApplication object or how. But if it is possible, looks like NSApplication.dockTile.badgeLabel is what we're interested in. https://developer.apple.com/documentation/appkit/nsdocktile/1524433-badgelabel |
This might be nothing of use, but when I had a Mac with a TouchBar I used to show notifications in the bar by polling apps' dock badges with AppleScript, like so:
tell application "System Events"
tell process "Dock"
set badgeNumber to value of attribute "AXStatusLabel" of UI element "NetNewsWire" of list 1
end tell
end tell
The script returns the value indicated in the Dock’s badge.
|
oh wow this is great, I hacked this into a simple script together with xbar (https://xbarapp.com/) and this does exactly what I need. |
Could you share your script please :) |
I'm no developer but you may be able to look at the source code for the app "Doll", which has the red badge count option: https://github.com/xiaogdgenuine/Doll |
thx, I'll use Doll app instead! |
Having the icons show notification badges (much as they do in the standard system Dock) would be fantastic!
The text was updated successfully, but these errors were encountered: