#!/bin/sh # this script updates the system keyd config with what's included # in this directory set -eux sudo -v # get directory of script dir=$(CDPATH='' cd -- "$(dirname -- "$0")" && pwd) sysdir='/etc/keyd' [ -f "$sysdir/default.conf" ] && sudo cp -f "$dir/default.conf" "$sysdir/default.conf" sudo keyd reload