GithubHelp home page GithubHelp logo

leofah / i3razer Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 1.0 26 KB

Hotkeys/Command visualization on razer keyboards via openrazer

License: MIT License

Python 100.00%
i3 i3wm linux python3 razer razer-devices razer-peripherals

i3razer's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

benmac31

i3razer's Issues

Unable to map keys with keyboard that suppors Razer Hypershift

After trying to do i3razer --map I can map most of the keys, except the two FN keys on my Razer Blade 15 (Mid 2019) Mercury White keyboard.

Here is the output from running i3razer --map:

]$ i3razer --map
The program will loop through each device and trough every key.
Please press the green lit key. If no Key is lit press 'escape'
The result can be inserted to to a copy of 'layout.py' which can replace the old file
Found 1 Razer devices
Next Keyboard: Razer Blade 15 (Mid 2019) Mercury White
(0, 0)
^[(0, 1)
^[(0, 2)
^[OP(0, 3)
^[OQ(0, 4)
^[OR(0, 5)
^[OS(0, 6)
^[[15~(0, 7)
^[[17~(0, 8)
^[[18~(0, 9)
^[[19~(0, 10)
^[[20~(0, 11)
(0, 12)
(0, 13)
^[[24~(0, 14)
^[[2~(0, 15)
^[[3~(1, 0)
^[(1, 1)
`(1, 2)
1(1, 3)
2(1, 4)
3(1, 5)
4(1, 6)
5(1, 7)
6(1, 8)
7(1, 9)
8(1, 10)
9(1, 11)
0(1, 12)
-(1, 13)
=(1, 14)
^[(1, 15)
(2, 0)
^[(2, 1)
	(2, 2)
q(2, 3)
w(2, 4)
e(2, 5)
r(2, 6)
t(2, 7)
y(2, 8)
u(2, 9)
i(2, 10)
o(2, 11)
p(2, 12)
[(2, 13)
](2, 14)
^[(2, 15)
\(3, 0)
^[(3, 1)
(3, 2)
A(3, 3)
S(3, 4)
D(3, 5)
F(3, 6)
G(3, 7)
H(3, 8)
J(3, 9)
K(3, 10)
L(3, 11)
;(3, 12)
'(3, 13)
^[(3, 14)
^[(3, 15)

(4, 0)
^[(4, 1)
(4, 2)
^[(4, 3)
Z(4, 4)
X(4, 5)
C(4, 6)
V(4, 7)
B(4, 8)
N(4, 9)
M(4, 10)
,(4, 11)
.(4, 12)
/(4, 13)
^[[A(4, 14)
^[(4, 15)
(5, 0)
(5, 1)
(5, 2)
^[(5, 3)
(5, 4)
^[(5, 5)
(5, 6)
^[(5, 7)
^[(5, 8)
^[(5, 9)
(5, 10)
^[(5, 11)
(5, 12)
^[[D(5, 13)
^[[B(5, 14)
^[[C(5, 15)
^[keyboard Razer Blade 15 (Mid 2019) Mercury White finished:
All keyboards are done
Layouts have been updated in 'layout.py'. Move the file to the correct position and consider opening a pull request on github
(6, 0)
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/site-packages/i3razer/pyxhook.py", line 92, in run
    self.record_dpy.record_enable_context(self.context, self._process_events)
  File "/home/eghere/.local/lib/python3.10/site-packages/Xlib/ext/record.py", line 239, in enable_context
    EnableContext(
  File "/home/eghere/.local/lib/python3.10/site-packages/Xlib/ext/record.py", line 220, in __init__
    rq.ReplyRequest.__init__(self, *args, **keys)
  File "/home/eghere/.local/lib/python3.10/site-packages/Xlib/protocol/rq.py", line 1369, in __init__
    self.reply()
  File "/home/eghere/.local/lib/python3.10/site-packages/Xlib/protocol/rq.py", line 1381, in reply
    self._display.send_and_recv(request = self._serial)
  File "/home/eghere/.local/lib/python3.10/site-packages/Xlib/protocol/display.py", line 613, in send_and_recv
    gotreq = self.parse_response(request)
  File "/home/eghere/.local/lib/python3.10/site-packages/Xlib/protocol/display.py", line 705, in parse_response
    gotreq = self.parse_request_response(request) or gotreq
  File "/home/eghere/.local/lib/python3.10/site-packages/Xlib/protocol/display.py", line 793, in parse_request_response
    req._parse_response(self.data_recv[:self.recv_packet_len])
  File "/home/eghere/.local/lib/python3.10/site-packages/Xlib/ext/record.py", line 224, in _parse_response
    self._callback(r)
  File "/usr/lib/python3.10/site-packages/i3razer/pyxhook.py", line 126, in _process_events
    self.KeyDown(hook_event)
  File "/usr/lib/python3.10/site-packages/i3razer/map_layout.py", line 116, in on_key_pressed
    self.next_key()
  File "/usr/lib/python3.10/site-packages/i3razer/map_layout.py", line 107, in next_key
    self.keyboard.fx.advanced.matrix[self.row, self.column] = self.green
  File "/usr/lib/python3.10/site-packages/openrazer/client/fx.py", line 1101, in __setitem__
    assert 0 <= key[0] < self._rows, "Row out of bounds"
AssertionError: Row out of bounds

Is there a way to manually map each key such as editing a config file? If so, where is this config file so I can manually edit it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.