Skip to content
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

macOS badge dock icon #4472

Open
ftpd opened this issue Nov 24, 2020 · 9 comments
Open

macOS badge dock icon #4472

ftpd opened this issue Nov 24, 2020 · 9 comments

Comments

@ftpd
Copy link

ftpd commented Nov 24, 2020

Is it possible to badge macOS dock icon as a reaction for 'bell'?

(Im using Big Sur 11.0.1 and stable alacrity 0.5.0, if it matters).

@chrisduerr
Copy link
Member

I'm not sure what you mean by "badge"?

@ftpd
Copy link
Author

ftpd commented Nov 24, 2020

A small red circle with number of unseen events - something like this: https://imgur.com/a/tIDZejA.
It's a common thing in macOS, to be notified by badges (in addition to sounds and/or notifications), that something happened in the application - like new mail in mail clients, new message in iMessage/Facebook Messenger/etc or, for terminals, the bell.

@ftpd
Copy link
Author

ftpd commented Nov 24, 2020

Btw. I suppose it needs from alacritty to be integrated with this whole 'notification system' included in modern macOS versions - for different apps it's possible to set what notifications to see in System Preferences -> Notifications.
But maybe it's possible to do it without this whole integration thing - it would be simpler and easier.

@chrisduerr
Copy link
Member

I personally don't see much of a point in doing this, since there's no way for Alacritty to really understand if a bell is a new request for action or just an extension to an existing request. Realistically more than binary urgency determination doesn't make much sense from a terminal perspective.

But to outright deny it I'd have to look into how this works on macOS.

@ftpd
Copy link
Author

ftpd commented Nov 24, 2020

I use bells as form of notification - for example after running the command which is supposed to take a long time, I can add ; tput bell at the end and I'm notified when it has ended. Thanks to this I also know when I was highlighted on IRC ;-)

So for me it's a killer feature and a blocker for switching from iTerm - but I understand there are not much people like me around ;-) So, fingers crossed it's possible to add in a easy way.

@kchibisov
Copy link
Member

The icon should bounce after '\a' on macOS if bell is enabled. I don't see how a static notification is any different from jumping doc icon.

@ftpd
Copy link
Author

ftpd commented Nov 24, 2020

It does bounce - but it's not enough for me. I often have other full screen apps opened on other desktops/workspaces, so when I get back to desktop/workspace where my terminal is it's nice to know that something happened and needs my attention.

Actually I haven't noticed this bouncing (mostly because I was working in other full screen window, as described, almost the whole day today), so thanks for this hint. If @chrisduerr decides this issue is a WontFix, I can live with bouncing, I suppose.

Let me ask bonus question here (to avoid opening new issue with just this silly one): is it possible to keep the app open (macOS style 'open', so to have process still running) after closing last window, or it closes the process right after shell inside is closed? I have 'muscle memory' after years on iTerm, so after closing the last window I'm pressing cmd+q anyway, so if Alacritty process won't be there, I will be accidentally closing other apps by this ;-)

@chrisduerr
Copy link
Member

is it possible to keep the app open (macOS style 'open', so to have process still running) after closing last window, or it closes the process right after shell inside is closed?

No. Not yet at least. See #607.

@onsails
Copy link

onsails commented Mar 27, 2021

I'd rather disable dock bouncing on bel but didn't find any option for this in config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

5 participants
@onsails @ftpd @chrisduerr @kchibisov and others