add 'keyboard' pkg

This commit is contained in:
Daniel Langbein 2021-04-20 11:48:53 +02:00
parent b0aa053879
commit 32c8986f86
6 changed files with 46 additions and 3 deletions

View File

@ -0,0 +1,9 @@
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
# German and Norwegian
Option "XkbLayout" "de,no"
Option "XkbVariant" "nodeadkeys"
# toggle between layouts with: ALT + CAPS-LOCK
Option "XkbOptions" "grp:alt_caps_toggle"
EndSection

View File

@ -0,0 +1,31 @@
# Maintainer: Daniel Langbein <daniel@systemli.org>
_pkgname=keyboard
_reponame=arch-pkg
pkgname="de-p1st-$_pkgname"
pkgver=0.0.1
pkgrel=1
pkgdesc="vconsole (virtual console) and xorg (X11) keyboard configuration"
arch=('any')
url="https://git.privacy1st.de/langfingaz/${_reponame}"
license=('MIT')
groups=()
depends=()
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+${url}.git")
noextract=()
sha256sums=('SKIP')
package() {
cd "${_reponame}/pkg/${pkgname}"
install -Dm0644 vconsole.conf "$pkgdir"/etc/vconsole.conf
install -Dm0644 00-keyboard.conf "$pkgdir"/etc/X11/xorg.conf.d/00-keyboard.conf
}

View File

@ -0,0 +1,2 @@
# man 5 vconsole.conf
KEYMAP=de-latin1-nodeadkeys

View File

@ -0,0 +1,3 @@
# https://wiki.archlinux.org/index.php/Systemd/Journal#Journal_size_limit
[Journal]
SystemMaxUse=128M

View File

@ -1,2 +0,0 @@
[Journal]
SystemMaxUse=128M

View File

@ -26,5 +26,5 @@ sha256sums=('SKIP')
package() { package() {
cd "${_reponame}/pkg/${pkgname}" cd "${_reponame}/pkg/${pkgname}"
install -Dm0644 00_journal_size.conf "$pkgdir"/etc/systemd.conf.d/00_journal_size.conf install -Dm0644 00-journal-size.conf "$pkgdir"/etc/systemd.conf.d/00-journal-size.conf
} }