add all the usr/local/bin stuff
This commit is contained in:
parent
60e428c268
commit
6b4f8df873
@ -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
|
||||
|
@ -1,4 +1,5 @@
|
||||
SUBDIR =
|
||||
SUBDIR += fido
|
||||
SUBDIR += git-credential-netrc
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
|
11
src/openbsd/usr.local.bin/rofi-mpc/Makefile
Normal file
11
src/openbsd/usr.local.bin/rofi-mpc/Makefile
Normal 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>
|
9
src/openbsd/usr.local.bin/rofi-mpc/rofi-mpc.sh
Executable file
9
src/openbsd/usr.local.bin/rofi-mpc/rofi-mpc.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [[ -z $1 ]]; then
|
||||
mpc lsp | sort
|
||||
else
|
||||
mpc clear
|
||||
mpc load "$1"
|
||||
mpc toggle
|
||||
fi
|
11
src/openbsd/usr.local.bin/rofi-vmctl/Makefile
Normal file
11
src/openbsd/usr.local.bin/rofi-vmctl/Makefile
Normal 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>
|
13
src/openbsd/usr.local.bin/rofi-vmctl/rofi-vmctl.sh
Executable file
13
src/openbsd/usr.local.bin/rofi-vmctl/rofi-vmctl.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user