Add makima-bin so we can remap the copilot key to the omarchy menu

This commit is contained in:
David Heinemeier Hansson
2026-03-05 14:27:59 -04:00
parent 3258bc101a
commit ee72356e63
3 changed files with 56 additions and 0 deletions
+1
View File
@@ -21,6 +21,7 @@ gpu-screen-recorder
limine-mkinitcpio-hook
limine-snapper-sync
macbook12-spi-driver-dkms
makima-bin
pinta
python-terminaltexteffects
ttf-ia-writer
+13
View File
@@ -0,0 +1,13 @@
pkgbase = makima-bin
pkgdesc = Linux daemon to remap and create macros for keyboards, mice and controllers.
pkgver = 0.10.2
pkgrel = 1
url = https://github.com/cyber-sushi/makima
arch = x86_64
license = GPL-3.0-or-later
provides = makima
conflicts = makima
source = https://github.com/cyber-sushi/makima/releases/download/v0.10.2/makima
sha256sums = ad8255f44a8a619f7d300bbf81463b61e3e6e7af37697fac8d53f6c7f937edaf
pkgname = makima-bin
+42
View File
@@ -0,0 +1,42 @@
# Maintainer: TobiWan54 <tobiwan54 at proton dot me>
pkgname=makima-bin
_name=${pkgname%-bin}
pkgver=0.10.2
pkgrel=1
pkgdesc='Linux daemon to remap and create macros for keyboards, mice and controllers.'
arch=('x86_64')
url='https://github.com/cyber-sushi/makima'
license=('GPL-3.0-or-later')
provides=("$_name")
conflicts=("$_name")
source=("https://github.com/cyber-sushi/makima/releases/download/v${pkgver}/makima")
sha256sums=('ad8255f44a8a619f7d300bbf81463b61e3e6e7af37697fac8d53f6c7f937edaf')
package() {
install -Dm755 makima "$pkgdir/usr/bin/makima"
mkdir -p "$pkgdir/etc/udev/rules.d"
echo 'SUBSYSTEM=="misc", KERNEL=="uinput", MODE="0660", GROUP="input", TAG+="uaccess"' > "$pkgdir/etc/udev/rules.d/50-makima.rules"
mkdir -p "$pkgdir/etc/modules-load.d"
echo 'uinput' > "$pkgdir/etc/modules-load.d/uinput.conf"
mkdir -p "$pkgdir/usr/lib/systemd/system"
tee "$pkgdir/usr/lib/systemd/system/makima.service" > /dev/null <<EOF
[Unit]
Description=Makima remapping daemon
[Service]
Type=simple
Environment="MAKIMA_CONFIG=/home/$USER/.config/makima"
ExecStart=/usr/bin/makima
Restart=always
RestartSec=3
User=$USER
Group=input
[Install]
WantedBy=default.target
EOF
}