From e82de02e00874d85602b3c8a558a61e07abe1d1d Mon Sep 17 00:00:00 2001 From: RedBearAK <64876997+RedBearAK@users.noreply.github.com> Date: Thu, 19 May 2022 04:03:30 -0800 Subject: [PATCH] Overrides for Deepin Terminal Some overrides necessary for Deepin Terminal. - Tab nav - Zoom/font size controls - Tab close shortcut remap to avoid closing all other tabs instead of current tab --- linux/kinto.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/linux/kinto.py b/linux/kinto.py index dbb1acc..7485561 100755 --- a/linux/kinto.py +++ b/linux/kinto.py @@ -733,6 +733,15 @@ define_keymap(re.compile("Io.elementary.terminal|kitty", re.IGNORECASE),{ }, "Elementary Terminal tab switching") +define_keymap(re.compile("deepin-terminal", re.IGNORECASE),{ + K("RC-w"): K("M-w"), # Close only current tab, instead of all other tabs + K("RC-j"): None, # Block Cmd+J from remapping to vertical split (Ctrl+Shift+J) + K("RC-Shift-Left_Brace"): K("C-Tab"), # Tab nav: Go to prior tab (left) + K("RC-Shift-Right_Brace"): K("C-Shift-Tab"), # Tab nav: Go to next tab (right) + K("RC-minus"): K("C-minus"), # Decrease font size/zoom out + K("RC-equal"): K("C-equal"), # Increase font size/zoom in +},"Deepin Terminal fixes") + define_keymap(re.compile(termStr, re.IGNORECASE),{ K("LC-RC-f"): K("M-F10"), # Toggle window maximized state # K("RC-Grave"): K("Super-Tab"), # xfce4 Switch within app group