diff --git a/.gitignore b/.gitignore index 74f65c06..cf2069f7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .env/ .DS_Store +__pycache__/ diff --git a/.xkb/symbols/mac_term_chromebook b/.xkb/symbols/mac_term_chromebook new file mode 100644 index 00000000..5a022850 --- /dev/null +++ b/.xkb/symbols/mac_term_chromebook @@ -0,0 +1,14 @@ +default partial xkb_symbols "mac_levelssym" { + key { + repeat= no, + type= "ONE_LEVEL", + symbols[Group1]= [ Hyper_L ], + actions[group1]=[ SetMods(modifiers=Shift+Control) ] + }; + key { + repeat= no, + type= "ONE_LEVEL", + symbols[Group1]= [ Hyper_R ], + actions[group1]=[ SetMods(modifiers=Shift+Control) ] + }; +}; diff --git a/defaults.json b/defaults.json index 8af0ba89..df83f750 100644 --- a/defaults.json +++ b/defaults.json @@ -52,7 +52,7 @@ "gui":"setxkbmap -option;xkbcomp -w0 -I$HOME/.xkb ~/.xkb/keymap/kbd.chromebook.gui $DISPLAY", "term":"setxkbmap -option;xkbcomp -w0 -I$HOME/.xkb ~/.xkb/keymap/kbd.mac.term $DISPLAY", "xkb_symbols_gui":"+chromebook(swap_lalt_lctrl)+mac_gui(mac_levelssym)", - "xkb_symbols_term":"+altwin(swap_alt_win)+mac_term(mac_levelssym)", + "xkb_symbols_term":"+altwin(swap_alt_win)+mac_term_chromebook(mac_levelssym)", "xkb_types_gui":"+mac_gui(addmac_levels)", "xkb_types_term":"" }, @@ -66,7 +66,7 @@ "term":"setxkbmap -option;xkbcomp -w0 -I$HOME/.xkb ~/.xkb/keymap/kbd.mac.term $DISPLAY", "fallbackgui":"setxkbmap -option;xkbcomp -w0 -I$HOME/.xkb ~/.xkb/keymap/kbd.chromebook.gui $DISPLAY", "xkb_symbols_gui":"+chromebook(swap_lalt_lctrl)+mac_gui(mac_levelssym)", - "xkb_symbols_term":"+altwin(swap_alt_win)+mac_term(mac_levelssym)", + "xkb_symbols_term":"+altwin(swap_alt_win)+mac_term_chromebook(mac_levelssym)", "xkb_types_gui":"+mac_gui(addmac_levels)", "xkb_types_term":"" }, @@ -79,7 +79,7 @@ "gui":"setxkbmap -option;setxkbmap -option ctrl:swap_lwin_lctl; xkbcomp -w0 -i $internalid -I$HOME/.xkb ~/.xkb/keymap/kbd.chromebook.gui $DISPLAY", "term":"setxkbmap -option;xkbcomp -w0 -I$HOME/.xkb ~/.xkb/keymap/kbd.mac.term $DISPLAY", "xkb_symbols_gui":"+chromebook(swap_lalt_lctrl)+mac_gui(mac_levelssym)", - "xkb_symbols_term":"+altwin(swap_alt_win)+mac_term(mac_levelssym)", + "xkb_symbols_term":"+altwin(swap_alt_win)+mac_term_chromebook(mac_levelssym)", "xkb_types_gui":"+mac_gui(addmac_levels)", "xkb_types_term":"" }]