made books and papers scripts easier to tweak

This commit is contained in:
William Ball 2025-05-11 18:58:28 -07:00
parent 2fb9b350da
commit 7d870bde5e
Signed by: wball
GPG key ID: B8682D8137B70765
2 changed files with 8 additions and 4 deletions

View file

@ -1,7 +1,9 @@
#!/bin/sh
prefix=$HOME/Nextcloud/Books/
dmenu=pipemenu
pdf="flatpak run org.gnome.Papers"
choice=$(find $prefix -type f | sed "s|$prefix||;s/_/ /g" | fuzzel -d -w 60)
choice=$(find $prefix -type f | sed "s|$prefix||;s/_/ /g" | $dmenu)
test -n "$choice" && zathura $(echo $choice | sed "s/ /_/g;s|^|$prefix|") &
test -n "$choice" && $pdf $(echo $choice | sed "s/ /_/g;s|^|$prefix|") &

View file

@ -1,7 +1,9 @@
#!/bin/sh
prefix=$HOME/Nextcloud/Papers/
dmenu=pipemenu
pdf="flatpak run org.gnome.Papers"
choice=$(find $prefix -type f | sed "s|$prefix||;s/_/ /g" | fuzzel -d -w 60)
choice=$(find $prefix -type f | sed "s|$prefix||;s/_/ /g" | $dmenu)
test -n "$choice" && zathura $(echo $choice | sed "s/ /_/g;s|^|$prefix|") &
test -n "$choice" && $pdf $(echo $choice | sed "s/ /_/g;s|^|$prefix|") &