Added keymap hook

This commit is contained in:
Your Name
2020-08-31 16:46:35 +02:00
parent d763f6ff37
commit 3f556526dd
3 changed files with 34 additions and 0 deletions

13
hooks/keymap/keymap Normal file
View File

@@ -0,0 +1,13 @@
# vim: set ft=sh:
# shellcheck shell=sh
#
# false positive
# shellcheck disable=2154
#
# handle_keymap()
{
print "configuring keymap"
copy_file "$keymap_path" "${keymap_path%/*}" 644 0
copy_binary loadkmap
}

12
hooks/keymap/keymap.init Normal file
View File

@@ -0,0 +1,12 @@
# vim: set ft=sh:
# shellcheck shell=sh
#
# false positive
# shellcheck disable=2154
#
# run_keymap()
{
[ "$break" = keymap ] && { print "break before run_keymap()"; sh; }
loadkmap < "$keymap_path"
}