Skip to content

Commit ddc4f95

Browse files
authored
Merge pull request #1643 from isaacwellish/macropad-olympic-hotkeys
line too long pylint disabled
2 parents 31d921a + dadf7a8 commit ddc4f95

File tree

5 files changed

+57
-101
lines changed

5 files changed

+57
-101
lines changed

Macropad_Olympic_Hotkeys/mac-olympics-home.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# MACROPAD Olympic Hotkeys main page
2+
# pylint: disable=line-too-long
23

34
from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values
45

@@ -13,26 +14,23 @@
1314
# 2nd row ----------
1415
# Full schedule in new tab
1516
(0x3F3F3F, 'Sched', [Keycode.COMMAND, 't', -Keycode.COMMAND,
16-
'https://olympics.com/tokyo-2020/olympic-games/en/\
17-
results/all-sports/olympic-schedule.htm\n']),
17+
'https://olympics.com/tokyo-2020/olympic-games/en/results/all-sports/olympic-schedule.htm\n']),
1818
# Medal standings in new tab
1919
(0x404000 , 'Medals', [Keycode.COMMAND, 't', -Keycode.COMMAND,
20-
'https://olympics.com/tokyo-2020/olympic-games/en/\
21-
results/all-sports/medal-standings.htm\n']),
20+
'https://olympics.com/tokyo-2020/olympic-games/en/results/all-sports/medal-standings.htm\n']),
2221
(0x400000, 'Down', ' '), # Scroll down
2322
# 3rd row ----------
2423
# Peacock streaming service Olympics home in new tab
2524
(0x000040, 'PC', [Keycode.COMMAND, 't', -Keycode.COMMAND,
26-
'https://www.peacocktv.com/watch/\
27-
2020-tokyo-olympics\n']),
28-
# Full schedule in new tab
25+
'https://www.peacocktv.com/watch/2020-tokyo-olympics\n']),
26+
# NBC channel in new tab
2927
(0x000040, 'NBC', [Keycode.COMMAND, 't', -Keycode.COMMAND,
3028
'https://www.usanetwork.com/live?brand=cnbc&callsign=nbc\n']),
31-
# Medal standings in new tab
29+
# Olympics youtube channel in new tab
3230
(0x000040 , 'YT', [Keycode.COMMAND, 't', -Keycode.COMMAND,
3331
'https://www.youtube.com/channel/UCTl3QQTvqHFjurroKxexy2Q\n']),
3432
# 4th row ----------
35-
# NBC in new tab
33+
# CNBC in new tab
3634
(0x000040, 'CNBC', [Keycode.COMMAND, 't', -Keycode.COMMAND,
3735
'https://www.usanetwork.com/live?brand=nbc&callsign=cnbc\n']),
3836
# USA in new tab

Macropad_Olympic_Hotkeys/mac-sports-1.py

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# MACROPAD Olympic Hotkeys sports page 1
2+
# pylint: disable=line-too-long
23

34
from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values
45

@@ -9,44 +10,32 @@
910
# 1st row ----------
1011
# 3x3 basketball schedule and results in new tab
1112
(0x000040, '3x3Bask', [Keycode.COMMAND, 't', -Keycode.COMMAND,
12-
'https://olympics.com/tokyo-2020/olympic-games/en/\
13-
results/3x3-basketball/olympic-schedule-and-results.htm\n']),
13+
'https://olympics.com/tokyo-2020/olympic-games/en/results/3x3-basketball/olympic-schedule-and-results.htm\n']),
1414
(0x3F3F3F, 'Arch', [Keycode.COMMAND, 't', -Keycode.COMMAND,
15-
'https://olympics.com/tokyo-2020/olympic-games/en/\
16-
results/archery/olympic-schedule-and-results.htm\n']),
15+
'https://olympics.com/tokyo-2020/olympic-games/en/results/archery/olympic-schedule-and-results.htm\n']),
1716
(0x000040 , 'ArtGym', [Keycode.COMMAND, 't', -Keycode.COMMAND,
18-
'https://olympics.com/tokyo-2020/olympic-games/en/\
19-
results/artistic-gymnastics/olympic-schedule-and-results.htm\n']),
17+
'https://olympics.com/tokyo-2020/olympic-games/en/results/artistic-gymnastics/olympic-schedule-and-results.htm\n']),
2018
# 2nd row ----------
2119
(0x3F3F3F, 'ArtSwim', [Keycode.COMMAND, 't', -Keycode.COMMAND,
22-
'https://olympics.com/tokyo-2020/olympic-games/en/r\
23-
esults/artistic-swimming/olympic-schedule-and-results.htm\n']),
20+
'https://olympics.com/tokyo-2020/olympic-games/en/results/artistic-swimming/olympic-schedule-and-results.htm\n']),
2421
(0x404000, 'Athl', [Keycode.COMMAND, 't', -Keycode.COMMAND,
25-
'https://olympics.com/tokyo-2020/olympic-games/en/\
26-
results/athletics/olympic-schedule-and-results.htm\n']),
22+
'https://olympics.com/tokyo-2020/olympic-games/en/results/athletics/olympic-schedule-and-results.htm\n']),
2723
(0x3F3F3F , 'Bdmntn', [Keycode.COMMAND, 't', -Keycode.COMMAND,
28-
'https://olympics.com/tokyo-2020/olympic-games/en/\
29-
results/badminton/olympic-schedule-and-results.htm\n']),
24+
'https://olympics.com/tokyo-2020/olympic-games/en/results/badminton/olympic-schedule-and-results.htm\n']),
3025
# 3rd row ----------
3126
(0x404000, 'BB/SB', [Keycode.COMMAND, 't', -Keycode.COMMAND,
32-
'https://olympics.com/tokyo-2020/olympic-games/en/\
33-
results/baseball-softball/olympic-schedule-and-results.htm\n']),
27+
'https://olympics.com/tokyo-2020/olympic-games/en/results/baseball-softball/olympic-schedule-and-results.htm\n']),
3428
(0x3F3F3F, 'BaskBl', [Keycode.COMMAND, 't', -Keycode.COMMAND,
35-
'https://olympics.com/tokyo-2020/olympic-games/en/\
36-
results/basketball/olympic-schedule-and-results.htm\n']),
29+
'https://olympics.com/tokyo-2020/olympic-games/en/results/basketball/olympic-schedule-and-results.htm\n']),
3730
(0x004000 , 'BVoll', [Keycode.COMMAND, 't', -Keycode.COMMAND,
38-
'https://olympics.com/tokyo-2020/olympic-games/en/\
39-
results/beach-volleyball/olympic-schedule-and-results.htm\n']),
31+
'https://olympics.com/tokyo-2020/olympic-games/en/results/beach-volleyball/olympic-schedule-and-results.htm\n']),
4032
# 4th row ----------
4133
(0x3F3F3F, 'Boxing', [Keycode.COMMAND, 't', -Keycode.COMMAND,
42-
'https://olympics.com/tokyo-2020/olympic-games/en/\
43-
results/boxing/olympic-schedule-and-results.htm\n']),
34+
'https://olympics.com/tokyo-2020/olympic-games/en/results/boxing/olympic-schedule-and-results.htm\n']),
4435
(0x004000, 'CanoeSl', [Keycode.COMMAND, 't', -Keycode.COMMAND,
45-
'https://olympics.com/tokyo-2020/olympic-games/en/\
46-
results/canoe-slalom/olympic-schedule-and-results.htm\n']),
36+
'https://olympics.com/tokyo-2020/olympic-games/en/results/canoe-slalom/olympic-schedule-and-results.htm\n']),
4737
(0x3F3F3F, 'CanoeSp', [Keycode.COMMAND, 't', -Keycode.COMMAND,
48-
'https://olympics.com/tokyo-2020/olympic-games/en/\
49-
results/canoe-sprint/olympic-schedule-and-results.htm \n']),
38+
'https://olympics.com/tokyo-2020/olympic-games/en/results/canoe-sprint/olympic-schedule-and-results.htm \n']),
5039
# Encoder button ---
5140
(0x000000, '', [Keycode.COMMAND, 'w']) # Close window/tab
5241
]

Macropad_Olympic_Hotkeys/mac-sports-2.py

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# MACROPAD Olympic Hotkeys sports page 2
2+
# pylint: disable=line-too-long
23

34
from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values
45

@@ -8,44 +9,32 @@
89
# COLOR LABEL KEY SEQUENCE
910
# 1st row ----------
1011
(0x3F3F3F, 'BMX Fr', [Keycode.COMMAND, 't', -Keycode.COMMAND,
11-
'https://olympics.com/tokyo-2020/olympic-games/en/\
12-
results/cycling-bmx-freestyle/olympic-schedule-and-results.htm\n']),
12+
'https://olympics.com/tokyo-2020/olympic-games/en/results/cycling-bmx-freestyle/olympic-schedule-and-results.htm\n']),
1313
(0x400000, 'BMX Ra', [Keycode.COMMAND, 't', -Keycode.COMMAND,
14-
'https://olympics.com/tokyo-2020/olympic-games/en/\
15-
results/cycling-bmx-racing/olympic-schedule-and-results.htm\n']),
14+
'https://olympics.com/tokyo-2020/olympic-games/en/results/cycling-bmx-racing/olympic-schedule-and-results.htm\n']),
1615
(0x3F3F3F , 'Mtn Bk', [Keycode.COMMAND, 't', -Keycode.COMMAND,
17-
'https://olympics.com/tokyo-2020/olympic-games/en/\
18-
results/cycling-mountain-bike/olympic-schedule-and-results.htm\n']),
16+
'https://olympics.com/tokyo-2020/olympic-games/en/results/cycling-mountain-bike/olympic-schedule-and-results.htm\n']),
1917
# 2nd row ----------
2018
(0x400000, 'Cyc Rd', [Keycode.COMMAND, 't', -Keycode.COMMAND,
21-
'https://olympics.com/tokyo-2020/olympic-games/en/\
22-
results/cycling-road/olympic-schedule-and-results.htm\n']),
19+
'https://olympics.com/tokyo-2020/olympic-games/en/results/cycling-road/olympic-schedule-and-results.htm\n']),
2320
(0x3F3F3F, 'Cyc Tr', [Keycode.COMMAND, 't', -Keycode.COMMAND,
24-
'https://olympics.com/tokyo-2020/olympic-games/en/\
25-
results/cycling-track/olympic-schedule-and-results.htm\n']),
21+
'https://olympics.com/tokyo-2020/olympic-games/en/results/cycling-track/olympic-schedule-and-results.htm\n']),
2622
(0x000040 , 'Dive', [Keycode.COMMAND, 't', -Keycode.COMMAND,
27-
'https://olympics.com/tokyo-2020/olympic-games/en/\
28-
results/diving/olympic-schedule-and-results.htm\n']),
23+
'https://olympics.com/tokyo-2020/olympic-games/en/results/diving/olympic-schedule-and-results.htm\n']),
2924
# 3rd row ----------
3025
(0x3F3F3F, 'Equest', [Keycode.COMMAND, 't', -Keycode.COMMAND,
31-
'https://olympics.com/tokyo-2020/olympic-games/en/\
32-
results/equestrian/olympic-schedule-and-results.htm\n']),
26+
'https://olympics.com/tokyo-2020/olympic-games/en/results/equestrian/olympic-schedule-and-results.htm\n']),
3327
(0x000040, 'Fence', [Keycode.COMMAND, 't', -Keycode.COMMAND,
34-
'https://olympics.com/tokyo-2020/olympic-games/en/\
35-
results/fencing/olympic-schedule-and-results.htm\n']),
28+
'https://olympics.com/tokyo-2020/olympic-games/en/results/fencing/olympic-schedule-and-results.htm\n']),
3629
(0x3F3F3F , 'Fball', [Keycode.COMMAND, 't', -Keycode.COMMAND,
37-
'https://olympics.com/tokyo-2020/olympic-games/en/\
38-
results/football/olympic-schedule-and-results.htm\n']),
30+
'https://olympics.com/tokyo-2020/olympic-games/en/results/football/olympic-schedule-and-results.htm\n']),
3931
# 4th row ----------
4032
(0x404000, 'Golf', [Keycode.COMMAND, 't', -Keycode.COMMAND,
41-
'https://olympics.com/tokyo-2020/olympic-games/en/\
42-
results/golf/olympic-schedule-and-results.htm\n']),
33+
'https://olympics.com/tokyo-2020/olympic-games/en/results/golf/olympic-schedule-and-results.htm\n']),
4334
(0x3F3F3F, 'Hball', [Keycode.COMMAND, 't', -Keycode.COMMAND,
44-
'https://olympics.com/tokyo-2020/olympic-games/en/\
45-
results/handball/olympic-schedule-and-results.htm\n']),
35+
'https://olympics.com/tokyo-2020/olympic-games/en/results/handball/olympic-schedule-and-results.htm\n']),
4636
(0x404000, 'Hockey', [Keycode.COMMAND, 't', -Keycode.COMMAND,
47-
'https://olympics.com/tokyo-2020/olympic-games/en/\
48-
results/hockey/olympic-schedule-and-results.htm \n']),
37+
'https://olympics.com/tokyo-2020/olympic-games/en/results/hockey/olympic-schedule-and-results.htm \n']),
4938
# Encoder button ---
5039
(0x000000, '', [Keycode.COMMAND, 'w']) # Close window/tab
5140
]

Macropad_Olympic_Hotkeys/mac-sports-3.py

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# MACROPAD Olympic Hotkeys sports page 3
2+
# pylint: disable=line-too-long
23

34
from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values
45

@@ -8,44 +9,32 @@
89
# COLOR LABEL KEY SEQUENCE
910
# 1st row ----------
1011
(0x004000, 'Judo', [Keycode.COMMAND, 't', -Keycode.COMMAND,
11-
'https://olympics.com/tokyo-2020/olympic-games/en/\
12-
results/judo/olympic-schedule-and-results.htm\n']),
12+
'https://olympics.com/tokyo-2020/olympic-games/en/results/judo/olympic-schedule-and-results.htm\n']),
1313
(0x3F3F3F, 'Karate', [Keycode.COMMAND, 't', -Keycode.COMMAND,
14-
'https://olympics.com/tokyo-2020/olympic-games/en/\
15-
results/karate/olympic-schedule-and-results.htm\n']),
14+
'https://olympics.com/tokyo-2020/olympic-games/en/results/karate/olympic-schedule-and-results.htm\n']),
1615
(0x004000 , 'MSwim', [Keycode.COMMAND, 't', -Keycode.COMMAND,
17-
'https://olympics.com/tokyo-2020/olympic-games/en/\
18-
results/marathon-swimming/olympic-schedule-and-results.htm\n']),
16+
'https://olympics.com/tokyo-2020/olympic-games/en/results/marathon-swimming/olympic-schedule-and-results.htm\n']),
1917
# 2nd row ----------
2018
(0x3F3F3F, 'Pentath', [Keycode.COMMAND, 't', -Keycode.COMMAND,
21-
'https://olympics.com/tokyo-2020/olympic-games/en/\
22-
results/modern-pentathlon/olympic-schedule-and-results.htm\n']),
19+
'https://olympics.com/tokyo-2020/olympic-games/en/results/modern-pentathlon/olympic-schedule-and-results.htm\n']),
2320
(0x400000, 'RGym', [Keycode.COMMAND, 't', -Keycode.COMMAND,
24-
'https://olympics.com/tokyo-2020/olympic-games/en/\
25-
results/rhythmic-gymnastics/olympic-schedule-and-results.htm\n']),
21+
'https://olympics.com/tokyo-2020/olympic-games/en/results/rhythmic-gymnastics/olympic-schedule-and-results.htm\n']),
2622
(0x3F3F3F , 'Row', [Keycode.COMMAND, 't', -Keycode.COMMAND,
27-
'https://olympics.com/tokyo-2020/olympic-games/en/\
28-
results/rowing/olympic-schedule-and-results.htm\n']),
23+
'https://olympics.com/tokyo-2020/olympic-games/en/results/rowing/olympic-schedule-and-results.htm\n']),
2924
# 3rd row ----------
3025
(0x400000, 'Rugby', [Keycode.COMMAND, 't', -Keycode.COMMAND,
31-
'https://olympics.com/tokyo-2020/olympic-games/en/\
32-
results/rugby-sevens/olympic-schedule-and-results.htm\n']),
26+
'https://olympics.com/tokyo-2020/olympic-games/en/results/rugby-sevens/olympic-schedule-and-results.htm\n']),
3327
(0x3F3F3F, 'Sail', [Keycode.COMMAND, 't', -Keycode.COMMAND,
34-
'https://olympics.com/tokyo-2020/olympic-games/en/\
35-
results/sailing/olympic-schedule-and-results.htm\n']),
28+
'https://olympics.com/tokyo-2020/olympic-games/en/results/sailing/olympic-schedule-and-results.htm\n']),
3629
(0x000040, 'Shoot', [Keycode.COMMAND, 't', -Keycode.COMMAND,
37-
'https://olympics.com/tokyo-2020/olympic-games/en/\
38-
results/shooting/olympic-schedule-and-results.htm\n']),
30+
'https://olympics.com/tokyo-2020/olympic-games/en/results/shooting/olympic-schedule-and-results.htm\n']),
3931
# 4th row ----------
4032
(0x3F3F3F, 'Skate', [Keycode.COMMAND, 't', -Keycode.COMMAND,
41-
'https://olympics.com/tokyo-2020/olympic-games/en/\
42-
results/skateboarding/olympic-schedule-and-results.htm\n']),
33+
'https://olympics.com/tokyo-2020/olympic-games/en/results/skateboarding/olympic-schedule-and-results.htm\n']),
4334
(0x000040, 'Climb', [Keycode.COMMAND, 't', -Keycode.COMMAND,
44-
'https://olympics.com/tokyo-2020/olympic-games/en/\
45-
results/sport-climbing/olympic-schedule-and-results.htm\n']),
35+
'https://olympics.com/tokyo-2020/olympic-games/en/results/sport-climbing/olympic-schedule-and-results.htm\n']),
4636
(0x3F3F3F, 'Surf', [Keycode.COMMAND, 't', -Keycode.COMMAND,
47-
'https://olympics.com/tokyo-2020/olympic-games/en/\
48-
results/surfing/olympic-schedule-and-results.htm \n']),
37+
'https://olympics.com/tokyo-2020/olympic-games/en/results/surfing/olympic-schedule-and-results.htm \n']),
4938
# Encoder button ---
5039
(0x000000, '', [Keycode.COMMAND, 'w']) # Close window/tab
5140
]

0 commit comments

Comments
 (0)