dotfiles

custom linux config files managed with gnu stow

dotfiles

bin/bin/keebconfig


#!/bin/sh
#  ██                     ██
# ░██                    ░██
# ░██  ██  █████   █████ ░██
# ░██ ██  ██░░░██ ██░░░██░██████
# ░████  ░███████░███████░██░░░██
# ░██░██ ░██░░░░ ░██░░░░ ░██  ░██
# ░██░░██░░██████░░██████░██████
# ░░  ░░  ░░░░░░  ░░░░░░ ░░░░░

# get uid
USER_ID=`id -u $USER`
# get diskname
DISK=`lsblk -a | grep 4M | grep -o '^\s*\S\+'`
[ -z "$DISK" ] &&  echo "v-drive not found" >&2 && exit 1
DIR=`mktemp -d -t keeb-XXX`
# mount vdrive
sudo mount -o umask=0022,gid=${USER_ID},uid=${USER_ID} /dev/${DISK} $DIR
echo "mounted"
# run config tool
wine $DIR/keebconfig.exe
# clean up your mess
sudo umount $DIR
rm -rf $DIR
echo "unmounted"
# if you corrupt the v-drive again...
# dosfsck -t -a -w /dev/${DISK}

Download

raw zip tar