aboutsummaryrefslogtreecommitdiff
path: root/keyboards/signum/3_0/elitec
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/signum/3_0/elitec')
-rwxr-xr-xkeyboards/signum/3_0/elitec/keymaps/default/generate_km.py3
-rw-r--r--keyboards/signum/3_0/elitec/keymaps/default/layout.py6
-rw-r--r--keyboards/signum/3_0/elitec/keymaps/default/readme.md4
3 files changed, 3 insertions, 10 deletions
diff --git a/keyboards/signum/3_0/elitec/keymaps/default/generate_km.py b/keyboards/signum/3_0/elitec/keymaps/default/generate_km.py
index 7778da8f5..05996d06c 100755
--- a/keyboards/signum/3_0/elitec/keymaps/default/generate_km.py
+++ b/keyboards/signum/3_0/elitec/keymaps/default/generate_km.py
@@ -1,7 +1,6 @@
1#!/usr/bin/env python3 1#!/usr/bin/env python3
2# -*- coding: utf-8 -*- 2# -*- coding: utf-8 -*-
3 3
4from sortedcontainers import SortedDict
5import layout 4import layout
6import re 5import re
7 6
@@ -11,7 +10,7 @@ import re
11 10
12def gen_uc_iter(): 11def gen_uc_iter():
13 length = len(layout.uc_dict) 12 length = len(layout.uc_dict)
14 for key, value in layout.uc_dict.items(): 13 for key, value in sorted(layout.uc_dict.items()):
15 length -= 1 14 length -= 1
16 if length: 15 if length:
17 yield (key, value, False) 16 yield (key, value, False)
diff --git a/keyboards/signum/3_0/elitec/keymaps/default/layout.py b/keyboards/signum/3_0/elitec/keymaps/default/layout.py
index bc744593b..5a796c862 100644
--- a/keyboards/signum/3_0/elitec/keymaps/default/layout.py
+++ b/keyboards/signum/3_0/elitec/keymaps/default/layout.py
@@ -1,11 +1,9 @@
1from sortedcontainers import SortedDict
2
3# Add all used Unicode symbols to this list. 1# Add all used Unicode symbols to this list.
4# The key (e.g. "SNEK") is used in keymap.c for "enum", "unicode_map" and "keymaps", so it needs to be a valid C variable name. 2# The key (e.g. "SNEK") is used in keymap.c for "enum", "unicode_map" and "keymaps", so it needs to be a valid C variable name.
5# The key is also used in this file to define the layout, so use recognizeable names. 3# The key is also used in this file to define the layout, so use recognizeable names.
6# The value (e.g. "0x1f40d") is used in keymap.c for "unicode_map" and to automatically generate the "ASCII"-art comments. 4# The value (e.g. "0x1f40d") is used in keymap.c for "unicode_map" and to automatically generate the "ASCII"-art comments.
7# When adding new Unicode names, use "0x1f40d" until you looked up the correct Unicode code point. 5# When adding new Unicode names, use "0x1f40d" until you looked up the correct Unicode code point.
8uc_dict = SortedDict({ 6uc_dict = {
9 "SNEK": "0x1f40d", ## Error 7 "SNEK": "0x1f40d", ## Error
10 ## qwertz 8 ## qwertz
11 "ACUTE": "0x00b4", 9 "ACUTE": "0x00b4",
@@ -329,7 +327,7 @@ uc_dict = SortedDict({
329 "NOT_PARA": "0x2226", 327 "NOT_PARA": "0x2226",
330 "TIMES_OP": "0x2297", 328 "TIMES_OP": "0x2297",
331 "NOT_DIV": "0x2224" 329 "NOT_DIV": "0x2224"
332}) 330}
333 331
334# Add all used Keycodes to this list. 332# Add all used Keycodes to this list.
335# The key (e.g. "a") is used in keymap.c to automatically generate the comments. The first 7 chars will show as a keycap legend. 333# The key (e.g. "a") is used in keymap.c to automatically generate the comments. The first 7 chars will show as a keycap legend.
diff --git a/keyboards/signum/3_0/elitec/keymaps/default/readme.md b/keyboards/signum/3_0/elitec/keymaps/default/readme.md
index efd43a9bf..54db18cd3 100644
--- a/keyboards/signum/3_0/elitec/keymaps/default/readme.md
+++ b/keyboards/signum/3_0/elitec/keymaps/default/readme.md
@@ -11,10 +11,6 @@ starting point to create your own layouts for the Signum 3.0 with
11 11
12# Customization 12# Customization
13 13
14- Install `python3` and [Sorted Containers
15 Library](http://www.grantjenks.com/docs/sortedcontainers/), `pip
16 install sortedcontainers`.
17
18- Customize `layout.py` to your liking. 14- Customize `layout.py` to your liking.
19 - Attention 1: keycodes are either translated into symbols and 15 - Attention 1: keycodes are either translated into symbols and
20 function calls via the `translate()` function in `generate_km.py` 16 function calls via the `translate()` function in `generate_km.py`