From c298bd2b5a52570926233132d66c8de5bdc8b6b4 Mon Sep 17 00:00:00 2001 From: Ben Reaves Date: Wed, 5 May 2021 06:55:42 -0500 Subject: [PATCH] Fixes Cmd-Grave for In-App switching --- linux/kinto.py | 9 ++++++--- xkeysnail_service.sh | 5 ++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/linux/kinto.py b/linux/kinto.py index 3dee91f..679d44c 100755 --- a/linux/kinto.py +++ b/linux/kinto.py @@ -438,8 +438,10 @@ define_keymap(lambda wm_class: wm_class.casefold() not in remotes,{ K("M-Tab"): pass_through_key, # Default - Cmd Tab - App Switching Default K("RC-Tab"): K("M-Tab"), # Default - Cmd Tab - App Switching Default K("RC-Shift-Tab"): K("M-Shift-Tab"), # Default - Cmd Tab - App Switching Default - K("RC-Grave"): K("M-Grave"), # Default - Cmd ` - Same App Switching - K("RC-Shift-Grave"): K("M-Shift-Grave"), # Default - Cmd ` - Same App Switching + K("RC-Grave"): K("M-Grave"), # Default not-xfce4 - Cmd ` - Same App Switching + K("RC-Shift-Grave"): K("M-Shift-Grave"), # Default not-xfce4 - Cmd ` - Same App Switching + # K("RC-Grave"): K("Super-Tab"), # xfce4 Switch within app group + # K("RC-Shift-Grave"): K("Super-Shift-Tab"), # xfce4 Switch within app group # K("Super-Right"):K("Super-Page_Up"), # SL - Change workspace (ubuntu/fedora) # K("Super-Left"):K("Super-Page_Down"), # SL - Change workspace (ubuntu/fedora) # K("Super-Right"):K("Super-C-Up"), # SL - Change workspace (popos) @@ -650,6 +652,8 @@ define_keymap(re.compile("Io.elementary.terminal|kitty", re.IGNORECASE),{ }, "Elementary Terminal tab switching") define_keymap(re.compile(termStr, re.IGNORECASE),{ + # K("RC-Grave"): K("Super-Tab"), # xfce4 Switch within app group + # K("RC-Shift-Grave"): K("Super-Shift-Tab"), # xfce4 Switch within app group # K("LC-Right"):K("C-M-Right"), # Default SL - Change workspace (budgie) # K("LC-Left"):K("C-M-Left"), # Default SL - Change workspace (budgie) # K("LC-Left"):K("C-M-End"), # SL - Change workspace xfce4 @@ -694,7 +698,6 @@ define_keymap(re.compile(termStr, re.IGNORECASE),{ K("RC-SEMICOLON"): K("C-Shift-SEMICOLON"), K("RC-APOSTROPHE"): K("C-Shift-APOSTROPHE"), K("RC-GRAVE"): K("C-Shift-GRAVE"), - K("RC-BACKSLASH"): K("C-Shift-BACKSLASH"), K("RC-Z"): K("C-Shift-Z"), K("RC-X"): K("C-Shift-X"), K("RC-C"): K("C-Shift-C"), diff --git a/xkeysnail_service.sh b/xkeysnail_service.sh index 902cd59..4eb251a 100755 --- a/xkeysnail_service.sh +++ b/xkeysnail_service.sh @@ -280,12 +280,11 @@ elif [[ $dename == 'xfce' ]];then xfconf-query --channel xfce4-keyboard-shortcuts --property "/commands/custom/F1" --create --type string --set "$nlauncher" && echo "$nlauncher has been set to Alt-F1 for Cmd-Space to work." # Unset Super_L to avoid issues during setup, will re-apply at the end xfconf-query --channel xfce4-keyboard-shortcuts --property "/commands/custom/Super_L" --reset - xfconf-query --channel xfce4-keyboard-shortcuts --property "/commands/custom/Tab" --reset - xfconf-query --channel xfce4-keyboard-shortcuts --property "/commands/custom/Tab" --create --type string --set "" + # xfconf-query --channel xfce4-keyboard-shortcuts --property "/commands/custom/grave" --create --type string --set "switch_window_key" + fi # Unset Super-Tab, breaks Ctrl-Tab. switch_window_key sed -i '/.*name=\"<Super>Tab.*$/d' ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml - fi # if ls /etc/apt/sources.list.d/system76* 1> /dev/null 2>&1; then