improved books and papers scripts for GNOME

This commit is contained in:
William Ball 2024-09-07 13:31:24 -07:00
parent 5d7e3b92b2
commit 7a6ee2ba40
2 changed files with 4 additions and 4 deletions

View file

@ -2,6 +2,6 @@
prefix=$HOME/Nextcloud/Books/ 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|") &

View file

@ -2,6 +2,6 @@
prefix=$HOME/Nextcloud/Papers/ 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|") &