diff --git a/.xkb/symbols/mac_gui b/.xkb/symbols/mac_gui index 63a9b72..ffb4561 100644 --- a/.xkb/symbols/mac_gui +++ b/.xkb/symbols/mac_gui @@ -183,34 +183,6 @@ default partial xkb_symbols "mac_levelssym" { RedirectKey(key=,clearmods=Mod1) ] }; - // // Cycle App and In App Tab Switching - // replace key { - // type[Group1]= "ONE_LEVEL_CTRL", - // symbols[Group1]= [ - // Tab, - // Tab, - // NoSymbol, - // NoSymbol, - // backslash, - // backslash, - // Tab, - // Tab - // ], - // actions[Group1]= [ - // NoAction(), - // NoAction(), - // // FK18 is just to clear Alt - // RedirectKey(key=,clearmods=Mod1), - // RedirectKey(key=,clearmods=Mod1), - // // Also need to remap on the DE level - // // to backslash \ for Cmd+Tab - // RedirectKey(key=), - // RedirectKey(key=), - // RedirectKey(key=,modifiers=Control,clearmods=Mod4), - // RedirectKey(key=,modifiers=Control+Shift,clearmods=Mod4) - // ] - // }; - // // Full Print Screen // // GalliumOS // replace key { @@ -240,6 +212,54 @@ default partial xkb_symbols "mac_levelssym" { // actions[Group1]= [ NoAction(), NoAction(), RedirectKey(key=,clearmods=Control) ] // }; }; +partial xkb_symbols "mac_appcycle" { + // Cycle App and In App Tab Switching + key { [ F13 ] }; + key { [ F14 ] }; + replace key { + type[Group1]= "ONE_LEVEL_CMD", + symbols[Group1]= [ + Tab, + Tab, + F14, + F13, + NoSymbol, + NoSymbol + ], + actions[Group1]= [ + NoAction(), + NoAction(), + Redirect(key=), + Redirect(key=), + Redirect(key=,mods=Control,clearmods=Mod4+Super), + Redirect(key=,mods=Control,clearmods=Mod4+Super) + ] + }; +}; +partial xkb_symbols "mac_browsers" { + // Cycle App and In App Tab Switching + key { [ F13 ] }; + key { [ F14 ] }; + replace key { + type[Group1]= "ONE_LEVEL_CMD", + symbols[Group1]= [ + Tab, + Tab, + F14, + F13, + NoSymbol, + NoSymbol + ], + actions[Group1]= [ + NoAction(), + NoAction(), + Redirect(key=), + Redirect(key=), + Redirect(key=,mods=Control,clearmods=Mod4+Super), + Redirect(key=,mods=Control,clearmods=Mod4+Super+Shift) + ] + }; +}; partial xkb_symbols "mac_chrome" { // Back Button replace key { diff --git a/.xkb/symbols/mac_term b/.xkb/symbols/mac_term index e8dd37b..ee0f2ae 100644 --- a/.xkb/symbols/mac_term +++ b/.xkb/symbols/mac_term @@ -28,37 +28,23 @@ partial xkb_symbols "mac_win" { }; partial xkb_symbols "mac_global" { // Cycle App and In App Tab Switching - // replace key { - // type[Group1]= "ONE_LEVEL_CTRL", - // symbols[Group1]= [ - // Tab, - // Tab, - // // backslash, - // Tab, - // // NoSymbol, - // NoSymbol, - // // backslash, - // Tab, - // Tab, - // Tab - // ], - // actions[Group1]= [ - // NoAction(), - // NoAction(), - // // 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=), - // NoAction(), - // RedirectKey(key=,modifiers=Control,clearmods=Mod4), - // RedirectKey(key=,modifiers=Control+Shift,clearmods=Mod4) - // ] - // }; + key { [ F13 ] }; + key { [ F14 ] }; + replace key { + type[Group1]= "ONE_LEVEL_CMD", + symbols[Group1]= [ + Tab, + Tab, + F13, + NoSymbol + ], + actions[Group1]= [ + NoAction(), + NoAction(), + Redirect(key=), + Redirect(key=,mods=Control,clearmods=Mod4+Super) + ] + }; // Page Up replace key { type[Group1]= "ONE_LEVEL_CMD", diff --git a/.xkb/types/mac_gui b/.xkb/types/mac_gui index 36935da..edad36c 100644 --- a/.xkb/types/mac_gui +++ b/.xkb/types/mac_gui @@ -27,11 +27,17 @@ default partial xkb_types "addmac_levels" { level_name[12] = "Super Control Alt"; }; type "ONE_LEVEL_CMD" { - modifiers = Shift+Control; + modifiers = Shift+Control+Super; map[Shift] = Level2; - map[Control] = Level2; + map[Shift+Control] = Level3; + map[Control] = Level4; + map[Super] = Level5; + map[Shift+Super] = Level6; level_name[Level1] = "Base"; level_name[Level2] = "Shift"; - level_name[Level3] = "Control"; + level_name[Level3] = "Control Shift"; + level_name[Level4] = "Control"; + level_name[Level5] = "Super"; + level_name[Level6] = "Super Shift"; }; }; diff --git a/.xkb/types/mac_term b/.xkb/types/mac_term index aa0fc4f..de34832 100644 --- a/.xkb/types/mac_term +++ b/.xkb/types/mac_term @@ -27,11 +27,17 @@ default partial xkb_types "addmac_levels" { level_name[12] = "Super Control Alt"; }; type "ONE_LEVEL_CMD" { - modifiers = Shift+Control; + modifiers = Shift+Control+Super; map[Shift] = Level2; - map[Shift+Control] = Level2; + map[Shift+Control] = Level3; + map[Control] = Level4; + map[Super] = Level5; + map[Shift+Super] = Level6; level_name[Level1] = "Base"; level_name[Level2] = "Shift"; - level_name[Level3] = "Shift Control"; + level_name[Level3] = "Control Shift"; + level_name[Level4] = "Control"; + level_name[Level5] = "Super"; + level_name[Level6] = "Super Shift"; }; }; diff --git a/setup.py b/setup.py index 688d679..9a767eb 100755 --- a/setup.py +++ b/setup.py @@ -85,6 +85,9 @@ dename = cmdline("./system-config/dename.sh") print("Detected\nOS: " + distro + " " + distroVersion + "\nDE: " + dename + "\n") addhotkeys = yn_choice("Do you want to apply system level shortcuts?\nThis will add standardized shortcuts for Kinto to fully operate.\n") if(addhotkeys): + if dename == "gnome": + cmdline("gsettings set org.gnome.desktop.wm.keybindings switch-applications \"['F13','F13','Tab']\"") + cmdline("gsettings set org.gnome.desktop.wm.keybindings switch-applications-backward \"['F14','F14','Tab']\"") if distro == "ubuntu" and dename == "gnome": cmdline("gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left \"['Left','Left']\"") cmdline("gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right \"['Right','Right']\"")