add all the usr/local/bin stuff

This commit is contained in:
Aaron Bieber 2021-01-11 10:27:50 -07:00
parent 60e428c268
commit 6b4f8df873
6 changed files with 57 additions and 0 deletions

View File

@ -4,7 +4,19 @@ DEVCLASS=$1
DEVNAME=$2
case "$DEVNAME" in
urndis0)
sh /etc/netstart urndis0
;;
fido0)
pkill -USR1 -xf "/usr/bin/perl /usr/local/bin/fido"
;;
uhidev[0-9])
if dmesg | grep -q "Keyboardio Atreus"; then
# get the most recently connected keyboard
lk=$(wsconsctl | egrep "^keyboard[0-9].encoding" | tail -n 1 | awk -F. '{print $1}')
wsconsctl ${lk}.encoding=us
echo "Setting $lk to: $(wsconsctl ${lk}.encoding)"
fi
;;
esac

View File

@ -1,4 +1,5 @@
SUBDIR =
SUBDIR += fido
SUBDIR += git-credential-netrc
.include <bsd.subdir.mk>

View File

@ -0,0 +1,11 @@
# $OpenBSD$
PREFIX ?= /usr/local
SCRIPT = rofi-mpc.sh
BINDIR ?= ${PREFIX}/bin
realinstall:
${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
${.CURDIR}/${SCRIPT} ${DESTDIR}${BINDIR}/rofi-mpc
.include <bsd.prog.mk>

View File

@ -0,0 +1,9 @@
#!/bin/sh
if [[ -z $1 ]]; then
mpc lsp | sort
else
mpc clear
mpc load "$1"
mpc toggle
fi

View File

@ -0,0 +1,11 @@
# $OpenBSD$
PREFIX ?= /usr/local
SCRIPT = rofi-vmctl.sh
BINDIR ?= ${PREFIX}/bin
realinstall:
${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
${.CURDIR}/${SCRIPT} ${DESTDIR}${BINDIR}/rofi-vmctl
.include <bsd.prog.mk>

View File

@ -0,0 +1,13 @@
#!/bin/sh
if [[ -z $1 ]]; then
vmctl status
else
host=$(echo "$1" | awk '{print $NF}')
state=$(echo "$1" | awk '{print $(NF-1)}')
if [ "$state" == "stopped" ]; then
vmctl start "$host"
else
vmctl stop "$host"
fi
fi