Skip to content

Commit

Permalink
Fixed missing standard g513 layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ldrahnik committed Apr 23, 2024
1 parent c50225a commit 9c7af92
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions layouts/g513.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
from libevdev import EV_KEY

top_left_icon_width = 250
top_left_icon_height = 250

top_right_icon_width = 1000
top_right_icon_height = 600

top_offset = 80
right_offset = 80
left_offset = 80
bottom_offset = 80

# please create an issue in case values does not work
backlight_levels = [
"0x41",
"0x42",
"0x43",
"0x44",
"0x45",
"0x46",
"0x47",
"0x48"
]

keys = [
[EV_KEY.KEY_KP7, EV_KEY.KEY_KP8, EV_KEY.KEY_KP9, EV_KEY.KEY_KPSLASH],
[EV_KEY.KEY_KP4, EV_KEY.KEY_KP5, EV_KEY.KEY_KP6, EV_KEY.KEY_KPASTERISK, EV_KEY.KEY_BACKSPACE],
[EV_KEY.KEY_KP1, EV_KEY.KEY_KP2, EV_KEY.KEY_KP3, EV_KEY.KEY_KPMINUS, EV_KEY.KEY_KPENTER],
[EV_KEY.KEY_KP0, EV_KEY.KEY_KP0, EV_KEY.KEY_KPDOT, EV_KEY.KEY_KPPLUS, EV_KEY.KEY_KPENTER]
]

0 comments on commit 9c7af92

Please sign in to comment.