Skip to content

Commit

Permalink
remove keylayout_list.sh, always generates all layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpoelen committed Dec 16, 2024
1 parent 9759f8f commit 40ac32c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 109 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,8 @@ npm i
./tools/gen_reversed_keylayout.sh
```

or

```sh
./tools/gen_reversed_keylayout.sh --all
```

Readable version with

```sh
DEBUG=1 ./tools/gen_reversed_keylayout.sh --all
DEBUG=1 ./tools/gen_reversed_keylayout.sh
```
12 changes: 4 additions & 8 deletions tools/gen_reversed_keylayout.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

# uncompress: tar --zstd -xf kbdlayout.info.zst
# uncompress: tar --zstd -xf kbdlayout.info.tar.zst

set -e

Expand All @@ -15,16 +15,12 @@ if [[ -z "$KBDLAYOUT_PATH" ]]; then
fi

case "$1" in
--all|all)
genfile "${KBDLAYOUT_PATH}"/* ;;

--regular|'')
source "$d"/keylayout_list.sh
genfile "${KBDLAYOUT_LAYOUTS[@]}" ;;
--all|all|'')
genfile "${KBDLAYOUT_PATH}"/*.xml ;;

--help|help)
echo "usage:
$0 [--all|all|--regular|regular]
$0 [--all|all]
$0 files..." ;;

*) genfile "$@"
Expand Down
2 changes: 1 addition & 1 deletion tools/kbd_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class DeadKey(NamedTuple):
with_: str
text: str
codepoint: int
deadkeys: DeadKeysType
deadkeys: DeadKeysType | None


class Key(NamedTuple):
Expand Down
Binary file added tools/kbdlayout.info.tar.zst
Binary file not shown.
Binary file removed tools/kbdlayout.info.zst
Binary file not shown.
93 changes: 0 additions & 93 deletions tools/keylayout_list.sh

This file was deleted.

0 comments on commit 40ac32c

Please sign in to comment.