Skip to content

Commit 6c5e0d3

Browse files
committed
sway: use umlauts instead of compose key
1 parent 808243b commit 6c5e0d3

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

install.conf.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
- ~/.config/VSCodium/User
2323
- ~/.vim/pack/dotfiles
2424
- ~/.vim/colors
25+
- ~/.xkb/symbols
2526

2627
# casual
2728
- link:
@@ -69,6 +70,7 @@
6970
~/.config/sway/workman: sway/workman
7071
~/.config/swaylock/config: sway/lock
7172
~/.config/environment.d/sway.conf: sway/env-vars
73+
~/.xkb/symbols/gb_umlauts: sway/xkb_gb_umlauts
7274
~/.config/Code/User/settings.json: vscodium/settings.json
7375
~/.config/VSCodium/User/settings.json: vscodium/settings.json
7476

sway/config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ set $term "foot"
1212

1313
# keyboard layout
1414
input * {
15-
xkb_layout "gb,de"
16-
xkb_options "caps:escape,grp:win_space_toggle,compose:ralt"
15+
xkb_layout "gb_umlauts,de"
16+
xkb_options "caps:escape,grp:win_space_toggle"
1717
xkb_numlock enabled
1818
}
1919
# hide cursor after 10 sec

sway/xkb_gb_umlauts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
default partial alphanumeric_keys
2+
xkb_symbols "basic" {
3+
// define a base layout to inherit
4+
include "gb"
5+
6+
// AltGr + a → ä / Ä
7+
key <AC01> { [ a, A, adiaeresis, Adiaeresis ] };
8+
// AltGr + o → ö / Ö
9+
key <AD09> { [ o, O, odiaeresis, Odiaeresis ] };
10+
// AltGr + u → ü / Ü
11+
key <AD07> { [ u, U, udiaeresis, Udiaeresis ] };
12+
13+
// AltGr + e → €
14+
key <AD03> { [ e, E, EuroSign, EuroSign ] };
15+
};

0 commit comments

Comments
 (0)