found 989707 1.10.1-2
tags 989707 + patch
user luca@pca.it
usertag 989707 + pca.it-installation
thanks
Hi there,
[...]
Exactly five versions later (and also 11 years later...) and I moved
from i3 to sway since Debian 13/trixie defaults to Wayland, just to
discover that my keyboard configuration is broken.
13/trixie sway session which RESPECTS my choices:
- /etc/sway/config.d/20keyboard-configuration.conf:
```
# set the default keyboard according to '/etc/default/keyboard-configuration'
# <https://bugs.debian.org/989707>
# <https://github.com/swaywm/sway/issues/6687>
# <https://github.com/swaywm/sway/issues/3846>
# <https://bugs.debian.org/924063>
exec /path/to/sway-set-keyboard-configuration.sh
```
- /path/to/sway-set-keyboard-configuration.sh:
```
#!/bin/sh
#
# <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=989707#5>
grep -e '^XKB[A-Z]*=' /etc/default/keyboard 2>/dev/null | \
cut -c 4- | \
tr '[[:upper:]]' '[[:lower:]]' | \
while IFS= read -r LINE; do
swaymsg "input type:keyboard xkb_${LINE%=*} ${LINE#*=}"
done
```
My ~/.config/sway/config starts with:
```
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
#### ATTENTION, first include everything else, then override!
include /etc/sway/config-vars.d/*
##### ATTENTION, needed for {WAYLAND_,}DISPLAY & Co., plus '/etc/default/keyboard'
include /etc/sway/config.d/*
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
[...]
```
Thx, bye,
Gismo / Luca