Author Topic: Cusom keys for ergodox  (Read 2747 times)

0 Members and 1 Guest are viewing this topic.

Offline crm114

  • Thread Starter
  • Posts: 11
Cusom keys for ergodox
« on: Wed, 19 June 2013, 10:37:03 »
Long time lurker, first time poster.

I've joined the 3rd round of the ergodox massdrop sale. And have been excitedly working on a custom keyboard layout since then with their tool.

I'm pretty happy with my layout, but the keyboard of my dreams has several non-standard keys. For example I would like a [ " / ' ] (as opposed to the normal [ ' / " ] key because I use double quote much more frequently than single quote). Unfortunately the web tool doesn't have the ability to create custom keys. Likewise, I would like a Euro key (in addition to the dollar key, so I can't use [CurUnit]).

My layout: https://www.massdrop.com/ext/ergodox/?referer=4D9CUN&hash=a8f7ce64e4ca584b2a60f7363f043c34

For reference:
I plan to bind the high-value f keys (f13-f24) to:
  f13 moveWindowToScreen1
  f14 quickLeft
  f15 moveWindowToScreen2

  f16 quickTopRight
  f17 quickRight
  f18 quickBotRight

  I have a dual head rig, moveWindowToScreen* is exactly what is says on the tin. Quick Left/Right puts the window at 50% width on the right or left of the screen. QuickTopRight/BotRight is the same idea, but also 50% height in the corner.

  f21 prev
  f22 back10
  f23 play/pause
  f24 next

  This leaves f19 & f20 free. Any suggestions?
« Last Edit: Wed, 19 June 2013, 10:43:08 by crm114 »

Offline sordna

  • Posts: 2245
Re: Cusom keys for ergodox
« Reply #1 on: Sun, 23 June 2013, 01:45:30 »
What operating system are you using, and what's the software that does stuff like "moveWindowToScreen1", "quickLeft", etc ?
Kinesis Contoured Advantage & Advantage2 LF with Cherry MX Red switches / Extra keys mod / O-ring dampening mod / Dvorak layout. ErgoDox with buzzer and LED mod.
Also: Kinesis Advantage Classic, Kinesis Advantage2, Data911 TG3, Fingerworks Touchstream LP, IBM SSK (Buckling spring), Goldtouch GTU-0077 keyboard

Offline crm114

  • Thread Starter
  • Posts: 11
Re: Cusom keys for ergodox
« Reply #2 on: Mon, 24 June 2013, 07:53:33 »
I run kubuntu. The software is baked into KDE. The hotkeys are configured in

settings > shortcuts and gestures > global keyboard shortcuts > kde component: kwin

The action is called 'quick tile window to the [location]'.

Offline crm114

  • Thread Starter
  • Posts: 11
Re: Cusom keys for ergodox
« Reply #3 on: Mon, 24 June 2013, 10:33:28 »
Derp! I guess I never explicitly asked in my first post. Does anyone know how I might create these custom keys?

Browsing the source files you can download it seems like the file in question can be found at 'keyboard > ergodox > default--layout.c'. Some changes seem pretty intuitive KEY_SingleQuote_DoubleQuote > KEY_DoubleQuote_SingleQuote. Does anyone know if that will work?
« Last Edit: Mon, 24 June 2013, 10:52:07 by crm114 »

Offline Jagriff

  • Posts: 151
Re: Cusom keys for ergodox
« Reply #4 on: Mon, 24 June 2013, 11:07:13 »
It is unlikely that it will work since KEY_SingleQuote_DoubleQuote is a macro previously defined and KEY_DoubleQuote_SingleQuote is likely undefined. Have you tried compiling?

Offline crm114

  • Thread Starter
  • Posts: 11
Re: Cusom keys for ergodox
« Reply #5 on: Tue, 25 June 2013, 15:04:23 »
UPDATE: I x-posted this to the massdrop forum and Tad explained the limitation:

Quote
I dug through the ergodox source on github. 
https://github.com/benblazak/ergodox-firmware/blob/master/src/lib/usb/usage-page/keyboard.h defines the keycodes that you are allowed to use, but KEY_DoubleQuote_SingleQuote does not exist. 
http://www.win.tue.nl/~aeb/linux/kbd/scancodes-14.html and http://download.microsoft.com/download/1/6/1/161ba512-40e2-4cc9-843a-923143f3456c/translate.pdf list USB scancodes.  None of them have DoubleQuote_SingleQuote.  It should be possible to remap it through os level software, but I don't think it is as straight forward as you suggest.

Offline longweight

  • philanthropist
  • Posts: 1494
Re: Cusom keys for ergodox
« Reply #6 on: Sat, 29 June 2013, 03:34:36 »
Are there any group buys on the horizon for Ergodox caps with legends?

Offline Glod

  • * Elevated Elder
  • Posts: 1989
  • Location: Virginia, USA
    • YouTube Channel
Re: Cusom keys for ergodox
« Reply #7 on: Sat, 29 June 2013, 04:59:55 »
Are there any group buys on the horizon for Ergodox caps with legends?

DSA retro was pretty much the only one with 1x and 1.5x modifiers as well as blanks and relengendables. that pretty much took care of any ergodox if you got the 1x and 1.5x sets. but that's over with and i think the consensus is that there wont be a group buy with that many options for a long time.

Because there are so few people right now that would participate, a ErgoDox-specific GB, for keys with legends, especially DCS profile (which is prefered) would probably be terribly expensive.

Offline TD22057

  • Posts: 172
  • Location: Southern California
Re: Cusom keys for ergodox
« Reply #8 on: Sat, 29 June 2013, 14:44:10 »
Are there any group buys on the horizon for Ergodox caps with legends?

DSA retro was pretty much the only one with 1x and 1.5x modifiers as well as blanks and relengendables. that pretty much took care of any ergodox if you got the 1x and 1.5x sets. but that's over with and i think the consensus is that there wont be a group buy with that many options for a long time.

Because there are so few people right now that would participate, a ErgoDox-specific GB, for keys with legends, especially DCS profile (which is prefered) would probably be terribly expensive.

Actually - there are two interest checks for DSA keys w/ the retro kit options right now:

http://geekhack.org/index.php?topic=42690.0
http://geekhack.org/index.php?topic=43856.0

I think the 2-tone has enough interest for a GB now but is really needing someone to step up and run it.  If you want DSA and the retro kit options, you should express that interest in those threads...

Offline longweight

  • philanthropist
  • Posts: 1494
Re: Cusom keys for ergodox
« Reply #9 on: Sat, 29 June 2013, 14:51:12 »
Thanks guys! Interest expressed!


So I don't really have many options at the moment for different caps?

Offline Glod

  • * Elevated Elder
  • Posts: 1989
  • Location: Virginia, USA
    • YouTube Channel
Re: Cusom keys for ergodox
« Reply #10 on: Sat, 29 June 2013, 15:36:33 »
Are there any group buys on the horizon for Ergodox caps with legends?

DSA retro was pretty much the only one with 1x and 1.5x modifiers as well as blanks and relengendables. that pretty much took care of any ergodox if you got the 1x and 1.5x sets. but that's over with and i think the consensus is that there wont be a group buy with that many options for a long time.

Because there are so few people right now that would participate, a ErgoDox-specific GB, for keys with legends, especially DCS profile (which is prefered) would probably be terribly expensive.

Actually - there are two interest checks for DSA keys w/ the retro kit options right now:

http://geekhack.org/index.php?topic=42690.0
http://geekhack.org/index.php?topic=43856.0

I think the 2-tone has enough interest for a GB now but is really needing someone to step up and run it.  If you want DSA and the retro kit options, you should express that interest in those threads...

my point was that retro was the only GB with a range of 1x mods, 1.5x mods, blanks, and relengendables. And all of these are DSA

Offline longweight

  • philanthropist
  • Posts: 1494
Re: Cusom keys for ergodox
« Reply #11 on: Sat, 29 June 2013, 15:55:33 »
I wish that I had bought in to that :(