mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-06 10:58:26 +02:00
Merge pull request #441 from RedBearAK/patch-7
Reformat WM_CLASS lists as vertically stacked for easier reading/editing
This commit is contained in:
@@ -7,7 +7,25 @@ from xkeysnail.transform import *
|
|||||||
# Use the following for testing terminal keymaps
|
# Use the following for testing terminal keymaps
|
||||||
# terminals = [ "", ... ]
|
# terminals = [ "", ... ]
|
||||||
# xbindkeys -mk
|
# xbindkeys -mk
|
||||||
terminals = ["kinto-gui.py","gnome-terminal","konsole","io.elementary.terminal","terminator","sakura","guake","tilda","xterm","eterm","kitty","alacritty","mate-terminal","tilix","xfce4-terminal","hyper"]
|
terminals = [
|
||||||
|
"alacritty",
|
||||||
|
"eterm",
|
||||||
|
"gnome-terminal",
|
||||||
|
"guake",
|
||||||
|
"hyper",
|
||||||
|
"io.elementary.terminal",
|
||||||
|
"kinto-gui.py",
|
||||||
|
"kitty",
|
||||||
|
"konsole",
|
||||||
|
"mate-terminal",
|
||||||
|
"qterminal",
|
||||||
|
"sakura",
|
||||||
|
"terminator",
|
||||||
|
"tilda",
|
||||||
|
"tilix",
|
||||||
|
"xfce4-terminal",
|
||||||
|
"xterm",
|
||||||
|
]
|
||||||
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)
|
||||||
|
|
||||||
@@ -17,7 +35,10 @@ codeStr = "|".join(str(x) for x in mscodes)
|
|||||||
# Add remote desktop clients & VM software here
|
# Add remote desktop clients & VM software here
|
||||||
# Ideally we'd only exclude the client window,
|
# Ideally we'd only exclude the client window,
|
||||||
# but that may not be easily done.
|
# but that may not be easily done.
|
||||||
remotes = ["org.remmina.Remmina","xfreerdp"]
|
remotes = [
|
||||||
|
"org.remmina.Remmina",
|
||||||
|
"xfreerdp",
|
||||||
|
]
|
||||||
remotes = [client.casefold() for client in remotes]
|
remotes = [client.casefold() for client in remotes]
|
||||||
|
|
||||||
# Add remote desktop clients & VMs for no remapping
|
# Add remote desktop clients & VMs for no remapping
|
||||||
@@ -26,11 +47,26 @@ remotes.extend(terminals)
|
|||||||
remotes = list(set(remotes))
|
remotes = list(set(remotes))
|
||||||
|
|
||||||
# Use for browser specific hotkeys
|
# Use for browser specific hotkeys
|
||||||
browsers = ["Chromium","Chromium-browser","Google-chrome","microsoft-edge-dev","microsoft-edge","Epiphany","Firefox","Discord"]
|
browsers = [
|
||||||
|
"Chromium",
|
||||||
|
"Chromium-browser",
|
||||||
|
"Discord",
|
||||||
|
"Epiphany",
|
||||||
|
"Firefox",
|
||||||
|
"Google-chrome",
|
||||||
|
"microsoft-edge",
|
||||||
|
"microsoft-edge-dev",
|
||||||
|
]
|
||||||
browsers = [browser.casefold() for browser in browsers]
|
browsers = [browser.casefold() for browser in browsers]
|
||||||
browserStr = "|".join(str(x) for x in browsers)
|
browserStr = "|".join(str(x) for x in browsers)
|
||||||
|
|
||||||
chromes = ["Chromium","Chromium-browser","Google-chrome","microsoft-edge-dev","microsoft-edge"]
|
chromes = [
|
||||||
|
"Chromium",
|
||||||
|
"Chromium-browser",
|
||||||
|
"Google-chrome",
|
||||||
|
"microsoft-edge",
|
||||||
|
"microsoft-edge-dev",
|
||||||
|
]
|
||||||
chromes = [chrome.casefold() for chrome in chromes]
|
chromes = [chrome.casefold() for chrome in chromes]
|
||||||
chromeStr = "|".join(str(x) for x in chromes)
|
chromeStr = "|".join(str(x) for x in chromes)
|
||||||
|
|
||||||
@@ -241,7 +277,11 @@ define_keymap(re.compile(browserStr, re.IGNORECASE),{
|
|||||||
|
|
||||||
# Open preferences in browsers
|
# Open preferences in browsers
|
||||||
define_keymap(re.compile("Firefox", re.IGNORECASE),{
|
define_keymap(re.compile("Firefox", re.IGNORECASE),{
|
||||||
K("C-comma"): [K("C-T"),K("a"),K("b"),K("o"),K("u"),K("t"),K("Shift-SEMICOLON"),K("p"),K("r"),K("e"),K("f"),K("e"),K("r"),K("e"),K("n"),K("c"),K("e"),K("s"),K("Enter")],
|
K("C-comma"): [
|
||||||
|
K("C-T"),K("a"),K("b"),K("o"),K("u"),K("t"),
|
||||||
|
K("Shift-SEMICOLON"),K("p"),K("r"),K("e"),K("f"),
|
||||||
|
K("e"),K("r"),K("e"),K("n"),K("c"),K("e"),K("s"),K("Enter")
|
||||||
|
],
|
||||||
})
|
})
|
||||||
define_keymap(re.compile(chromeStr, re.IGNORECASE),{
|
define_keymap(re.compile(chromeStr, re.IGNORECASE),{
|
||||||
K("C-comma"): [K("M-e"), K("s"),K("Enter")],
|
K("C-comma"): [K("M-e"), K("s"),K("Enter")],
|
||||||
|
Reference in New Issue
Block a user