raspberrypi / bookworm-feedback

13 stars 1 forks source link

<ctrl><alt>KEY_LEFT and <ctrl><alt>KEY_RIGHT shortcut keys conflicting with Back/Forward navigation shortcut keys in MonoDevelop code editor; Unable to properly redefine <ctrl><alt>KEY_DOWN and <ctrl><alt>KEY_UP #258

Open qrp73 opened 4 months ago

qrp73 commented 4 months ago

Currently <ctrl><alt>KEY_LEFT and <ctrl><alt>KEY_RIGHT shortcut keys are used to stick window to the left or right display side. This is useful operation, but its conflicted with navigation Forward/Backward in MonoDevelop code editor.

Could you please change it to <super>KP_4 and <super>KP_6?

Since <super>KP_8 and <super>KP_2 already used to stick window to the top or bottom display side (by the way where it is defined???), it will be more consistent and intuitive to use <super>KP_4 and <super>KP_6 to stick window to the left or right display side.

In addition it will solve conflict with code navigation shortcuts.

I found that <ctrl><alt>KEY_LEFT and <ctrl><alt>KEY_RIGHT shortcuts are defined in /etc/wayfire/defaults.ini, but when I tried to redefine it in ~/.config/wayfire.ini, it don't works, is it BUG?:

[grid]
slot_l = <super>KP_4
slot_r = <super>KP_6

I tried to change it in /etc/wayfire/defaults.ini and it works, but it requires system reboot to apply and I found another issue. When I tried to bind restore window size to <super>KP_5 and fullscreen to <super>KP_5:

[grid]
slot_l = <super>KP_4
slot_r = <super>KP_6
slot_c = <super>KP_0
restore = <super>KP_5
#slot_l = <ctrl><alt>KEY_LEFT
#slot_r = <ctrl><alt>KEY_RIGHT
#slot_c = <ctrl><alt>KEY_UP
#restore = <ctrl><alt>KEY_DOWN
mouse_snap = false

it works in opposite way: pressing <super>KP_5 leads to fullscreen and pressing <super>KP_0 leads to window restore. Is it BUG?

I tried to change it in opposite way:

[grid]
slot_l = <super>KP_4
slot_r = <super>KP_6
slot_c = <super>KP_5
restore = <super>KP_0
#slot_l = <ctrl><alt>KEY_LEFT
#slot_r = <ctrl><alt>KEY_RIGHT
#slot_c = <ctrl><alt>KEY_UP
#restore = <ctrl><alt>KEY_DOWN
mouse_snap = false

but it still works in opposite way: pressing <super>KP_5 leads to fullscreen and pressing <super>KP_0 leads to window restore.

So, there is no way to bind <super>KP_5 to restore and <super>KP_0 to fullscreen.

As I understand /etc/wayfire/defaults.ini is not intended to be edited by user. The changes should be made through ~/.config/wayfire.ini but for some unknown reason it don't works.

So, it seems there are at least two bugs: cannot change key binding in ~/.config/wayfire.ini and invalid binding configuration for slot_c and restore