Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix f5 in chrome #87

Merged
merged 4 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ List of Web Browsers:
| C | Left Ctrl | C | Command | |
| C | Ctrl+Shift | C | Command | Only applies to Terminal Emulators. |
| F | Ctrl | F | Command | |
| H | Ctrl | H | Command | Only applies to web browsers. |
| I | Ctrl | I | Command | |
| L | Alt+Ctrl | Q | Control+Command | Use only 1 Alt+Ctrl+L shortcut. Invokes Lock Screen. Works in Excepted Applications. |
| L | Alt+Ctrl | Power | Control+Shift | Use only 1 Alt+Ctrl+L shortcut. Invokes Lock Screen. Note that the screen doesn't always fully lock right away. Works in Excepted Applications. |
Expand Down Expand Up @@ -168,6 +169,9 @@ List of Web Browsers:
| F3 | | G | Command | |
| F4 | Alt | Q | Command | Works in Terminal Emulators. |
| F4 | Ctrl | W | Command | Only applies to Google Chrome. |
| F5 | | R | Command | Only applies to Google Chrome. |

([TOC](#table-of-contents))


## Credits
Expand All @@ -188,7 +192,7 @@ List of Web Browsers:
- [@necojackarc](https://github.com/necojackarc) for fixing Win+L in newer versions of macOS
- [@edance](https://github.com/edance) for adding an additional Emacs bundle, adding "L (Ctrl) [Web Browsers Only]", and expanding the list of web browsers
- [@fab1o](https://github.com/fab1o) for the JSON for Alt+Tab (#14)
- [@simonLeary42](https://github.com/simonLeary42) for adding VSCodium bundle
- [@simonLeary42](https://github.com/simonLeary42) for adding VSCodium bundle, adding "H (Ctrl) [Web Browsers Only]", and adding "F5 [Only Chrome]"

([TOC](#table-of-contents))

Expand Down
8 changes: 8 additions & 0 deletions jsonnet/windows_shortcuts.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ local k = import 'lib/karabiner.libsonnet';
k.input('f', ['control']),
k.outputKey('f', ['command']),
k.condition('unless', bundle.standard, file_paths.standard)),
k.rule('H (Ctrl) [Only Web Browsers]',
k.input('h', ['control']),
k.outputKey('y', ['command']),
k.condition('if', bundle.webBrowsers)),
k.rule('I (Ctrl)',
k.input('i', ['control']),
k.outputKey('i', ['command']),
Expand Down Expand Up @@ -262,5 +266,9 @@ local k = import 'lib/karabiner.libsonnet';
k.input('f4', ['control']),
k.outputKey('w', ['command']),
k.condition('if', ['^com\\.google\\.Chrome$'])),
k.rule('F5 [Only Chrome]',
k.input('f5'),
k.outputKey('r', ['command']),
k.condition('if', ['^com\\.google\\.Chrome$'])),
],
}