1
0
Fork 0

update keymaps

This commit is contained in:
Luca Bilke 2023-03-28 09:42:18 +02:00
parent a9b74e711a
commit 3face6dc2e
No known key found for this signature in database
GPG Key ID: 7B77C51E8C779E75
3 changed files with 22 additions and 56 deletions

View File

@ -2,6 +2,6 @@ default xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us(dvorak)+inet(evdev)+capslock(super)+custom(ralt_mod3)+custom(group2_dvorak)" };
xkb_symbols { include "pc+custom(dvorak)+inet(evdev)" };
xkb_geometry { include "pc(pc105)" };
};

View File

@ -1,52 +1,19 @@
// capslock as mod4
partial modifier_keys
xkb_symbols "caps_mod4" {
key <CAPS> { [ Super_L ] };
modifier_map Mod4 { <CAPS> };
};
// ralt as mod3
partial modifier_keys
xkb_symbols "ralt_mod3" {
include "group(switch)"
replace key <MENU> {
[ VoidSymbol, VoidSymbol ]
};
modifier_map Mod3 { <MENU> };
};
// group2 map for üöäß and some other things
partial alphanumeric_keys
xkb_symbols "group2_dvorak" {
key <AC01> { // A
symbols[Group2] = [ adiaeresis, Adiaeresis ]
};
key <AC02> { // O
symbols[Group2] = [ odiaeresis, Odiaeresis ]
};
key <AC04> { // U
symbols[Group2] = [ udiaeresis, Udiaeresis ]
};
key <AC10> { // S
symbols[Group2] = [ ssharp, ssharp ]
};
key <AB07> { // M
symbols[Group2] = [ mu, heart ]
};
key <TLDE> { // ~
symbols[Group2] = [ degree, infinity ]
};
// key <BKSP> {
// symbols[Group2] = [ BackSpace, BackSpace ]
// };
// key <SPCE> {
// symbols[Group2] = [ nobreakspace, nobreakspace ]
// };
// key <TAB> {
// symbols[Group2] = [ Tab, Tab ]
// };
// key <BKSP> {
// symbols[Group2] = [ BackSpace, BackSpace ]
// };
xkb_symbols "dvorak" {
include "us(dvorak)"
name[Group1] = "English (Dvorak, Custom)";
key <TLDE> { [grave, asciitilde, degree ] };
key <AE04> { [4, dollar, EuroSign ] };
key <AC01> { [a, A, adiaeresis, Adiaeresis ] };
key <AC02> { [o, O, odiaeresis, Odiaeresis ] };
key <AC04> { [u, U, udiaeresis, Udiaeresis ] };
key <AC10> { [s, S, ssharp ] };
key <BKSL> { [ backslash, bar, notsign, brokenbar ] };
include "level3(ralt_switch)"
include "capslock(super)"
};

View File

@ -27,12 +27,11 @@ else
fi
setxkbmap \
-layout "$(echo "$newgroup" | cut -d ':' -f1)" \
-variant "$(echo "$newgroup" | cut -d ':' -f2)" \
-option compose:ralt \
-option caps:super \
-option terminate:ctrl_alt_bksp 1>/dev/null 2>&1 ||
echo "Unkown keyboard layout" >&2
-layout "$(echo "$newgroup" | cut -d ':' -f1)" \
-variant "$(echo "$newgroup" | cut -d ':' -f2)" \
-option caps:super \
1>/dev/null 2>&1 ||
echo "Unkown keyboard layout" >&2
xset r rate 300 50
xset -q | grep "Caps Lock:\s*on" && xdotool key Caps_Lock