Add FIrefox for Linux Macropad
This commit is contained in:
parent
429ea4548b
commit
2943080ce2
1 changed files with 30 additions and 0 deletions
30
Macropad_Hotkeys/macros/linux-firefox.py
Normal file
30
Macropad_Hotkeys/macros/linux-firefox.py
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# MACROPAD Hotkeys example: Safari web browser for Mac
|
||||
|
||||
from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values
|
||||
|
||||
app = { # REQUIRED dict, must be named 'app'
|
||||
'name' : 'Linux Firefox', # Application name
|
||||
'macros' : [ # List of button macros...
|
||||
# COLOR LABEL KEY SEQUENCE
|
||||
# 1st row ----------
|
||||
(0x004000, '< Back', [Keycode.CONTROL, '[']),
|
||||
(0x004000, 'Fwd >', [Keycode.CONTROL, ']']),
|
||||
(0x400000, 'Up', [Keycode.SHIFT, ' ']), # Scroll up
|
||||
# 2nd row ----------
|
||||
(0x202000, '< Tab', [Keycode.CONTROL, Keycode.SHIFT, Keycode.TAB]),
|
||||
(0x202000, 'Tab >', [Keycode.CONTROL, Keycode.TAB]),
|
||||
(0x400000, 'Down', ' '), # Scroll down
|
||||
# 3rd row ----------
|
||||
(0x000040, 'Reload', [Keycode.CONTROL, 'r']),
|
||||
(0x000040, 'Home', [Keycode.CONTROL, 'h']),
|
||||
(0x000040, 'Private', [Keycode.CONTROL, Keycode.SHIFT, 'p']),
|
||||
# 4th row ----------
|
||||
(0x000000, 'Ada', [Keycode.CONTROL, 't', -Keycode.CONTROL,
|
||||
'www.adafruit.com\n']), # adafruit.com in a new tab
|
||||
(0x800000, 'Dev Mode', [Keycode.F12]), # dev mode
|
||||
(0x101010, 'Digi', [Keycode.CONTROL, 't', -Keycode.CONTROL,
|
||||
'digikey.com\n']), # digikey in a new tab
|
||||
# Encoder button ---
|
||||
(0x000000, '', [Keycode.CONTROL, 'w']) # Close window/tab
|
||||
]
|
||||
}
|
||||
Loading…
Reference in a new issue