gtklock icon indicating copy to clipboard operation
gtklock copied to clipboard

[Feature Request] Add keyboard layout display

Open maksalees opened this issue 2 years ago • 7 comments

When several keyboard layouts are set, it can be difficult to enter a password because the selected layout is not displayed.

maksalees avatar Feb 12 '23 18:02 maksalees

I looked into it and couldn't find a standard way to get the layout in wayland. I don't want to implement compositor specific features into gtklock. What compositor are you using?

jovanlanik avatar Feb 17 '23 14:02 jovanlanik

I looked into it and couldn't find a standard way to get the layout in wayland. I don't want to implement compositor specific features into gtklock. What compositor are you using?

Sway. This feature is in swaylock. Does it use the compositor specific features for this?

maksalees avatar Feb 17 '23 16:02 maksalees

I'll check out what swaylock does... Thank you for bringing it to my attention.

jovanlanik avatar Feb 17 '23 17:02 jovanlanik

Unfortunately, swaylock can listen for wl_keyboard events (specificaly keymap). I can't use because gtk already listens to them. gtk4 has a function for this use case (gdk_wayland_device_get_xkb_keymap) but there is no gtk3 equivalent.

jovanlanik avatar Feb 19 '23 14:02 jovanlanik

Unfortunately, swaylock can listen for wl_keyboard events (specificaly keymap). I can't use because gtk already listens to them. gtk4 has a function for this use case (gdk_wayland_device_get_xkb_keymap) but there is no gtk3 equivalent.

Will gtklock be ported to gtk4?

maksalees avatar Feb 19 '23 18:02 maksalees

See #44.

jovanlanik avatar Feb 19 '23 21:02 jovanlanik

I believe with Hyprland it's possible through the remote control utility (hyprctl). Can you guys make a widget for it? Thanks.

ildar avatar Nov 29 '23 06:11 ildar

I've given up on porting to gtk4 for now and this feature isn't possible on gtk3 so closing.

jovanlanik avatar Apr 15 '24 20:04 jovanlanik

I believe with Hyprland it's possible through the remote control utility (hyprctl). Can you guys make a widget for it? Thanks.

If you don't mind check this one, please.

Just finished, it covers my use cases, feedback will be much appreciated. 🙂

Ty3uK avatar Jan 26 '25 10:01 Ty3uK