From 0a043dbb7259cc59ac56b31573469f445a7921ed Mon Sep 17 00:00:00 2001 From: mono-b Date: Sun, 18 Dec 2022 23:00:24 -0300 Subject: up --- rofibooks.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 rofibooks.sh (limited to 'rofibooks.sh') diff --git a/rofibooks.sh b/rofibooks.sh new file mode 100755 index 0000000..40cd72e --- /dev/null +++ b/rofibooks.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +seleccion=$(find $HOME/stf/books/ -mindepth 2 -type f | + cut -d "/" -f 6- | + awk '{ printf $0 "\n" }' | + rofi -dmenu -font "Iosevka Nerd Font 12" -p "Book") + +case $seleccion in +*.pdf) zathura "$HOME/stf/books/$seleccion" ;; +*.epub) zathura "$HOME/stf/books/$seleccion" ;; +*.odt) libreoffice "$HOME/stf/books/$seleccion" ;; +esac -- cgit v1.2.1