mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-05 18:38:26 +02:00
- Added proper quit hotkey for browsers (linux)
This commit is contained in:
@@ -10,6 +10,11 @@ terminals = ["gnome-terminal","konsole","io.elementary.terminal","terminator","s
|
|||||||
terminals = [term.casefold() for term in terminals]
|
terminals = [term.casefold() for term in terminals]
|
||||||
termStr = "|".join(str(x) for x 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"]
|
mscodes = ["code","vscodium"]
|
||||||
codeStr = "|".join(str(x) for x in mscodes)
|
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
|
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,{
|
define_keymap(None,{
|
||||||
# Basic App hotkey functions
|
# Basic App hotkey functions
|
||||||
K("RC-Q"): K("Alt-F4"),
|
K("RC-Q"): K("Alt-F4"),
|
||||||
|
Reference in New Issue
Block a user