Skip to content

Commit

Permalink
- Separating xkb types to avoid select-all chrome bug on Super(ctrl)+a
Browse files Browse the repository at this point in the history
  • Loading branch information
rbreaves committed Mar 9, 2020
1 parent 1d59d8d commit b904235
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 21 deletions.
24 changes: 3 additions & 21 deletions .xkb/symbols/mac_gui
Original file line number Diff line number Diff line change
Expand Up @@ -54,29 +54,20 @@ default partial xkb_symbols "mac_levelssym" {
// Also maps Option + Cmd + F to Control+H for Replace - Sublime
// AD03=e,E
// AC01=a,A
// Ctrl + E - End of Line
// Ctrl + A - Beginning of Line
replace key <AC01> {
type[Group1]= "ONE_LEVEL_CTRL",
type[Group1]= "ONE_LEVEL_SUPER",
symbols[Group1]= [
// Base
a,
// Shift
A,
// Alt
a,
// Shift Alt
A,
// Super
NoSymbol,
// Shift Super
NoSymbol

],
actions[Group1]= [
NoAction(),
NoAction(),
NoAction(),
NoAction(),
NoAction(),
NoAction(),
RedirectKey(key=<HOME>,clearmods=Super),
Expand All @@ -85,27 +76,18 @@ default partial xkb_symbols "mac_levelssym" {
};
// Ctrl + E - End of Line
replace key <AD03> {
type[Group1]= "ONE_LEVEL_CTRL",
type[Group1]= "ONE_LEVEL_SUPER",
symbols[Group1]= [
// Base
e,
// Shift
E,
// Alt
e,
// Shift Alt
E,
// Super
NoSymbol,
// Shift Super
NoSymbol

],
actions[Group1]= [
NoAction(),
NoAction(),
NoAction(),
NoAction(),
NoAction(),
NoAction(),
RedirectKey(key=<END>,clearmods=Super),
Expand Down
10 changes: 10 additions & 0 deletions .xkb/types/mac_gui
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,14 @@ default partial xkb_types "addmac_levels" {
level_name[Level5] = "Super";
level_name[Level6] = "Super Shift";
};
type "ONE_LEVEL_SUPER" {
modifiers = Shift+Super;
map[Shift] = Level2;
map[Super] = Level3;
map[Shift+Super] = Level4;
level_name[Level1] = "Base";
level_name[Level2] = "Shift";
level_name[Level3] = "Super";
level_name[Level4] = "Super Shift";
};
};

0 comments on commit b904235

Please sign in to comment.