- Added early support for app switching on Gnome

This commit is contained in:
Ben Reaves
2020-02-26 18:15:46 -06:00
parent c6292ee34a
commit c4db31bdf0
4 changed files with 67 additions and 54 deletions

View File

@@ -183,33 +183,33 @@ default partial xkb_symbols "mac_levelssym" {
RedirectKey(key=<DELE>,clearmods=Mod1) RedirectKey(key=<DELE>,clearmods=Mod1)
] ]
}; };
// Cycle App and In App Tab Switching // // Cycle App and In App Tab Switching
replace key <TAB> { // replace key <TAB> {
type[Group1]= "ONE_LEVEL_CTRL", // type[Group1]= "ONE_LEVEL_CTRL",
symbols[Group1]= [ // symbols[Group1]= [
Tab, // Tab,
Tab, // Tab,
NoSymbol, // NoSymbol,
NoSymbol, // NoSymbol,
backslash, // backslash,
backslash, // backslash,
Tab, // Tab,
Tab // Tab
], // ],
actions[Group1]= [ // actions[Group1]= [
NoAction(), // NoAction(),
NoAction(), // NoAction(),
// FK18 is just to clear Alt // // FK18 is just to clear Alt
RedirectKey(key=<FK18>,clearmods=Mod1), // RedirectKey(key=<FK18>,clearmods=Mod1),
RedirectKey(key=<FK18>,clearmods=Mod1), // RedirectKey(key=<FK18>,clearmods=Mod1),
// Also need to remap on the DE level // // Also need to remap on the DE level
// to backslash \ for Cmd+Tab // // to backslash \ for Cmd+Tab
RedirectKey(key=<BKSL>), // RedirectKey(key=<BKSL>),
RedirectKey(key=<BKSL>), // RedirectKey(key=<BKSL>),
RedirectKey(key=<TAB>,modifiers=Control,clearmods=Mod4), // RedirectKey(key=<TAB>,modifiers=Control,clearmods=Mod4),
RedirectKey(key=<TAB>,modifiers=Control+Shift,clearmods=Mod4) // RedirectKey(key=<TAB>,modifiers=Control+Shift,clearmods=Mod4)
] // ]
}; // };
// // Full Print Screen // // Full Print Screen
// // GalliumOS // // GalliumOS

View File

@@ -27,33 +27,33 @@ partial xkb_symbols "mac_win" {
}; };
}; };
partial xkb_symbols "mac_global" { partial xkb_symbols "mac_global" {
// Cycle App and In App Tab Switching // // Cycle App and In App Tab Switching
replace key <TAB> { // replace key <TAB> {
type[Group1]= "ONE_LEVEL_CTRL", // type[Group1]= "ONE_LEVEL_CTRL",
symbols[Group1]= [ // symbols[Group1]= [
Tab, // Tab,
Tab, // Tab,
backslash, // backslash,
// NoSymbol, // // NoSymbol,
NoSymbol, // NoSymbol,
backslash, // backslash,
Tab, // Tab,
Tab // Tab
], // ],
actions[Group1]= [ // actions[Group1]= [
NoAction(), // NoAction(),
NoAction(), // NoAction(),
RedirectKey(key=<BKSL>,clearmods=Shift), // RedirectKey(key=<BKSL>,clearmods=Shift),
// FK18 is just to clear Alt // // FK18 is just to clear Alt
// RedirectKey(key=<FK18>,clearmods=Mod1), // // RedirectKey(key=<FK18>,clearmods=Mod1),
RedirectKey(key=<FK18>,clearmods=Mod1), // RedirectKey(key=<FK18>,clearmods=Mod1),
// Also need to remap on the DE level // // Also need to remap on the DE level
// to backslash \ for Cmd+Tab // // to backslash \ for Cmd+Tab
RedirectKey(key=<TAB>), // RedirectKey(key=<TAB>),
RedirectKey(key=<TAB>,modifiers=Control,clearmods=Mod4), // RedirectKey(key=<TAB>,modifiers=Control,clearmods=Mod4),
RedirectKey(key=<TAB>,modifiers=Control+Shift,clearmods=Mod4) // RedirectKey(key=<TAB>,modifiers=Control+Shift,clearmods=Mod4)
] // ]
}; // };
// Page Up // Page Up
replace key <UP> { replace key <UP> {
type[Group1]= "ONE_LEVEL_CTRL", type[Group1]= "ONE_LEVEL_CTRL",

View File

@@ -4,3 +4,6 @@ setxkbmap -option
# force command to run silently and report true # force command to run silently and report true
killall xbindkeys > /dev/null 2>&1 || : killall xbindkeys > /dev/null 2>&1 || :
# rm /tmp/kinto/caret # rm /tmp/kinto/caret
gsettings set org.gnome.desktop.wm.keybindings switch-applications "['<Alt>Tab']"
gsettings set org.gnome.desktop.wm.keybindings switch-applications-backward "['<Shift><Alt>Tab']"

10
system-config/system_hotkeys.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
if [ "$1" = "term" ];
then
gsettings set org.gnome.desktop.wm.keybindings switch-applications "['<Shift><Control>Tab']"
gsettings set org.gnome.desktop.wm.keybindings switch-applications-backward "['']"
else
gsettings set org.gnome.desktop.wm.keybindings switch-applications "['<Control>Tab']"
gsettings set org.gnome.desktop.wm.keybindings switch-applications-backward "['<Shift><Control>Tab']"
fi