add rofi-bw
This commit is contained in:
parent
70873f3c79
commit
3a7633f7bd
11
src/openbsd/usr.local.bin/rofi-bw/Makefile
Normal file
11
src/openbsd/usr.local.bin/rofi-bw/Makefile
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# $OpenBSD$
|
||||||
|
|
||||||
|
PREFIX ?= /usr/local
|
||||||
|
SCRIPT = rofi-bw.sh
|
||||||
|
BINDIR ?= ${PREFIX}/bin
|
||||||
|
|
||||||
|
realinstall:
|
||||||
|
${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
||||||
|
${.CURDIR}/${SCRIPT} ${DESTDIR}${BINDIR}/rofi-bw
|
||||||
|
|
||||||
|
.include <bsd.prog.mk>
|
13
src/openbsd/usr.local.bin/rofi-bw/rofi-bw.sh
Executable file
13
src/openbsd/usr.local.bin/rofi-bw/rofi-bw.sh
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if rbw unlocked; then
|
||||||
|
if [[ -z $1 ]]; then
|
||||||
|
rbw list --fields folder,name | sort
|
||||||
|
else
|
||||||
|
rbw get "$(echo $1 | awk '{print $NF}')" | xclip -r -l 1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Unock rbw first!"
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user