mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-02 09:06:40 +02:00
- Added early support for app switching on Gnome
This commit is contained in:
@@ -183,33 +183,33 @@ default partial xkb_symbols "mac_levelssym" {
|
||||
RedirectKey(key=<DELE>,clearmods=Mod1)
|
||||
]
|
||||
};
|
||||
// Cycle App and In App Tab Switching
|
||||
replace key <TAB> {
|
||||
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=<FK18>,clearmods=Mod1),
|
||||
RedirectKey(key=<FK18>,clearmods=Mod1),
|
||||
// Also need to remap on the DE level
|
||||
// to backslash \ for Cmd+Tab
|
||||
RedirectKey(key=<BKSL>),
|
||||
RedirectKey(key=<BKSL>),
|
||||
RedirectKey(key=<TAB>,modifiers=Control,clearmods=Mod4),
|
||||
RedirectKey(key=<TAB>,modifiers=Control+Shift,clearmods=Mod4)
|
||||
]
|
||||
};
|
||||
// // Cycle App and In App Tab Switching
|
||||
// replace key <TAB> {
|
||||
// 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=<FK18>,clearmods=Mod1),
|
||||
// RedirectKey(key=<FK18>,clearmods=Mod1),
|
||||
// // Also need to remap on the DE level
|
||||
// // to backslash \ for Cmd+Tab
|
||||
// RedirectKey(key=<BKSL>),
|
||||
// RedirectKey(key=<BKSL>),
|
||||
// RedirectKey(key=<TAB>,modifiers=Control,clearmods=Mod4),
|
||||
// RedirectKey(key=<TAB>,modifiers=Control+Shift,clearmods=Mod4)
|
||||
// ]
|
||||
// };
|
||||
|
||||
// // Full Print Screen
|
||||
// // GalliumOS
|
||||
|
@@ -27,33 +27,33 @@ partial xkb_symbols "mac_win" {
|
||||
};
|
||||
};
|
||||
partial xkb_symbols "mac_global" {
|
||||
// Cycle App and In App Tab Switching
|
||||
replace key <TAB> {
|
||||
type[Group1]= "ONE_LEVEL_CTRL",
|
||||
symbols[Group1]= [
|
||||
Tab,
|
||||
Tab,
|
||||
backslash,
|
||||
// NoSymbol,
|
||||
NoSymbol,
|
||||
backslash,
|
||||
Tab,
|
||||
Tab
|
||||
],
|
||||
actions[Group1]= [
|
||||
NoAction(),
|
||||
NoAction(),
|
||||
RedirectKey(key=<BKSL>,clearmods=Shift),
|
||||
// FK18 is just to clear Alt
|
||||
// RedirectKey(key=<FK18>,clearmods=Mod1),
|
||||
RedirectKey(key=<FK18>,clearmods=Mod1),
|
||||
// Also need to remap on the DE level
|
||||
// to backslash \ for Cmd+Tab
|
||||
RedirectKey(key=<TAB>),
|
||||
RedirectKey(key=<TAB>,modifiers=Control,clearmods=Mod4),
|
||||
RedirectKey(key=<TAB>,modifiers=Control+Shift,clearmods=Mod4)
|
||||
]
|
||||
};
|
||||
// // Cycle App and In App Tab Switching
|
||||
// replace key <TAB> {
|
||||
// type[Group1]= "ONE_LEVEL_CTRL",
|
||||
// symbols[Group1]= [
|
||||
// Tab,
|
||||
// Tab,
|
||||
// backslash,
|
||||
// // NoSymbol,
|
||||
// NoSymbol,
|
||||
// backslash,
|
||||
// Tab,
|
||||
// Tab
|
||||
// ],
|
||||
// actions[Group1]= [
|
||||
// NoAction(),
|
||||
// NoAction(),
|
||||
// RedirectKey(key=<BKSL>,clearmods=Shift),
|
||||
// // FK18 is just to clear Alt
|
||||
// // RedirectKey(key=<FK18>,clearmods=Mod1),
|
||||
// RedirectKey(key=<FK18>,clearmods=Mod1),
|
||||
// // Also need to remap on the DE level
|
||||
// // to backslash \ for Cmd+Tab
|
||||
// RedirectKey(key=<TAB>),
|
||||
// RedirectKey(key=<TAB>,modifiers=Control,clearmods=Mod4),
|
||||
// RedirectKey(key=<TAB>,modifiers=Control+Shift,clearmods=Mod4)
|
||||
// ]
|
||||
// };
|
||||
// Page Up
|
||||
replace key <UP> {
|
||||
type[Group1]= "ONE_LEVEL_CTRL",
|
||||
|
@@ -4,3 +4,6 @@ setxkbmap -option
|
||||
# force command to run silently and report true
|
||||
killall xbindkeys > /dev/null 2>&1 || :
|
||||
# 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
10
system-config/system_hotkeys.sh
Executable 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
|
Reference in New Issue
Block a user