Comments (19)
I managed to run it on Arch linux:
-
Install
mono
package -
run
xbuild GK6X.sln
There is warnings:
>>>> xbuild tool is deprecated and will be removed in future updates, use msbuild instead <<<<
GK6X.sln: warning : Don't know how to handle GlobalSection ExtensibilityGlobals, Ignoring.
- run program
cd Build
sudo mono GK6X.exe
I run it from the Build
directory because it expects Data/i18n/langs
direcroty in the current path and raise the exception if it is not there:
Unhandled Exception:
System.IO.DirectoryNotFoundException: Could not find a part of the path '.../Data/i18n/langs'.
from gk6x.
I don't think I added support for mapping special character codes ~<>?:"|{}±!_(
etc to their key counterparts. Instead you'll have to find the textual name for that key, the list of keys are defined here
Line 269 in a236079
Backslash
value? So maybe test doing Backslash:A
to first change it to the A
key, then find out how to redirect it to what you want it to be by playing around with the values. Note that doing Backslash:Backslash
wouldn't do anything as you need to map a key from a value to a different value, using the same value as itself is the same as no change.
Also I think [Lighting(xxxxxx)]
clears out the current target layer type which might mess things up. [Base,Layer1,Layer2,Layer3,FnLayer1,FnLayer2,FnLayer3]
is used to set up key mappings which should follow in the lines below.
from gk6x.
The README has been updated to clarify how to compile / run on Linux / Mac.
from gk6x.
After revisiting this project I get a lot of build errors on Ubuntu 18.04 with the mono-complete package. Lots of errors relating to missing definition of basic types like System.Object and System.Int32 etc.
To overcome those errors I use the following command:
xbuild /p:TargetFrameworkVersion=v4.5 /p:TargetFrameworkProfile="" GK6X.sln
Hope this is useful to someone.
from gk6x.
Thanks for documenting your findings for getting it to build on Linux. The latest versions of mono should include msbuild
so you should be able to use that rather than the deprecated xbuild
.
And yes the working directory should be in the Build
directory as the code loads files relative to the current working directory rather than relative to where the exe is. It wouldn't be too hard to make the paths relative to the exe location but for now I'll leave it as it is.
from gk6x.
If I am not mistaken, current arch mono
package (6.0.0.334-1) doesn't contain msbuild
.
Thanks for your reply. I think it would be nice to add these instructions into documentation page. I could make the PR if you prefere. Should I?
from gk6x.
Thank you so much! The instructions on this bug were VERY helpful, and now I have a useful keyboard! This is MUCH nicer than the original software and I don't have to boot a VM to use it.
Thank you all so much!
from gk6x.
Really great software! I have one quick question.
My GK64 came with |
mapped to #
and it's very annoying. Based on the sample config I'm trying to remap it using the following but it doesn't seem to work. Any advice?
[Base,Layer1,Layer2,Layer3,FnLayer1,FnLayer2,FnLayer3]
[Lighting(White light respiration,Base)]
[Lighting(Windmill,Base)]
[Lighting(Red light respiration,Base)]
[Lighting(Starlish,Base)]
Pause:Delete
|:|
from gk6x.
Brilliant @pixeltris thanks for the response.
Also I think [Lighting(xxxxxx)] clears out the current target layer type which might mess things up.
Turns out that the ordering of that config did mess things up. I can confirm that Backslash:A works as expected now that I've removed those Lighting lines.
As for the keycode for I've settled with Backslash:AltBackslash, which is good enough for now. Many thanks for the pro tips.
from gk6x.
Cross-reference #3
from gk6x.
Hello guys,
Newbie to Linux here, wanted to use my keyboard on Ubuntu 18.04 LTS Bionic Beaver.
After following the above steps i got the two following errors
Unhandled Exception:
HidSharp.Exceptions.DeviceUnauthorizedAccessException: Not permitted to open HID class device at /dev/hidraw1.
at HidSharp.Platform.Linux.LinuxHidStream.DeviceHandleFromPath (System.String path, HidSharp.HidDevice hidDevice, HidSharp.Platform.Linux.NativeMethods+oflag oflag) [0x000bb] in :0
at HidSharp.Platform.Linux.LinuxHidDevice.TryParseReportDescriptor (HidSharp.Reports.ReportDescriptor& parser, System.Byte[]& reportDescriptor) [0x0000f] in :0
at HidSharp.Platform.Linux.LinuxHidDevice.RequiresGetInfo () [0x00017] in :0
at HidSharp.Platform.Linux.LinuxHidDevice.GetMaxInputReportLength () [0x00000] in :0
at GK6X.KeyboardDeviceManager.RefreshConnectedDevices () [0x0005d] in <166f4681c3854609829b276666821d7f>:0
at GK6X.KeyboardDeviceManager.StartListener () [0x00020] in <166f4681c3854609829b276666821d7f>:0
at GK6X.Program.Main (System.String[] args) [0x000cd] in <166f4681c3854609829b276666821d7f>:0
[ERROR] FATAL UNHANDLED EXCEPTION: HidSharp.Exceptions.DeviceUnauthorizedAccessException: Not permitted to open HID class device at /dev/hidraw1.
at HidSharp.Platform.Linux.LinuxHidStream.DeviceHandleFromPath (System.String path, HidSharp.HidDevice hidDevice, HidSharp.Platform.Linux.NativeMethods+oflag oflag) [0x000bb] in :0
at HidSharp.Platform.Linux.LinuxHidDevice.TryParseReportDescriptor (HidSharp.Reports.ReportDescriptor& parser, System.Byte[]& reportDescriptor) [0x0000f] in :0
at HidSharp.Platform.Linux.LinuxHidDevice.RequiresGetInfo () [0x00017] in :0
at HidSharp.Platform.Linux.LinuxHidDevice.GetMaxInputReportLength () [0x00000] in :0
at GK6X.KeyboardDeviceManager.RefreshConnectedDevices () [0x0005d] in <166f4681c3854609829b276666821d7f>:0
at GK6X.KeyboardDeviceManager.StartListener () [0x00020] in <166f4681c3854609829b276666821d7f>:0
at GK6X.Program.Main (System.String[] args) [0x000cd] in <166f4681c3854609829b276666821d7f>:0
Help would be appreciated.
from gk6x.
@Fletchersan Use sudo
from gk6x.
Thanks a lot @everyone! 😅
from gk6x.
Hi guys,
I'm a macOS user and I am having issues remapping my LAlt and LWin keys to be better suited to macOS
This is what I'm doing.
[Base,Layer1,Layer2,Layer3,FnLayer1,FnLayer2,FnLayer3]
Left GUI:LAlt
Left Alt:LWin
any help would be appreciated.
from gk6x.
hey my keyword dosn't give any input but it lights up but some times it works.
from gk6x.
can i make keyboard lights white
from gk6x.
Hi, i faced with some problems with your software, when i open gui in browser, i've this blurry line in bottom half of screen and i cant hit any button, is it some bug?
from gk6x.
@tinydumb that's the same problem as in #181 resize your browser to fix it.
from gk6x.
@pixeltris thanks a lot, u're saved my ass, because my drivers get broke, have a good day!
from gk6x.
Related Issues (20)
- Issues on GK61 + Ubuntu HOT 2
- How do I use the GKPlus driver to update? HOT 3
- Mapping keys - combine 2 keys to show one HOT 1
- GUI not accessible on Linux, exits silently HOT 2
- Not able to set custom lighting on layers 1-3 HOT 1
- can you show me how to install in ubuntu?
- This doesn't work on my sk61, Linux mint
- doesn't detect my keyboard
- Doesnt work on AK84S HOT 2
- Remap Tilda (~) and Backtick (`)
- Add Support for HK Mizar MZ60?
- Any plans to update the Updating.txt?
- Can someone maintain AUR package? HOT 1
- This is a command-line tool for mapping keys, macros, and lighting for GK6X keyboards (GK64, GK84, GK61, etc). This can be used as an alternative to the official software (Windows / Mac).
- Light Effect settings grayed out in gui (SK61 RGB)
- Tap-hold option for keys
- Keep seeing "not support device"
- [GK96 Lite Gasket] Handshake fail HOT 2
- GK75 compatibility
- GK68XS HOT 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 gk6x.