#!/bin/sh for f in keymap/*; do name="$(basename "$f")" echo "--------------------------- Compiling $name ---------------------------" xkbcomp -I. "$f" -xkb -o "compiled/${name}.xkb" -a -w4 # xkbcomp -I. "$f" -xkm -o "compiled/$(basename "$f").xkm" done