Skip to content

Commit

Permalink
- Added Browser preferences hotkey Cmd+, #348
Browse files Browse the repository at this point in the history
  • Loading branch information
rbreaves committed Dec 8, 2020
1 parent f952c9e commit 75ac498
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
13 changes: 13 additions & 0 deletions windows/kinto.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,19 @@ GroupAdd, intellij, ahk_exe idea64.exe
; Dev Tools
#^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 {Alt Down}{Shift Down}t{Shift Up}{Alt Up}o{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
17 changes: 17 additions & 0 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 @@ -203,6 +211,15 @@
K("Super-RC-J"): K("RC-Shift-J"), # Dev tools
})

# Open preferences in browsers
define_keymap(re.compile("Firefox", re.IGNORECASE),{
K("C-comma"): [K("M-t"), K("o"),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)
K("RC-F3"):K("Super-d"), # Default SL - Show Desktop (gnome/kde,eos)
Expand Down

2 comments on commit 75ac498

@ukutaht
Copy link

@ukutaht ukutaht commented on 75ac498 Dec 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm this doesn't work for me for some reason. Instead of opening about:preferences it opens the Tools menu from the top menubar.

@rbreaves
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, well I hadn’t yet tested directly against FF on Linux - it works on Windows so I did a shot in the dark for Linux lol.

They’re usually the same but not today it seems. You did switch to the dev branch I assume. I will look at this one later too.

Please sign in to comment.