geekhack

geekhack Community => Ergonomics => Topic started by: crm114 on Wed, 19 June 2013, 10:37:03

Title: Cusom keys for ergodox
Post by: crm114 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 (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?
Title: Re: Cusom keys for ergodox
Post by: sordna 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 ?
Title: Re: Cusom keys for ergodox
Post by: crm114 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]'.
Title: Re: Cusom keys for ergodox
Post by: crm114 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?
Title: Re: Cusom keys for ergodox
Post by: Jagriff 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?
Title: Re: Cusom keys for ergodox
Post by: crm114 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 (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 (http://www.win.tue.nl/%7Eaeb/linux/kbd/scancodes-14.html) and http://download.microsoft.com/download/1/6/1/161ba512-40e2-4cc9-843a-923143f3456c/translate.pdf (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.
Title: Re: Cusom keys for ergodox
Post by: longweight on Sat, 29 June 2013, 03:34:36
Are there any group buys on the horizon for Ergodox caps with legends?
Title: Re: Cusom keys for ergodox
Post by: Glod 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.
Title: Re: Cusom keys for ergodox
Post by: TD22057 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...
Title: Re: Cusom keys for ergodox
Post by: longweight 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?
Title: Re: Cusom keys for ergodox
Post by: Glod 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
Title: Re: Cusom keys for ergodox
Post by: longweight on Sat, 29 June 2013, 15:55:33
I wish that I had bought in to that :(