Comments (2)
Additionally, trying to load a config file has a similar output of errors:
~]$ i3razer -c ~/Documents/Misc/config.yaml
Traceback (most recent call last):
File "/usr/bin/i3razer", line 8, in <module>
sys.exit(main())
File "/usr/lib/python3.10/site-packages/i3razer/__init__.py", line 62, in main
i3razer.start()
File "/usr/lib/python3.10/site-packages/i3razer/i3_razer.py", line 309, in start
self._update_color_scheme()
File "/usr/lib/python3.10/site-packages/i3razer/i3_razer.py", line 68, in _update_color_scheme
self._draw_color_scheme(scheme)
File "/usr/lib/python3.10/site-packages/i3razer/i3_razer.py", line 79, in _draw_color_scheme
self._draw_static_scheme(color_config)
File "/usr/lib/python3.10/site-packages/i3razer/i3_razer.py", line 196, in _draw_static_scheme
self._add_to_static_scheme(color_config)
File "/usr/lib/python3.10/site-packages/i3razer/i3_razer.py", line 236, in _add_to_static_scheme
self._set_color(color, keys)
File "/usr/lib/python3.10/site-packages/i3razer/i3_razer.py", line 243, in _set_color
self._keyboard.fx.advanced.matrix[self._key_layout[key]] = color
File "/usr/lib/python3.10/site-packages/openrazer/client/fx.py", line 1102, in __setitem__
assert 0 <= key[1] < self._cols, "Column out of bounds"
from i3razer.
Thanks for pointing out the issue with map_layout. It is not a problem with your keyboard but a problem in the code. I fixed it in the new release v0.2. Actually in the old version the file layout.py
was still created and then the exception was thrown. I also noticed, the original layout.py
, which keeps the keymap, was missing in this repo but was available with pip. This file is now also present.
Once you created your version of the layout you need to copy it to the install directory (either ~/.local/... or /usr/ ... lib/python3.x/site-packages/i3razer) and replace the current file. Unfortunately any update or re installation of the package will overwrite your file, but I have no current plan to load the layout in another way. Maybe you have an idea how to solve this problem.
I think your second issue with the config fails resolves, if you use your updated layout. I did not consider the usage of smaller keyboards than mine. Maybe I should add a check such that invalid keys would not break the program.
As far as I checked the fn
key can't be mapped automatically, because it implemented in the hardware and does not send any information to the computer. But its color can be set. So it is needed to manually add the the fn key to the layout.
I hope this solves your problem and you can use my tool for your keyboard.
from i3razer.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from i3razer.