Created
July 24, 2021 22:17
-
-
Save unwiredben/3f8033bd08da0f1f09be3ce4ed9e305b to your computer and use it in GitHub Desktop.
Macropad configuration file for Firefox web browser on WIndows. Use with the CircuitPython code at https://learn.adafruit.com/macropad-hotkeys/custom-configurations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MACROPAD Hotkeys example: Firefox web browser for Windows | |
from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values | |
app = { # REQUIRED dict, must be named 'app' | |
'name' : 'Firefox', # Application name | |
'macros' : [ # List of button macros... | |
# COLOR LABEL KEY SEQUENCE | |
# 1st row ---------- | |
(0x004000, '< Back', [Keycode.ALT, Keycode.LEFT_ARROW]), | |
(0x004000, 'Fwd >', [Keycode.ALT, Keycode.RIGHT_ARROW]), | |
(0x400000, 'Up', [Keycode.PAGE_UP]), # Scroll up | |
# 2nd row ---------- | |
(0x202000, '< Tab', [Keycode.CONTROL, Keycode.SHIFT, Keycode.TAB]), | |
(0x202000, 'Tab >', [Keycode.CONTROL, Keycode.TAB]), | |
(0x400000, 'Down', [Keycode.PAGE_DOWN]), # Scroll down | |
# 3rd row ---------- | |
(0x000040, 'Reload', [Keycode.CONTROL, 'r']), | |
(0x000040, 'NewTab', [Keycode.CONTROL, 't']), | |
(0x000040, 'Private', [Keycode.SHIFT, Keycode.CONTROL, 'P']), | |
# 4th row ---------- | |
(0x000000, 'Ada', [Keycode.CONTROL, 't', -Keycode.CONTROL, | |
'www.adafruit.com\n']), # Adafruit in new window | |
(0x800000, 'Digi', [Keycode.CONTROL, 't', -Keycode.CONTROL, | |
'www.digikey.com\n']), # Digi-Key in new window | |
(0x101010, 'H-A-D', [Keycode.CONTROL, 't', -Keycode.CONTROL, | |
'www.hackaday.com\n']), # Hack-a-Day in new win | |
# Encoder button --- | |
(0x000000, '', [Keycode.CONTROL, 'w']) # Close window/tab | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment