* [PATCH] Swiss german keyboard adjustements
@ 2025-11-24 23:12 Matthias von Arx
2025-11-28 14:46 ` Alexey Gladkov
0 siblings, 1 reply; 2+ messages in thread
From: Matthias von Arx @ 2025-11-24 23:12 UTC (permalink / raw)
To: kbd; +Cc: gladkov.alexey, Matthias von Arx
What changed:
- Removed meta and alt modifier for numbers and punctuation since they are not needed
for this layout
- Moved some keybindings to with the column-style instead of
explicitly defining in a separate line - also avoiding duplication
- Move backslash to the correct position. This was in a wrong position
for Mac Swissgerman keyboards
shift 7
- Removed control_g for keycode 40 since that was wrong
- Include keymap 3 in keymaps since it is needed for the correct backslash keybind
Signed-off-by: Matthias von Arx <matthias.von-arx@gmx.ch>
---
data/keymaps/i386/qwertz/sg-mac.map | 61 +++++------------------------
1 file changed, 10 insertions(+), 51 deletions(-)
diff --git a/data/keymaps/i386/qwertz/sg-mac.map b/data/keymaps/i386/qwertz/sg-mac.map
index 3b11a8f..0c68ae3 100644
--- a/data/keymaps/i386/qwertz/sg-mac.map
+++ b/data/keymaps/i386/qwertz/sg-mac.map
@@ -1,50 +1,31 @@
# Swiss German keyboard layout for Mac
-keymaps 0-2,4-6,8,12
+keymaps 0-6,8,12
include "qwertz-layout"
include "linux-with-alt-and-altgr"
strings as usual
+# Keycode # No mod # Shift # AltGr # Shift + AltGr
+# MapBinary # 000 # 001 # 010 # 011
+# Map # 0 # 1 # 2 # 3
+
keycode 1 = Escape Escape
- alt keycode 1 = Meta_Escape
keycode 2 = one plus plusminus
- alt keycode 2 = Meta_one
keycode 3 = two quotedbl quotedbl
- control keycode 3 = nul
- alt keycode 3 = Meta_two
keycode 4 = three asterisk numbersign
- control keycode 4 = Escape
- alt keycode 4 = Meta_three
keycode 5 = four ccedilla Ccedilla
- control keycode 5 = Control_backslash
- alt keycode 5 = Meta_four
keycode 6 = five percent bracketleft
- control keycode 6 = Control_bracketright
- alt keycode 6 = Meta_five
keycode 7 = six ampersand bracketright
- control keycode 7 = Control_asciicircum
- alt keycode 7 = Meta_six
-keycode 8 = seven slash bar
- control keycode 8 = Control_underscore
- alt keycode 8 = Meta_seven
+keycode 8 = seven slash bar backslash
keycode 9 = eight parenleft braceleft
- control keycode 9 = Delete
- alt keycode 9 = Meta_eight
keycode 10 = nine parenright braceright
- alt keycode 10 = Meta_nine
keycode 11 = zero equal
- alt keycode 11 = Meta_zero
keycode 12 = apostrophe question dead_acute
- control keycode 12 = Control_underscore
- alt keycode 12 = Meta_minus
keycode 13 = dead_circumflex dead_grave dead_tilde
- alt keycode 13 = Meta_equal
keycode 14 = Delete Delete
- alt keycode 14 = Meta_Delete
-keycode 15 = Tab Meta_Tab
- alt keycode 15 = Meta_Tab
+keycode 15 = Tab Tab
keycode 16 = q Q
control keycode 16 = Control_q
alt keycode 16 = Meta_q
@@ -77,14 +58,8 @@ keycode 25 = p P
alt keycode 25 = Meta_p
keycode 26 = udiaeresis egrave section
- altgr keycode 26 = section
- control keycode 26 = Escape
- alt keycode 26 = Meta_udiaeresis
keycode 27 = dead_diaeresis exclam bracketright
- control keycode 27 = Control_bracketright
- alt keycode 27 = Meta_bracketright
keycode 28 = Return
- alt keycode 28 = Meta_Control_m
keycode 29 = Control
keycode 30 = a A
@@ -116,19 +91,10 @@ keycode 38 = l L
alt keycode 38 = Meta_l
keycode 39 = odiaeresis eacute cent
- alt keycode 39 = Meta_odiaeresis
keycode 40 = adiaeresis agrave ae
- altgr keycode 40 = ae
- control keycode 40 = Control_g
- alt keycode 40 = Meta_adiaeresis
-keycode 41 = section degree backslash
- control keycode 41 = nul
- alt keycode 41 = Meta_grave
+keycode 41 = section degree
keycode 42 = Shift
keycode 43 = dollar sterling pilcrow
- altgr keycode 43 = pilcrow
- control keycode 43 = Control_backslash
- alt keycode 43 = Meta_backslash
keycode 44 = y Y
control keycode 44 = Control_y
@@ -154,19 +120,12 @@ keycode 50 = m M mu
alt keycode 50 = Meta_m
keycode 51 = comma semicolon
- alt keycode 51 = Meta_comma
keycode 52 = period colon
- alt keycode 52 = Meta_period
keycode 53 = minus underscore
- control keycode 53 = Delete
- alt keycode 53 = Meta_slash
- shift control keycode 53 = Control_underscore
+
keycode 54 = Shift
keycode 56 = Alt
keycode 57 = space space
- control keycode 57 = nul
- alt keycode 57 = Meta_space
keycode 58 = Caps_Lock
-keycode 86 = less greater backslash
- alt keycode 86 = Meta_less
+keycode 86 = less greater
keycode 97 = Control
--
2.51.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Swiss german keyboard adjustements
2025-11-24 23:12 [PATCH] Swiss german keyboard adjustements Matthias von Arx
@ 2025-11-28 14:46 ` Alexey Gladkov
0 siblings, 0 replies; 2+ messages in thread
From: Alexey Gladkov @ 2025-11-28 14:46 UTC (permalink / raw)
To: Matthias von Arx; +Cc: kbd
On Tue, Nov 25, 2025 at 12:12:11AM +0100, Matthias von Arx wrote:
> What changed:
> - Removed meta and alt modifier for numbers and punctuation since they are not needed
> for this layout
> - Moved some keybindings to with the column-style instead of
> explicitly defining in a separate line - also avoiding duplication
> - Move backslash to the correct position. This was in a wrong position
> for Mac Swissgerman keyboards
> shift 7
> - Removed control_g for keycode 40 since that was wrong
> - Include keymap 3 in keymaps since it is needed for the correct backslash keybind
>
> Signed-off-by: Matthias von Arx <matthias.von-arx@gmx.ch>
Applied. Thanks.
> ---
> data/keymaps/i386/qwertz/sg-mac.map | 61 +++++------------------------
> 1 file changed, 10 insertions(+), 51 deletions(-)
>
> diff --git a/data/keymaps/i386/qwertz/sg-mac.map b/data/keymaps/i386/qwertz/sg-mac.map
> index 3b11a8f..0c68ae3 100644
> --- a/data/keymaps/i386/qwertz/sg-mac.map
> +++ b/data/keymaps/i386/qwertz/sg-mac.map
> @@ -1,50 +1,31 @@
> # Swiss German keyboard layout for Mac
>
> -keymaps 0-2,4-6,8,12
> +keymaps 0-6,8,12
> include "qwertz-layout"
> include "linux-with-alt-and-altgr"
>
> strings as usual
>
> +# Keycode # No mod # Shift # AltGr # Shift + AltGr
> +# MapBinary # 000 # 001 # 010 # 011
> +# Map # 0 # 1 # 2 # 3
> +
> keycode 1 = Escape Escape
> - alt keycode 1 = Meta_Escape
> keycode 2 = one plus plusminus
> - alt keycode 2 = Meta_one
> keycode 3 = two quotedbl quotedbl
> - control keycode 3 = nul
> - alt keycode 3 = Meta_two
> keycode 4 = three asterisk numbersign
> - control keycode 4 = Escape
> - alt keycode 4 = Meta_three
> keycode 5 = four ccedilla Ccedilla
> - control keycode 5 = Control_backslash
> - alt keycode 5 = Meta_four
> keycode 6 = five percent bracketleft
> - control keycode 6 = Control_bracketright
> - alt keycode 6 = Meta_five
> keycode 7 = six ampersand bracketright
> - control keycode 7 = Control_asciicircum
> - alt keycode 7 = Meta_six
> -keycode 8 = seven slash bar
> - control keycode 8 = Control_underscore
> - alt keycode 8 = Meta_seven
> +keycode 8 = seven slash bar backslash
> keycode 9 = eight parenleft braceleft
> - control keycode 9 = Delete
> - alt keycode 9 = Meta_eight
> keycode 10 = nine parenright braceright
> - alt keycode 10 = Meta_nine
> keycode 11 = zero equal
> - alt keycode 11 = Meta_zero
> keycode 12 = apostrophe question dead_acute
> - control keycode 12 = Control_underscore
> - alt keycode 12 = Meta_minus
> keycode 13 = dead_circumflex dead_grave dead_tilde
> - alt keycode 13 = Meta_equal
> keycode 14 = Delete Delete
> - alt keycode 14 = Meta_Delete
> -keycode 15 = Tab Meta_Tab
> - alt keycode 15 = Meta_Tab
>
> +keycode 15 = Tab Tab
> keycode 16 = q Q
> control keycode 16 = Control_q
> alt keycode 16 = Meta_q
> @@ -77,14 +58,8 @@ keycode 25 = p P
> alt keycode 25 = Meta_p
>
> keycode 26 = udiaeresis egrave section
> - altgr keycode 26 = section
> - control keycode 26 = Escape
> - alt keycode 26 = Meta_udiaeresis
> keycode 27 = dead_diaeresis exclam bracketright
> - control keycode 27 = Control_bracketright
> - alt keycode 27 = Meta_bracketright
> keycode 28 = Return
> - alt keycode 28 = Meta_Control_m
> keycode 29 = Control
>
> keycode 30 = a A
> @@ -116,19 +91,10 @@ keycode 38 = l L
> alt keycode 38 = Meta_l
>
> keycode 39 = odiaeresis eacute cent
> - alt keycode 39 = Meta_odiaeresis
> keycode 40 = adiaeresis agrave ae
> - altgr keycode 40 = ae
> - control keycode 40 = Control_g
> - alt keycode 40 = Meta_adiaeresis
> -keycode 41 = section degree backslash
> - control keycode 41 = nul
> - alt keycode 41 = Meta_grave
> +keycode 41 = section degree
> keycode 42 = Shift
> keycode 43 = dollar sterling pilcrow
> - altgr keycode 43 = pilcrow
> - control keycode 43 = Control_backslash
> - alt keycode 43 = Meta_backslash
>
> keycode 44 = y Y
> control keycode 44 = Control_y
> @@ -154,19 +120,12 @@ keycode 50 = m M mu
> alt keycode 50 = Meta_m
>
> keycode 51 = comma semicolon
> - alt keycode 51 = Meta_comma
> keycode 52 = period colon
> - alt keycode 52 = Meta_period
> keycode 53 = minus underscore
> - control keycode 53 = Delete
> - alt keycode 53 = Meta_slash
> - shift control keycode 53 = Control_underscore
> +
> keycode 54 = Shift
> keycode 56 = Alt
> keycode 57 = space space
> - control keycode 57 = nul
> - alt keycode 57 = Meta_space
> keycode 58 = Caps_Lock
> -keycode 86 = less greater backslash
> - alt keycode 86 = Meta_less
> +keycode 86 = less greater
> keycode 97 = Control
> --
> 2.51.1
>
--
Rgrds, legion
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-28 14:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-24 23:12 [PATCH] Swiss german keyboard adjustements Matthias von Arx
2025-11-28 14:46 ` Alexey Gladkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox