diff --git a/scripts/.local/bin/books.sh b/scripts/.local/bin/books.sh index 19a88a9..240a9a9 100755 --- a/scripts/.local/bin/books.sh +++ b/scripts/.local/bin/books.sh @@ -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|") & diff --git a/scripts/.local/bin/papers.sh b/scripts/.local/bin/papers.sh index 90f7ea1..f35304b 100755 --- a/scripts/.local/bin/papers.sh +++ b/scripts/.local/bin/papers.sh @@ -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|") &