tweaked scripts

This commit is contained in:
William Ball 2026-01-06 15:27:24 -08:00
parent 8a7f406fdb
commit a7d8b13534
4 changed files with 45 additions and 0 deletions

3
scripts/.local/bin/aur Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
git clone "https://aur.archlinux.org/$1.git"

12
scripts/.local/bin/books.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/sh
prefix=$HOME/Nextcloud/Books/
# dmenu="pipemenu --title Books"
# dmenu="fuzzel -d -p books -w 80"
dmenu="bemenu -p books --center --list 20 down --width-factor 0.5 --border 2 --bdr #f6c2e7"
pdf=zathura
# pdf="flatpak run org.gnome.Papers"
choice=$(find $prefix -type f | sed "s|$prefix||;s/_/ /g" | $dmenu)
test -n "$choice" && $pdf $(echo $choice | sed "s/ /_/g;s|^|$prefix|") &

12
scripts/.local/bin/papers.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/sh
prefix=$HOME/Nextcloud/Papers/
# dmenu="pipemenu --title Books"
# dmenu="fuzzel -d -p books -w 80"
dmenu="bemenu -p papers --center --list 20 down --width-factor 0.5 --border 2 --bdr #f6c2e7"
pdf=zathura
# pdf="flatpak run org.gnome.Papers"
choice=$(find $prefix -type f | sed "s|$prefix||;s/_/ /g" | $dmenu)
test -n "$choice" && $pdf $(echo $choice | sed "s/ /_/g;s|^|$prefix|") &

View file

@ -0,0 +1,18 @@
#!/bin/sh
echo "OK Please go ahead"
while read stdin; do
case $stdin in
GETPIN | getpin)
echo "D $(fuzzel --prompt-only "Passphrase: " --cache /dev/null --password --dmenu)"
echo "OK"
;;
BYE | bye)
echo "OK closing connection"
exit 0
;;
*)
echo "OK"
;;
esac
done