pez2001 / razer_chroma_drivers

A collection of Linux drivers for Razer Chroma devices, it supports all lighting modes and includes a daemon for advanced effects + gui configuration app
GNU General Public License v2.0
231 stars 30 forks source link

Added fr-latin9 layout #60

Closed terricain closed 8 years ago

terricain commented 8 years ago

Added automatic keyboard layout recognition. That function needs a fair bit of work, ideally needs to be done is a better cross platform way but for now it'll do.

Added the fr-latin9 layout to the keyboard.

terricain commented 8 years ago

@lah7 if you wouldn't mind testing. If you change your keyboard layout to "French (alternative Latin-9 only)" on ubuntu it should pick you the other keyboard layout.

terricain commented 8 years ago

I just used the keyboard icon in the notification area to switch keyboard layouts to test.

On Fri, Jan 15, 2016 at 11:16 PM, Luke Horwell notifications@github.com wrote:

Doesn't appear to launch after re-compiling, re-packaging, re-installing:

Successfully connected to dbus service. Traceback (most recent call last): File "/tmp/razer_drivers-testing/gui/chroma_controller/chroma_controller.py", line 573, in ChromaController() File "/tmp/razer_drivers-testing/gui/chroma_controller/chroma_controller.py", line 397, in init self.kb_layout = razer.keyboard.get_keyboard_layout() AttributeError: 'module' object has no attribute 'get_keyboard_layout'

I tried to compile in a i386 virtual machine (to avoid messing system settings), but discovered this project doesn't seem to compile.

— Reply to this email directly or view it on GitHub https://github.com/pez2001/razer_chroma_drivers/pull/60#issuecomment-172123726 .

lah7 commented 8 years ago

Cannot launch:

Successfully connected to dbus service. Traceback (most recent call last): File "/tmp/razer_drivers-testing/gui/chroma_controller/chroma_controller.py", line 573, in ChromaController() File "/tmp/razer_drivers-testing/gui/chroma_controller/chroma_controller.py", line 397, in init self.kb_layout = razer.keyboard.get_keyboard_layout() File "/usr/lib/python3/dist-packages/razer/keyboard.py", line 337, in get_keyboard_layout result = layout + '-' + variant TypeError: Can't convert 'NoneType' object to str implicitly

Also discovered this project doesn't compile in Ubuntu MATE 15.10 i386 (virtual machine). I'll be using a VM for changing keyboard layouts, to avoid messing with system settings unnecessarily.

terricain commented 8 years ago

What does setxkbmap -query output

lah7 commented 8 years ago

rules: evdev model: pc105 layout: gb options: terminate:ctrl_alt_bksp

terricain commented 8 years ago

Fixed in 3ce7ebd