diff options
author | arctize | 2019-11-14 13:07:21 +0100 |
---|---|---|
committer | arctize | 2019-11-14 13:07:21 +0100 |
commit | 0b37a15e051b13f5b747a75e43800ff264b38cae (patch) | |
tree | 895c1fb7a82c9e25efe66aef568801d1e0c70685 | |
download | aur-0b37a15e051b13f5b747a75e43800ff264b38cae.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 27 | ||||
-rw-r--r-- | mwb-layout.install | 4 |
3 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e26f6f6cfa28 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = mwb-layout + pkgdesc = Optimized keyboard layout, based on programmer dvorak and with a 3rd layer + pkgver = r24.244ca13 + pkgrel = 1 + url = https://github.com/MatteoWickiBande/mwb-layout + install = mwb-layout.install + arch = any + license = GPL3 + depends = git + optdepends = xcape: swap for swapping CAPS with escape + source = git+https://github.com/MatteoWickiBande/mwb-layout.git + md5sums = SKIP + +pkgname = mwb-layout + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..84cccacd02a9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# vim: set ts=2 sw=2 et: +# Maintainer: Patrick Wicki <patrick.wicki96gmail.com> + +pkgname=mwb-layout +pkgver=r24.244ca13 +pkgrel=1 +pkgdesc='Optimized keyboard layout, based on programmer dvorak and with a 3rd layer' +arch=(any) +url="https://github.com/MatteoWickiBande/mwb-layout" +source=("git+$url.git") +license=(GPL3) +depends=(git) +optdepends=('xcape: swap for swapping CAPS with escape') +md5sums=('SKIP') +install='mwb-layout.install' + +pkgver() { + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$srcdir/$pkgname" + gzip -c mwb.map > mwb.map.gz + install -Dm 644 mwb.map.gz "$pkgdir/usr/share/kbd/keymaps/i386/dvorak/mwb.map.gz" + install -Dm 644 mwb "$pkgdir/usr/share/x11/xkb/symbols/mwb" +} diff --git a/mwb-layout.install b/mwb-layout.install new file mode 100644 index 000000000000..208770567044 --- /dev/null +++ b/mwb-layout.install @@ -0,0 +1,4 @@ +post_install() { + printf "Run the following command to switch to the new layout:\n" + printf "\tlocalectl set-x11-keymap mwb\n" +} |