From e8a8c0ed569b6e650b1bafbdc582b5caba7f5d00 Mon Sep 17 00:00:00 2001 From: Ben Reaves Date: Wed, 26 Feb 2020 20:54:23 -0600 Subject: [PATCH] - Updated mac_gui and term files to better map keys that only concern shift and/or control. --- .xkb/symbols/mac_term | 42 ++++++++++++++++++++++++------------------ .xkb/types/mac_gui | 8 ++++++++ .xkb/types/mac_term | 8 ++++++++ 3 files changed, 40 insertions(+), 18 deletions(-) diff --git a/.xkb/symbols/mac_term b/.xkb/symbols/mac_term index 9898f02..e8dd37b 100644 --- a/.xkb/symbols/mac_term +++ b/.xkb/symbols/mac_term @@ -27,49 +27,55 @@ partial xkb_symbols "mac_win" { }; }; partial xkb_symbols "mac_global" { - // // Cycle App and In App Tab Switching + // Cycle App and In App Tab Switching // replace key { // type[Group1]= "ONE_LEVEL_CTRL", // symbols[Group1]= [ // Tab, // Tab, - // backslash, - // // NoSymbol, + // // backslash, + // Tab, + // // NoSymbol, // NoSymbol, - // backslash, + // // backslash, + // Tab, // Tab, // Tab // ], // actions[Group1]= [ // NoAction(), // NoAction(), - // RedirectKey(key=,clearmods=Shift), + // // RedirectKey(key=,clearmods=Shift), + // NoAction(), // // FK18 is just to clear Alt // // RedirectKey(key=,clearmods=Mod1), + // // Clears Alt + Shift // RedirectKey(key=,clearmods=Mod1), // // Also need to remap on the DE level // // to backslash \ for Cmd+Tab - // RedirectKey(key=), + // // RedirectKey(key=), + // NoAction(), // RedirectKey(key=,modifiers=Control,clearmods=Mod4), // RedirectKey(key=,modifiers=Control+Shift,clearmods=Mod4) // ] // }; // Page Up replace key { - type[Group1]= "ONE_LEVEL_CTRL", - symbols[Group1]= [ - Up, - Up, - NoSymbol ], - actions[Group1]= [ + type[Group1]= "ONE_LEVEL_CMD", + symbols[Group1]= [ + Up, + Up, + NoSymbol + ], + actions[Group1]= [ NoAction(), NoAction(), - RedirectKey(key=,clearmods=Shift+Control) + RedirectKey(key=,clearmods=Shift+Control) ] }; // Page Down replace key { - type[Group1]= "ONE_LEVEL_CTRL", + type[Group1]= "ONE_LEVEL_CMD", symbols[Group1]= [ Down, Down, @@ -83,7 +89,7 @@ partial xkb_symbols "mac_global" { }; // HOME replace key { - type[Group1]= "ONE_LEVEL_CTRL", + type[Group1]= "ONE_LEVEL_CMD", symbols[Group1]= [ Left, Left, @@ -97,7 +103,7 @@ partial xkb_symbols "mac_global" { }; // END replace key { - type[Group1]= "ONE_LEVEL_CTRL", + type[Group1]= "ONE_LEVEL_CMD", symbols[Group1]= [ Right, Right, @@ -112,7 +118,7 @@ partial xkb_symbols "mac_global" { // Full Print Screen // Standard Ubuntu replace key { - type[Group1]= "ONE_LEVEL_CTRL", + type[Group1]= "ONE_LEVEL_CMD", symbols[Group1]= [ 3, numbersign, @@ -127,7 +133,7 @@ partial xkb_symbols "mac_global" { // Region Print Screen // Standard Ubuntu replace key { - type[Group1]= "ONE_LEVEL_CTRL", + type[Group1]= "ONE_LEVEL_CMD", symbols[Group1]= [ 4, dollar, diff --git a/.xkb/types/mac_gui b/.xkb/types/mac_gui index fbd227a..36935da 100644 --- a/.xkb/types/mac_gui +++ b/.xkb/types/mac_gui @@ -26,4 +26,12 @@ default partial xkb_types "addmac_levels" { level_name[11] = "Super Alt"; level_name[12] = "Super Control Alt"; }; + type "ONE_LEVEL_CMD" { + modifiers = Shift+Control; + map[Shift] = Level2; + map[Control] = Level2; + level_name[Level1] = "Base"; + level_name[Level2] = "Shift"; + level_name[Level3] = "Control"; + }; }; diff --git a/.xkb/types/mac_term b/.xkb/types/mac_term index 7817c8e..aa0fc4f 100644 --- a/.xkb/types/mac_term +++ b/.xkb/types/mac_term @@ -26,4 +26,12 @@ default partial xkb_types "addmac_levels" { level_name[11] = "Super Alt"; level_name[12] = "Super Control Alt"; }; + type "ONE_LEVEL_CMD" { + modifiers = Shift+Control; + map[Shift] = Level2; + map[Shift+Control] = Level2; + level_name[Level1] = "Base"; + level_name[Level2] = "Shift"; + level_name[Level3] = "Shift Control"; + }; };