Skip to content

Commit a2f3715

Browse files
committed
feat: keyboard selection and configuration
1 parent f0ab2f7 commit a2f3715

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

‎system/cuos/dialog-keyboard.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ choose_keyboard() {
3030
if [[ -n "${TEST:-}" ]]; then return; fi
3131

3232
jq_replace \
33-
--argjson layout "${layout}" \
33+
--arg layout "${layout}" \
3434
'.keyboard_layout = $layout' \
3535
"${CONFIG_PATH}" || return 1
3636

37-
"${SCRIPT_DIR}/init.sh" configure_keyboard
37+
"${SCRIPT_DIR}/init.sh" --reinit configure_keyboard
3838
}
3939

‎system/cuos/init.sh‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -315,11 +315,6 @@ configure_keyboard() {
315315
fi
316316
local keyboard_config_file="/etc/default/keyboard"
317317

318-
# if keyboard_config exists and is older than config file
319-
if [[ "${keyboard_config_file}" -ot "${CONFIG_PATH}" ]]; then
320-
return
321-
fi
322-
323318
local model
324319
model=$(jq_config -r '.keyboard_model // "pc105"')
325320
local layout

0 commit comments

Comments
 (0)