hyprdots icon indicating copy to clipboard operation
hyprdots copied to clipboard

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

Open saulback opened this issue 1 year ago • 15 comments

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 avatar Apr 13 '24 15:04 saulback

Yeah an Keybind for this would be nice

dieBakterie avatar Apr 13 '24 15:04 dieBakterie

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

kRHYME7 avatar Apr 13 '24 16:04 kRHYME7

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 avatar Apr 13 '24 16:04 dieBakterie

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

dieBakterie avatar Apr 13 '24 16:04 dieBakterie

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.

saulback avatar Apr 13 '24 16:04 saulback

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. https://github.com/prasanthrangan/hyprdots/pull/1303

kRHYME7 avatar Apr 13 '24 16:04 kRHYME7

That's then code:20 for me xd

dieBakterie avatar Apr 13 '24 16:04 dieBakterie

Yeah should work with keycode number.

Can you try question ?

Doesn't Work

dieBakterie avatar Apr 13 '24 16:04 dieBakterie

Oh and any Idea why https://github.com/prasanthrangan/hyprdots/issues/1186#issuecomment-2053693198 doesn't works anymore suddenly?

dieBakterie avatar Apr 13 '24 16:04 dieBakterie

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

Enigma1309 avatar Apr 13 '24 17:04 Enigma1309

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

But yey we can convert keycodes now

example: keycode:61 is ?

image

kRHYME7 avatar Apr 13 '24 17:04 kRHYME7

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

saulback avatar Apr 13 '24 19:04 saulback

image

image

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

kRHYME7 avatar Apr 14 '24 01:04 kRHYME7

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

kRHYME7 avatar Apr 14 '24 02:04 kRHYME7

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

its-19818942118 avatar Apr 24 '24 17:04 its-19818942118

For now it is set to SUPER + slash

kRHYME7 avatar Aug 10 '24 07:08 kRHYME7

For now it is set to SUPER + slash

@kRHYME7 set it to mod / yes also for upper level keys adding shift suffices. for misc keys like this.

its-19818942118 avatar Aug 10 '24 07:08 its-19818942118