illuminanced icon indicating copy to clipboard operation
illuminanced copied to clipboard

Editable Toggle Keybinding

Open wherron01 opened this issue 1 year ago • 6 comments

As KEY_ALS_TOGGLE is neither available by default nor possible to set on most keyboards (including my Framework Laptop), there should be a way to change what keybind toggles between modes. KEY_ALS_TOGGLE is a sane default, but without options I am locked into ambient light sensing mode always, which is inconvenient in some situations (like watching a movie). This could be an option in the illuminaced.toml file.

wherron01 avatar Jul 05 '24 20:07 wherron01

hey, I looked at one from the Framwork laptops, and I think there is a Fn-Space combination should be KEY_ALS_TOGGLE. I wrote about in in one of the issues, but haven't received any feedback. Could you please check what key code does it send?

mikhail-m1 avatar Jul 10 '24 13:07 mikhail-m1

Fn-Space is a keyboard backlight toggle. The keyboard itself has a backlight and that keystroke toggles it. It doesn't send any keycode to the machine. Additionally, I consulted the QMK developers on how to add a KEY_ALS_TOGGLE to the keyboard, and it appears that is not possible due to the limitations of the default HID specification — that keystroke only exists in proprietary implementations. Regardless, it would be nice to have a way to change the keybind to make this project more portable whether the Framework Laptop itself has a KEY_ALS_TOGGLE or not.

wherron01 avatar Jul 25 '24 01:07 wherron01

I took it upon myself to write some bad code in a language I haven't used before (rust) that enables just this. I pushed it to my fork of this repo. Not gonna submit a PR because I also changed the toml file pretty significantly for my personal config and added a debug script and my code just frankly isn't good, but you can look over there if you need inspiration.

wherron01 avatar Jul 25 '24 03:07 wherron01

I will take a look and make the change when I have time

mikhail-m1 avatar Aug 13 '24 18:08 mikhail-m1

is there any update about this?

WAPEETY avatar Oct 02 '24 11:10 WAPEETY

sorry, I just haven't had time to make the change, the main question is can it be just special key or support for modifier keys (like Control) is also necessary? I see that wherron01 used KEY_OPEN, but do Framework laptops always have some good option to chose from?

mikhail-m1 avatar Oct 05 '24 15:10 mikhail-m1

Framework laptops have a framework button that sends the KEY_MEDIA event: type 1 (EV_KEY), code 226 (KEY_MEDIA), value 0 It would be nice to have the toggle there.

kelna avatar Mar 29 '25 17:03 kelna

ok, I think for now I just can add the single key code to the config file, will try to do it next week

mikhail-m1 avatar Mar 30 '25 10:03 mikhail-m1

implemented in 1.0.2

mikhail-m1 avatar May 04 '25 09:05 mikhail-m1