From: Alexey Gladkov <legion@kernel.org>
To: Matthias von Arx <matthias.von-arx@gmx.ch>
Cc: kbd@lists.linux.dev
Subject: Re: [PATCH] Swiss german keyboard adjustements
Date: Fri, 28 Nov 2025 15:46:32 +0100 [thread overview]
Message-ID: <aSm1yMXMR8QW6wVp@example.org> (raw)
In-Reply-To: <20251124231211.3550-1-matthias.von-arx@gmx.ch>
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
prev parent reply other threads:[~2025-11-28 14:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-24 23:12 [PATCH] Swiss german keyboard adjustements Matthias von Arx
2025-11-28 14:46 ` Alexey Gladkov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aSm1yMXMR8QW6wVp@example.org \
--to=legion@kernel.org \
--cc=kbd@lists.linux.dev \
--cc=matthias.von-arx@gmx.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.