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

[Feature Request]: MOD + ? Open keybinds_hint.sh? #1302

Open
saulback opened this issue Apr 13, 2024 · 15 comments
Open

[Feature Request]: MOD + ? Open keybinds_hint.sh? #1302

saulback opened this issue Apr 13, 2024 · 15 comments
Labels
enhancement New feature or request

Comments

@saulback
Copy link

Feature Request

Description

MOD + ? default binding to open the keybinding hint window.

Use Case

As a brand new user of hyprdots, my gut instinct to understand options was to hit MOD + ? to hopefully see what keybindings are available. I'm not sure why I thought that keybinding would work. Maybe I've seen that specific keybinding done elsewhere. After looking around I did find the keyboard icon on the waybar.

Proposed Solution

[If you have a specific solution in mind, describe it here. If not, you can skip this section.]
MOD + ? runs the keybinds_hint.sh

Alternatives

None considered

Additional Information

I completely understand if you don't want to do this one. It is just something I thought of when I first started using hyprdots and thought that if I tried MOD + ?, others may have tried it as well.

@saulback saulback added the enhancement New feature or request label Apr 13, 2024
@dieBakterie
Copy link
Contributor

dieBakterie commented Apr 13, 2024

Yeah an Keybind for this would be nice

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Apr 13, 2024

have you tried it?

bind = $mainMod, ?, exec, keybinds_hint.sh -h 80% -w 50%  -d  # Show keybind hints

Please confirm if this works on your end, maybe we can add it

@dieBakterie
Copy link
Contributor

not working on my end with german layout xkbcli interactive-wayland seat0: keycode [ AE11 ] keysyms [ ssharp ] unicode [ ß ] layout [ German (0) ] level [ 0 ] mods [ ] leds [ ] that's the key for my keyboard bind = $mainMod, ß, exec, keybinds_hint.sh -h 80% -w 50% -d  # Show keybind hints doen't works too

@dieBakterie
Copy link
Contributor

dieBakterie commented Apr 13, 2024

propably bind = $mainMod, h, exec, keybinds_hint.sh -h 80% -w 50% -d  # Show keybind hints with h for hint?

@saulback
Copy link
Author

That one with the '?' doesn't work. I've been using this:

bind = $mainMod SHIFT, code:61, exec, $scrPath/keybinds_hint.sh # Show keybind hints

Unfortunately in the hint window, it doesn't recognize how to deal with the code:61. It shows this:
image

So maybe MOD + H might be better, but the whole idea for this was to make it more discoverable for new users. I'm not sure if MOD + H would be helpful for new users.

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Apr 13, 2024

Yeah should work with keycode number.

Can you try question ?

BTW I think it's posible to hardcode key 61 to some symbols.

edit: So by the time of making the keybindhint it is not capable of translating keycode only keys. For now I'm not interested on adding the feature.(This is a lesser priority for now. )

Please checkout this dirty work https://github.com/prasanthrangan/hyprdots/blob/main/Configs/.local/share/bin/keybinds_hint.sh

I tried to add comments for someone who wants to help maintaining it.

Update:
Here's the capability to read the keycode.
#1303

@dieBakterie
Copy link
Contributor

dieBakterie commented Apr 13, 2024

That's then code:20 for me xd

@dieBakterie
Copy link
Contributor

Yeah should work with keycode number.

Can you try question ?

Doesn't Work

@dieBakterie
Copy link
Contributor

Oh and any Idea why #1186 (comment) doesn't works anymore suddenly?

@Enigma1309
Copy link
Contributor

i've been using mod+alt+k for keybinding hints

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Apr 13, 2024

I don't actually care about what are the defaults.

But yey we can convert keycodes now

example: keycode:61 is ?

image

@saulback
Copy link
Author

saulback commented Apr 13, 2024

I think I've steered you guys wrong here.

After digging in a bit more on this, it turns out code:61 is for / not for ?. / and ? are on the same key on my keyboard. I was thinking that in the keybinding the SHIFT would modify the next key. But it looks like hyprland swallows/ignores the SHIFT when used in a keybinding? So in reality I was doing a MOD + SHIFT + / instead of the ?.

I did try bind = $mainMod SHIFT, /, exec, $scrPath/keybinds_hint.sh # Show keybind hints, but that didn't work. So that would still need the ability to convert the keycode, but it would actually have to show the / instead of the ?, mostly in case of keyboard layouts when they are not the same key.

I really thought this was a straightforward simple request. I didn't think it would get blown up into this mess. I'd be ok just closing this ticket, or maybe using MOD + h instead of ?. I really like the idea of using the question mark, but it might be more work than it is worth

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Apr 14, 2024

image

image

No problem with that, you just made the script better after you raised this issue.

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Apr 14, 2024

Also added an option to map the keycode manually ( ke codes are actually tied to some keyboard layout so would be better to map it manually https://www.toptal.com/developers/keycode/table )

image

Please check the PR
#1303

@its-19818942118
Copy link

Feature Request

Description

MOD + ? default binding to open the keybinding hint window.

Use Case

As a brand new user of hyprdots, my gut instinct to understand options was to hit MOD + ? to hopefully see what keybindings are available. I'm not sure why I thought that keybinding would work. Maybe I've seen that specific keybinding done elsewhere. After looking around I did find the keyboard icon on the waybar.

Proposed Solution

[If you have a specific solution in mind, describe it here. If not, you can skip this section.]
MOD + ? runs the keybinds_hint.sh

Alternatives

None considered

Additional Information

I completely understand if you don't want to do this one. It is just something I thought of when I first started using hyprdots and thought that if I tried MOD + ?, others may have tried it as well.

Well this is simple
In confs I link it to alt space and the bind is set to Hyde keybinds something like that. I found it like on waybar module for keybinds so I yeah pls implement this

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

No branches or pull requests

5 participants