From acd0b8031e25c2da4a29cc4b99d424af7e3e6dd6 Mon Sep 17 00:00:00 2001 From: Ben Reaves Date: Mon, 6 Jul 2020 20:20:16 -0500 Subject: [PATCH] - Added proper quit hotkey for browsers (linux) --- xkeysnail-config/kinto.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xkeysnail-config/kinto.py b/xkeysnail-config/kinto.py index ea15741..2ad8d1b 100644 --- a/xkeysnail-config/kinto.py +++ b/xkeysnail-config/kinto.py @@ -10,6 +10,11 @@ terminals = ["gnome-terminal","konsole","io.elementary.terminal","terminator","s terminals = [term.casefold() for term in terminals] termStr = "|".join(str(x) for x in terminals) +# Use for browser specific hotkeys +browsers = ["Chromium","Chromium-browser","Google-chrome","Epiphany","Firefox"] +browsers = [browser.casefold() for browser in browsers] +browserStr = "|".join(str(x) for x in browsers) + mscodes = ["code","vscodium"] codeStr = "|".join(str(x) for x in mscodes) @@ -69,6 +74,11 @@ define_keymap(re.compile("org.gnome.nautilus", re.IGNORECASE),{ K("RC-Right"): K("M-Right"), # Go Forward }) +# Keybindings for Browsers +define_keymap(re.compile(browserStr, re.IGNORECASE),{ + K("RC-Q"): K("RC-Q"), # Close all browsers Instances +}) + define_keymap(None,{ # Basic App hotkey functions K("RC-Q"): K("Alt-F4"),