made books and papers scripts easier to tweak
This commit is contained in:
parent
2fb9b350da
commit
7d870bde5e
2 changed files with 8 additions and 4 deletions
|
|
@ -1,7 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
prefix=$HOME/Nextcloud/Books/
|
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|") &
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
prefix=$HOME/Nextcloud/Papers/
|
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|") &
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue