From 7a6ee2ba40ace7eda14af2a8871075bd771bf30e Mon Sep 17 00:00:00 2001 From: William Ball Date: Sat, 7 Sep 2024 13:31:24 -0700 Subject: [PATCH] improved books and papers scripts for GNOME --- scripts/.local/bin/books.sh | 4 ++-- scripts/.local/bin/papers.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/.local/bin/books.sh b/scripts/.local/bin/books.sh index dabf2b8..a7f68fb 100755 --- a/scripts/.local/bin/books.sh +++ b/scripts/.local/bin/books.sh @@ -2,6 +2,6 @@ prefix=$HOME/Nextcloud/Books/ -choice=$(find $prefix -type f | sed "s|$prefix||;s/_/ /g" | fuzzel -d -w 80) +choice=$(find $prefix -type f | sed "s|$prefix||;s/_/ /g" | fzf) -test -n "$choice" && zathura $(echo $choice | sed "s/ /_/g;s|^|$prefix|") +test -n "$choice" && evince $(echo $choice | sed "s/ /_/g;s|^|$prefix|") & diff --git a/scripts/.local/bin/papers.sh b/scripts/.local/bin/papers.sh index 76d1644..031396a 100755 --- a/scripts/.local/bin/papers.sh +++ b/scripts/.local/bin/papers.sh @@ -2,6 +2,6 @@ prefix=$HOME/Nextcloud/Papers/ -choice=$(find $prefix -type f | sed "s|$prefix||;s/_/ /g" | fuzzel -d -w 80) +choice=$(find $prefix -type f | sed "s|$prefix||;s/_/ /g" | fzf) -test -n "$choice" && zathura $(echo $choice | sed "s/ /_/g;s|^|$prefix|") +test -n "$choice" && evince $(echo $choice | sed "s/ /_/g;s|^|$prefix|") &