From d5dc77b25ebb74c6c3d9ea3d14c0a8b7fcecb94c Mon Sep 17 00:00:00 2001 From: Anssi Hannula Date: Sun, 2 Oct 2022 15:27:03 +0300 Subject: [PATCH] pro1x: Remove Sym mappings from layouts Pro1 layouts mapped Sym, which had no stock functionality, to wakeup and alt+Sym to trigger backlight/reorientation (as a workaround for stock firmware sometimes forgetting those). However, wakeup no longer works on Pro1 X and it is not known if the backlight workaround is needed, either, and the Sym button seems to have some stock functionality (keyboard setup is brought up). Remove the Sym mappings from Pro1 X layouts for now, until need arises. --- finqwerty/src/main/res/raw/pro1x_qwerty_cze_2.kcm | 11 ----------- finqwerty/src/main/res/raw/pro1x_qwerty_dan_1.kcm | 11 ----------- finqwerty/src/main/res/raw/pro1x_qwerty_usa_1.kcm | 11 ----------- generate_layouts.py | 5 +++++ 4 files changed, 5 insertions(+), 33 deletions(-) diff --git a/finqwerty/src/main/res/raw/pro1x_qwerty_cze_2.kcm b/finqwerty/src/main/res/raw/pro1x_qwerty_cze_2.kcm index d8c011f..d4d7951 100644 --- a/finqwerty/src/main/res/raw/pro1x_qwerty_cze_2.kcm +++ b/finqwerty/src/main/res/raw/pro1x_qwerty_cze_2.kcm @@ -5,17 +5,6 @@ type OVERLAY # orig BACK map key 158 ESCAPE -# orig SYM but SYM does not do anything at the moment -# so use as back/wakeup for now -map key 249 WAKEUP - -# map alt+sym = F6 (which signals keyboard open), allowing one to press alt+sym -# to trigger enabling keyboard backlight and screen rotation as sometimes the -# Pro1 stock OS seems to lose the keyboard open state -key WAKEUP { - alt: replace F6 -} - # Y/Z swap map key 21 Z map key 44 Y diff --git a/finqwerty/src/main/res/raw/pro1x_qwerty_dan_1.kcm b/finqwerty/src/main/res/raw/pro1x_qwerty_dan_1.kcm index c236866..158d230 100644 --- a/finqwerty/src/main/res/raw/pro1x_qwerty_dan_1.kcm +++ b/finqwerty/src/main/res/raw/pro1x_qwerty_dan_1.kcm @@ -5,17 +5,6 @@ type OVERLAY # orig BACK map key 158 ESCAPE -# orig SYM but SYM does not do anything at the moment -# so use as back/wakeup for now -map key 249 WAKEUP - -# map alt+sym = F6 (which signals keyboard open), allowing one to press alt+sym -# to trigger enabling keyboard backlight and screen rotation as sometimes the -# Pro1 stock OS seems to lose the keyboard open state -key WAKEUP { - alt: replace F6 -} - # ROW 1 key 1 { diff --git a/finqwerty/src/main/res/raw/pro1x_qwerty_usa_1.kcm b/finqwerty/src/main/res/raw/pro1x_qwerty_usa_1.kcm index 83aa170..6dcc718 100644 --- a/finqwerty/src/main/res/raw/pro1x_qwerty_usa_1.kcm +++ b/finqwerty/src/main/res/raw/pro1x_qwerty_usa_1.kcm @@ -5,17 +5,6 @@ type OVERLAY # orig BACK map key 158 ESCAPE -# orig SYM but SYM does not do anything at the moment -# so use as back/wakeup for now -map key 249 WAKEUP - -# map alt+sym = F6 (which signals keyboard open), allowing one to press alt+sym -# to trigger enabling keyboard backlight and screen rotation as sometimes the -# Pro1 stock OS seems to lose the keyboard open state -key WAKEUP { - alt: replace F6 -} - # ROW 1 key ESCAPE { diff --git a/generate_layouts.py b/generate_layouts.py index e4b2a7d..ca95b86 100755 --- a/generate_layouts.py +++ b/generate_layouts.py @@ -292,6 +292,11 @@ NAME: f"pro1x_qwertz_{name}.kcm", SOURCE: f"pro1_qwertz_{name}.kcm", REPLACE: PRO1_PRO1X_REPLACE, + # Remove Sym = WAKEUP assignment, it does not work on Pro1X stock OS + # and the Sym has some stock functionality (keyboard layout setup). + REMOVE_SCANCODES: [ + 249, # Sym + ], } for name in QWERTZ_LAYOUTS ]