Skip to content

Commit 9fe0ea4

Browse files
keymaps (#276)
1 parent 401822c commit 9fe0ea4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+20
-20
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
all:
2-
@find layouts -type f \( -name '*.toml' -o -name '*.yaml' \) | while read -r file; do \
2+
@find keymaps -type f \( -name '*.toml' -o -name '*.yaml' \) | while read -r file; do \
33
kalamine build "$$file" --out "$$(echo $$file | sed 's/....$$/json/')"; \
44
done
55

66
watch:
7-
@inotifywait -m -r layouts -e close_write | while read -r path _action file; do \
7+
@inotifywait -m -r keymaps -e close_write | while read -r path _action file; do \
88
case $$file in \
99
*.yaml | *.toml) echo kalamine build "$$path$$file" --out "$$path$$(basename "$${file%.*}").json";; \
1010
esac \
@@ -21,7 +21,7 @@ clean:
2121
install:
2222
@echo "Installer script for XKB (GNU/Linux)."
2323
@echo
24-
xkalamine install layouts/ergol.toml
24+
xkalamine install keymaps/ergol.toml
2525

2626
uninstall:
2727
@echo "Unistaller script for XKB (GNU/Linux)."

README.md

Lines changed: 4 additions & 4 deletions

code/duck-typist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ window.addEventListener('DOMContentLoaded', () => {
9797
// fetch a kalamine keyboard layout
9898
const fetchLayout = () => {
9999
const selected = gLayout.querySelector(`option[value="${gLayout.value}"`);
100-
return fetch(`../layouts/${selected.dataset.folder}/${gLayout.value}.json`)
100+
return fetch(`../keymaps/${selected.dataset.folder}/${gLayout.value}.json`)
101101
.then(response => response.json())
102102
.then(layout => {
103103
gKeyboard.setKeyboardLayout(layout.keymap, layout.deadkeys, gGeometry.value);

code/layout-analyzer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ window.addEventListener('DOMContentLoaded', () => {
550550
if (value) {
551551
const layoutFolder = document
552552
.querySelector(`#layout option[value="${value}"]`).dataset.folder;
553-
fetch(`../layouts/${layoutFolder}/${value}.json`)
553+
fetch(`../keymaps/${layoutFolder}/${value}.json`)
554554
.then(response => response.json())
555555
.then(data => {
556556
const selectedOption = document
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)