Skip to content

Commit

Permalink
Merge pull request #354 from rbreaves/dev
Browse files Browse the repository at this point in the history
Fixes dev tools shortcut. Closes #347
  • Loading branch information
rbreaves authored Dec 11, 2020
2 parents 8723fb5 + 87d7589 commit 1b0a268
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
17 changes: 15 additions & 2 deletions windows/kinto.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,21 @@ GroupAdd, intellij, ahk_exe idea64.exe
#IfWinActive ahk_group browsers
^q::send {Alt Down}f{Alt Up}x ; exit all windows
; Dev Tools
#^i::send {Ctrl Down}{Shift Down}i{Shift Up}{Ctrl Up}
#^j::send {Ctrl Down}{Shift Down}j{Shift Up}{Ctrl Up}
!^i::send {Ctrl Down}{Shift Down}i{Shift Up}{Ctrl Up}
!^j::send {Ctrl Down}{Shift Down}j{Shift Up}{Ctrl Up}
; Open preferences
#IfWinActive ahk_exe firefox.exe
^,::send, {Ctrl Down}t{Ctrl Up}about:preferences{Enter}
#If
#IfWinActive ahk_exe chrome.exe
^,::send {Alt Down}e{Alt Up}s{Enter}
#If
#IfWinActive ahk_exe msedge.exe
^,::send {Alt Down}e{Alt Up}s{Enter}
#If
#IfWinActive ahk_exe opera.exe
^,::send {Ctrl Down}{F12}{Ctrl Up}
#If
#If

; Sublime Text Remaps for VS Code
Expand Down
23 changes: 20 additions & 3 deletions xkeysnail-config/kinto.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
browsers = [browser.casefold() for browser in browsers]
browserStr = "|".join(str(x) for x in browsers)

chromes = ["Chromium","Chromium-browser","Google-chrome","microsoft-edge-dev","microsoft-edge"]
chromes = [chrome.casefold() for chrome in chromes]
chromeStr = "|".join(str(x) for x in chromes)

# edges = ["microsoft-edge-dev","microsoft-edge"]
# edges = [edge.casefold() for edge in edges]
# edgeStr = "|".join(str(x) for x in edges)

mscodes = ["code","vscodium"]
codeStr = "|".join(str(x) for x in mscodes)

Expand Down Expand Up @@ -198,10 +206,19 @@

# Keybindings for Browsers
define_keymap(re.compile(browserStr, re.IGNORECASE),{
K("RC-Q"): K("RC-Q"), # Close all browsers Instances
K("Super-RC-I"): K("RC-Shift-I"), # Dev tools
K("Super-RC-J"): K("RC-Shift-J"), # Dev tools
K("RC-Q"): K("RC-Q"), # Close all browsers Instances
K("M-RC-I"): K("RC-Shift-I"), # Dev tools
K("M-RC-J"): K("RC-Shift-J"), # Dev tools
})

# Open preferences in browsers
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")],
})
define_keymap(re.compile(chromeStr, re.IGNORECASE),{
K("C-comma"): [K("M-e"), K("s"),K("Enter")],
})
# Opera C-F12

define_keymap(None,{
K("RC-Space"): K("Alt-F1"), # Default SL - Launch Application Menu (gnome/kde)
Expand Down

0 comments on commit 1b0a268

Please sign in to comment.