Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2017-12-06 16:07:58 +03:00
commit 3ba92d9cb8
2 changed files with 85 additions and 0 deletions

15
PKGBUILD Normal file
View File

@ -0,0 +1,15 @@
# Maintainer: Not Important <fbt@fleshless.org>
pkgname=xkb-layout-ducky-mini
pkgver=0.1
pkgrel=1
pkgdesc="A keyboard layout mimicking the Ducky Shine Mini, may its soul rest in peace."
arch=('any')
license=('WTFPL')
source=( ducky-mini )
package() {
mkdir -pm755 "$pkgdir/usr/share/X11/xkb/symbols"
cp -v ducky-mini "$pkgdir/usr/share/X11/xkb/symbols/ducky-mini"
chmod 644 "$pkgdir/usr/share/X11/xkb/symbols/ducky-mini"
}

70
ducky-mini Normal file
View File

@ -0,0 +1,70 @@
default partial alphanumeric_keys modifier_keys
xkb_symbols "us" {
name[Group1]="English (US, with a layout mimicking the Ducky Mini)";
include "us(basic)"
include "ducky_mini(common)"
key <AE02> { [ 2, at, F2 ] };
key <AE03> { [ 3, numbersign, F3 ] };
key <AE04> { [ 4, dollar, F4 ] };
key <AE06> { [ 6, asciicircum, F6 ] };
key <AE07> { [ 7, ampersand, F7 ] };
key <AD09> { [ o, O, Up ] };
key <AC08> { [ k, K, Left ] };
key <AC09> { [ l, L, Down ] };
key <AC10> { [ semicolon, colon, Right ] };
key <AC07> { [ j, J, Prior ] };
key <AB07> { [ m, M, Next ] };
key <AB08> { [ comma, less, Home ] };
key <AB09> { [ period, greater, End ] };
key <BKSL> { [ backslash, bar, Insert ] };
key <TLDE> { [ Escape, asciitilde, grave ] };
};
partial alphanumeric_keys
xkb_symbols "ru" {
name[Group1]= "Russian (RU, with a layout mimicking the Ducky Mini)";
include "ru(winkeys)"
include "ducky_mini(common)"
key <AE02> { [ 2, quotedbl, F2 ] };
key <AE03> { [ 3, numerosign, F3 ] };
key <AE04> { [ 4, semicolon, F4 ] };
key <AE06> { [ 6, colon, F6 ] };
key <AE07> { [ 7, question, F7 ] };
key <AD09> { [ Cyrillic_shcha, Cyrillic_SHCHA, Up ] };
key <AC07> { [ Cyrillic_o, Cyrillic_O, Prior ] };
key <AC08> { [ Cyrillic_el, Cyrillic_EL, Left ] };
key <AC09> { [ Cyrillic_de, Cyrillic_DE, Down ] };
key <AC10> { [ Cyrillic_zhe, Cyrillic_ZHE, Right ] };
key <AB07> { [ Cyrillic_softsign, Cyrillic_SOFTSIGN, Next ] };
key <AB08> { [ Cyrillic_be, Cyrillic_BE, Home ] };
key <AB09> { [ Cyrillic_yu, Cyrillic_YU, End ] };
key <BKSL> { [ backslash, slash, Insert ] };
key <TLDE> { [ Escape, Cyrillic_IO, Cyrillic_io ] };
};
hidden partial alphanumeric_keys
xkb_symbols "common" {
name[Group1]= "Common (layout mimicking the Ducky Mini)";
key <AE01> { [ 1, exclam, F1 ] };
key <AE05> { [ 5, percent, F5 ] };
key <AE08> { [ 8, asterisk, F8 ] };
key <AE09> { [ 9, parenleft, F9 ] };
key <AE10> { [ 0, parenright, F10 ] };
key <AE11> { [ minus, underscore, F11 ] };
key <AE12> { [ equal, plus, F12 ] };
key <BKSP> { [ BackSpace, BackSpace, Delete ] };
};