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

visual indicator when sequence has begun #2

Open
emacsomancer opened this issue Dec 11, 2023 · 2 comments
Open

visual indicator when sequence has begun #2

emacsomancer opened this issue Dec 11, 2023 · 2 comments

Comments

@emacsomancer
Copy link

If one turns off the "whichkey" component, there is a slight UI disadvantage in that it is not immediately obvious when a key sequence has been begun/the leader-key has been pressed (and thus the input has been 'grabbed' by the interface). In StumpWM, for instance, once the leader-key has been pressed the mouse cursor changes shape. Not that this is necessarily the best way of indicating the interface is 'grabbing keys', but it is one way. Is there some way to trigger some sort of visual/UI indication once the leader-key has been pressed/keygrabbing is in progress?

@intrntbrn
Copy link
Owner

intrntbrn commented Dec 11, 2023

I did not implement an indicator, simply because there is obvious no one-fits-all solution for it. Some might prefer a popup, some might prefer a widget in a wibar, etc. Hence I figured it's probably best to let the users implement their own indicator, since it's rather trivial.

awesome.connect_signal("modalisa::on_start", function(t) 
    my_indicator.visible = true
end)


awesome.connect_signal("modalisa::on_stop", function(t) 
    my_indicator.visible = false
end)

However, I might offer a simple popup shape implementation in the future (e.g. a red circle in the center of the screen).

@emacsomancer
Copy link
Author

Thanks. I'll try to see if I can figure out a reasonable indicator function to use here.

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

No branches or pull requests

2 participants