Added keyboard mapping tweaks, and pacman hook to update the hwdb on upgrade

This commit is contained in:
David Thurstenson 2019-05-21 22:25:51 -05:00
parent fc60780f46
commit 9018f5d22f
3 changed files with 22 additions and 2 deletions

View File

@ -0,0 +1,3 @@
evdev:input:b0003v258Ap1006*
KEYBOARD_KEY_70065=rightmeta
KEYBOARD_KEY_70039=esc

View File

@ -23,12 +23,18 @@ provides=()
conflicts=()
replaces=()
backup=()
source=('mirrorupgrade.hook')
md5sums=('7d00b26f9bc60d0985ffa6bc8bd4da80')
source=('mirrorupgrade.hook'
'61-tl-keyboard.hwdb'
'tl-keyboard.hook')
md5sums=('7d00b26f9bc60d0985ffa6bc8bd4da80'
'564cafe47884aac23360017d54c60512'
'aa5d2d2a9f863164a3b529bd6329bf49')
package() {
# Whenever pacman-mirrorlist is updated,
# replace the mirrorlist with the result from
# reflector, and cleans up the lingering .pacnew
install -D -o root -m 644 mirrorupgrade.hook ${pkgdiir}/etc/pacman.d/hooks/mirrorupgrade.hook
install -D -o root -m 644 tl-keyboard.hook ${pkgdiir}/etc/pacman.d/hooks/tl-keyboard.hook
install -D -o root -m 644 61-tl-keyboard.hwdb ${pkgdiir}/etc/udev/hwdb.d/61-tl-keyboard.hwdb
}

View File

@ -0,0 +1,11 @@
[Trigger]
Operation = Install
Operation = Upgrade
Type = File
Target = /etc/udev/hwdb.d/61-tl-keyboard.hwdb
[Action]
Description = Updating hwdb after tlconfig-env updated keyboard config...
When = PostTransaction
Depends = reflector
Exec = /usr/bin/env sh -c "systemd-hwdb update && udevadm trigger"