mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
gnu: Add qmk-firmware-ergodox-ez-hacker-dvorak.
* gnu/packages/firmware.scm (qmk-firmware-ergodox-ez-hacker-dvorak): New variable. * gnu/packages/patches/qmk-firmware-fix-hacker-dvorak.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it.
This commit is contained in:
parent
8dd6c2dee8
commit
75cb7e1866
3 changed files with 40 additions and 1 deletions
|
@ -1903,6 +1903,7 @@ dist_patch_DATA = \
|
|||
%D%/packages/patches/quagga-reproducible-build.patch \
|
||||
%D%/packages/patches/quickswitch-fix-dmenu-check.patch \
|
||||
%D%/packages/patches/quilt-grep-compat.patch \
|
||||
%D%/packages/patches/qmk-firmware-fix-hacker-dvorak.patch \
|
||||
%D%/packages/patches/qtwayland-dont-recreate-callbacks.patch \
|
||||
%D%/packages/patches/qtwayland-cleanup-callbacks.patch \
|
||||
%D%/packages/patches/ragel-char-signedness.patch \
|
||||
|
|
|
@ -1340,7 +1340,9 @@ (define* (make-qmk-firmware/implementation keyboard keymap
|
|||
(file-name (git-file-name "qmk-firmware" version))
|
||||
(sha256
|
||||
(base32
|
||||
"0s1lcnv7cddpn768p7mrc5bkxhx0ba5p77ya007dnkbk36c33d0w"))))
|
||||
"0s1lcnv7cddpn768p7mrc5bkxhx0ba5p77ya007dnkbk36c33d0w"))
|
||||
(patches
|
||||
(search-patches "qmk-firmware-fix-hacker-dvorak.patch"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
(list
|
||||
|
@ -1448,6 +1450,27 @@ (define-public qmk-firmware-ergodox-ez-dvorak-42-key
|
|||
See the @file{keyboards/atreus/keymaps/dvorak_42_key/keymap.c} source file for
|
||||
the keymap definition."))
|
||||
|
||||
(define-public qmk-firmware-ergodox-ez-hacker-dvorak
|
||||
(make-qmk-firmware "ergodox_ez" "hacker_dvorak" #:description "\
|
||||
This is a Dvorak layout for the ErgoDox EZ. It is inspired by the
|
||||
@url{https://www.kaufmann.no/roland/dvorak, Programmer Dvorak}. The operating
|
||||
system keyboard layout should be set to US for this keymap to function
|
||||
normally. It defines 10 layers:
|
||||
@enumerate
|
||||
@item Dvorak
|
||||
@item Querty
|
||||
@item Gaming
|
||||
@item Arrows
|
||||
@item Mouse
|
||||
@item Numpad
|
||||
@item Hyper Fn
|
||||
@item Media Fn
|
||||
@item Meh Fn
|
||||
@item Meh Fn +
|
||||
@end enumerate
|
||||
The complete keymap can be inspected at the ErgoDox EZ Configurator web site:
|
||||
@url{https://configure.ergodox-ez.com/ergodox-ez/layouts/Wadz/latest/0}."))
|
||||
|
||||
(define-public qmk-udev-rules
|
||||
(package
|
||||
(inherit qmk-firmware-ergodox-ez-default)
|
||||
|
|
15
gnu/packages/patches/qmk-firmware-fix-hacker-dvorak.patch
Normal file
15
gnu/packages/patches/qmk-firmware-fix-hacker-dvorak.patch
Normal file
|
@ -0,0 +1,15 @@
|
|||
Submitted upstream: https://github.com/qmk/qmk_firmware/pull/22102
|
||||
|
||||
diff --git a/keyboards/ergodox_ez/keymaps/hacker_dvorak/user/layer_set_state_user.c b/keyboards/ergodox_ez/keymaps/hacker_dvorak/user/layer_set_state_user.c
|
||||
index bd4fd10ad1..5ce5f5298f 100644
|
||||
--- a/keyboards/ergodox_ez/keymaps/hacker_dvorak/user/layer_set_state_user.c
|
||||
+++ b/keyboards/ergodox_ez/keymaps/hacker_dvorak/user/layer_set_state_user.c
|
||||
@@ -4,7 +4,7 @@ layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
|
||||
switch (layer) {
|
||||
case DVORAK:
|
||||
- rgblight_sethsv_noeeprom(GREEN);
|
||||
+ rgblight_sethsv_noeeprom(HSV_GREEN);
|
||||
rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT);
|
||||
|
||||
if (PLOVER_MODE) {
|
Loading…
Reference in a new issue