From 079cb6e54af558d8c1cc2b673d05e1cd79c3bf77 Mon Sep 17 00:00:00 2001 From: Ben Reaves Date: Sun, 19 Apr 2020 16:25:16 -0500 Subject: [PATCH] - Cleaned up comment formatting for kinto.py xkeysnail config --- xkeysnail/kinto.py | 147 ++++++++++++++++++++++----------------------- 1 file changed, 73 insertions(+), 74 deletions(-) diff --git a/xkeysnail/kinto.py b/xkeysnail/kinto.py index 6d6dd11..6be9b14 100644 --- a/xkeysnail/kinto.py +++ b/xkeysnail/kinto.py @@ -52,67 +52,66 @@ define_conditional_modmap(re.compile("Gnome-terminal|konsole|io.elementary.termi }) # Keybindings for Sublime Text -# re.compile("Sublime_text") define_keymap(re.compile("Sublime_text"),{ - K("C-Super-up"): K("M-o"), # Switch file - K("C-M-f"): K("f11"), # toggle_full_screen - K("C-M-v"): [K("C-k"), K("C-v")], # paste_from_history - K("C-up"): pass_through_key, # cancel scroll_lines up - K("Super-M-up"): K("C-up"), # scroll_lines up - K("C-down"): pass_through_key, # cancel scroll_lines down - K("Super-M-down"): K("C-down"), # scroll_lines down - K("C-PAGE_DOWN"): pass_through_key, # cancel next_view - K("C-PAGE_UP"): pass_through_key, # cancel prev_view - K("C-Shift-left_brace"): K("C-PAGE_DOWN"), # next_view - K("C-Shift-right_brace"): K("C-PAGE_UP"), # prev_view - K("C-M-right"): K("C-PAGE_DOWN"), # next_view - K("C-M-left"): K("C-PAGE_UP"), # prev_view - K("insert"): pass_through_key, # cancel toggle_overwrite - K("C-M-o"): K("insert"), # toggle_overwrite - K("M-c"): pass_through_key, # cancel toggle_case_sensitive - K("C-M-c"): K("M-c"), # toggle_case_sensitive - K("C-h"): pass_through_key, # cancel replace - K("C-M-f"): K("C-h"), # replace - K("C-Shift-h"): pass_through_key, # cancel replace_next - K("C-M-e"): K("C-Shift-h"), # replace_next - K("f3"): pass_through_key, # cancel find_next - K("C-g"): K("f3"), # find_next - K("Shift-f3"): pass_through_key, # cancel find_prev - K("C-Shift-g"): K("Shift-f3"), # find_prev - K("C-f3"): pass_through_key, # cancel find_under - K("Super-M-g"): K("C-f3"), # find_under - K("C-Shift-f3"): pass_through_key, # cancel find_under_prev - K("Super-M-Shift-g"): K("C-Shift-f3"), # find_under_prev - K("M-f3"): pass_through_key, # Default - cancel find_all_under - # K("M-Refresh"): pass_through_key, # Chromebook - cancel find_all_under - # K("M-C-g"): K("M-Refresh"), # Chromebook - find_all_under - K("Super-C-g"): K("M-f3"), # Default - find_all_under - K("C-Shift-up"): pass_through_key, # cancel swap_line_up - K("Super-C-up"): K("C-Shift-up"), # swap_line_up - K("C-Shift-down"): pass_through_key, # cancel swap_line_down - K("Super-C-down"): K("C-Shift-down"), # swap_line_down - K("C-Pause"): pass_through_key, # cancel cancel_build - K("Super-c"): K("C-Pause"), # cancel_build - K("f9"): pass_through_key, # cancel sort_lines case_s false - K("f5"): K("f9"), # sort_lines case_s false - K("Super-f9"): pass_through_key, # cancel sort_lines case_s true - K("Super-f5"): K("Super-f9"), # sort_lines case_s true - K("M-Shift-Key_1"): pass_through_key, # cancel set_layout - K("C-M-Key_1"): K("M-Shift-Key_1"), # set_layout - K("M-Shift-Key_2"): pass_through_key, # cancel set_layout - K("C-M-Key_2"): K("M-Shift-Key_2"), # set_layout - K("M-Shift-Key_3"): pass_through_key, # cancel set_layout - K("C-M-Key_3"): K("M-Shift-Key_3"), # set_layout - K("M-Shift-Key_4"): pass_through_key, # cancel set_layout - K("C-M-Key_4"): K("M-Shift-Key_4"), # set_layout - K("M-Shift-Key_8"): pass_through_key, # cancel set_layout - K("C-M-Shift-Key_2"): K("M-Shift-Key_8"), # set_layout - K("M-Shift-Key_9"): pass_through_key, # cancel set_layout - K("C-M-Shift-Key_3"): K("M-Shift-Key_9"), # set_layout - K("M-Shift-Key_5"): pass_through_key, # cancel set_layout - K("C-M-Shift-Key_5"): K("M-Shift-Key_5"), # set_layout - # K(""): pass_through_key, # cancel - # K(""): K(""), # + K("C-Super-up"): K("M-o"), # Switch file + K("C-M-f"): K("f11"), # toggle_full_screen + K("C-M-v"): [K("C-k"), K("C-v")], # paste_from_history + K("C-up"): pass_through_key, # cancel scroll_lines up + K("Super-M-up"): K("C-up"), # scroll_lines up + K("C-down"): pass_through_key, # cancel scroll_lines down + K("Super-M-down"): K("C-down"), # scroll_lines down + K("C-PAGE_DOWN"): pass_through_key, # cancel next_view + K("C-PAGE_UP"): pass_through_key, # cancel prev_view + K("C-Shift-left_brace"): K("C-PAGE_DOWN"), # next_view + K("C-Shift-right_brace"): K("C-PAGE_UP"), # prev_view + K("C-M-right"): K("C-PAGE_DOWN"), # next_view + K("C-M-left"): K("C-PAGE_UP"), # prev_view + K("insert"): pass_through_key, # cancel toggle_overwrite + K("C-M-o"): K("insert"), # toggle_overwrite + K("M-c"): pass_through_key, # cancel toggle_case_sensitive + K("C-M-c"): K("M-c"), # toggle_case_sensitive + K("C-h"): pass_through_key, # cancel replace + K("C-M-f"): K("C-h"), # replace + K("C-Shift-h"): pass_through_key, # cancel replace_next + K("C-M-e"): K("C-Shift-h"), # replace_next + K("f3"): pass_through_key, # cancel find_next + K("C-g"): K("f3"), # find_next + K("Shift-f3"): pass_through_key, # cancel find_prev + K("C-Shift-g"): K("Shift-f3"), # find_prev + K("C-f3"): pass_through_key, # cancel find_under + K("Super-M-g"): K("C-f3"), # find_under + K("C-Shift-f3"): pass_through_key, # cancel find_under_prev + K("Super-M-Shift-g"): K("C-Shift-f3"), # find_under_prev + K("M-f3"): pass_through_key, # Default - cancel find_all_under + # K("M-Refresh"): pass_through_key, # Chromebook - cancel find_all_under + # K("M-C-g"): K("M-Refresh"), # Chromebook - find_all_under + K("Super-C-g"): K("M-f3"), # Default - find_all_under + K("C-Shift-up"): pass_through_key, # cancel swap_line_up + K("Super-C-up"): K("C-Shift-up"), # swap_line_up + K("C-Shift-down"): pass_through_key, # cancel swap_line_down + K("Super-C-down"): K("C-Shift-down"), # swap_line_down + K("C-Pause"): pass_through_key, # cancel cancel_build + K("Super-c"): K("C-Pause"), # cancel_build + K("f9"): pass_through_key, # cancel sort_lines case_s false + K("f5"): K("f9"), # sort_lines case_s false + K("Super-f9"): pass_through_key, # cancel sort_lines case_s true + K("Super-f5"): K("Super-f9"), # sort_lines case_s true + K("M-Shift-Key_1"): pass_through_key, # cancel set_layout + K("C-M-Key_1"): K("M-Shift-Key_1"), # set_layout + K("M-Shift-Key_2"): pass_through_key, # cancel set_layout + K("C-M-Key_2"): K("M-Shift-Key_2"), # set_layout + K("M-Shift-Key_3"): pass_through_key, # cancel set_layout + K("C-M-Key_3"): K("M-Shift-Key_3"), # set_layout + K("M-Shift-Key_4"): pass_through_key, # cancel set_layout + K("C-M-Key_4"): K("M-Shift-Key_4"), # set_layout + K("M-Shift-Key_8"): pass_through_key, # cancel set_layout + K("C-M-Shift-Key_2"): K("M-Shift-Key_8"), # set_layout + K("M-Shift-Key_9"): pass_through_key, # cancel set_layout + K("C-M-Shift-Key_3"): K("M-Shift-Key_9"), # set_layout + K("M-Shift-Key_5"): pass_through_key, # cancel set_layout + K("C-M-Shift-Key_5"): K("M-Shift-Key_5"), # set_layout + # K(""): pass_through_key, # cancel + # K(""): K(""), # }, "Sublime Text") define_keymap(None,{ @@ -121,22 +120,22 @@ define_keymap(None,{ K("RC-Shift-Tab"): K("RC-Shift-F13"), K("RC-Grave"): K("RC-Shift-F13"), # In-App Tab switching - # K("M-Tab"): K("C-Tab"), # Chromebook - # K("M-Shift-Tab"): K("C-Shift-Tab"), # Chromebook - K("Super-Tab"): K("LC-Tab"), # Default - K("Super-Shift-Tab"): K("LC-Shift-Tab"), # Default - K("LC-Grave") : K("LC-Shift-Tab"), # Default + # K("M-Tab"): K("C-Tab"), # Chromebook + # K("M-Shift-Tab"): K("C-Shift-Tab"), # Chromebook + K("Super-Tab"): K("LC-Tab"), # Default + K("Super-Shift-Tab"): K("LC-Shift-Tab"), # Default + K("LC-Grave") : K("LC-Shift-Tab"), # Default # Wordwise - K("RC-Left"): K("Home"), # Beginning of Line - K("RC-Right"): K("End"), # End of Line - K("M-Left"): K("C-Left"), # Left of Word - K("M-Right"): K("C-Right"), # Right of Word - K("RC-Up"): K("C-Home"), # Beginning of File - K("RC-Down"): K("C-End"), # End of File - K("M-Backspace"): K("Delete"), # Delete - # K(""): pass_through_key, # cancel - # K(""): K(""), # + K("RC-Left"): K("Home"), # Beginning of Line + K("RC-Right"): K("End"), # End of Line + K("M-Left"): K("C-Left"), # Left of Word + K("M-Right"): K("C-Right"), # Right of Word + K("RC-Up"): K("C-Home"), # Beginning of File + K("RC-Down"): K("C-End"), # End of File + K("M-Backspace"): K("Delete"), # Delete + # K(""): pass_through_key, # cancel + # K(""): K(""), # }) # define_keymap(re.compile("Gnome-terminal|io.elementary.terminal|terminator|sakura|guake|tilda|xterm|eterm|kitty"),{