diff options
Diffstat (limited to 'scripts/.scripts/books.sh')
| -rwxr-xr-x | scripts/.scripts/books.sh | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/scripts/.scripts/books.sh b/scripts/.scripts/books.sh index 7879479..d2f8da4 100755 --- a/scripts/.scripts/books.sh +++ b/scripts/.scripts/books.sh @@ -1,7 +1,7 @@ #!/bin/sh ################################################################## # ___ __ __ _ # -# / _ \ _ __ ___ __ _ _ __ | \/ | __ _ __ _ __| |_ _ # +# / _ \ _ __ ___ __ _ _ __ | \/ | __ _ __ _ __| |_ _ # #| | | | '_ ` _ \ / _` | '__| | |\/| |/ _` |/ _` |/ _` | | | | # #| |_| | | | | | | (_| | | | | | | (_| | (_| | (_| | |_| | # # \___/|_| |_| |_|\__,_|_| |_| |_|\__,_|\__, |\__,_|\__ | # @@ -10,23 +10,13 @@ ################################################################## path="/run/media/omar/Storage/omar/Books" -choice=$(ls "$path" | dmenu -i -l 10) +choice=$(ls -a "$path" | dmenu -i -l 10) new_choice=$choice -while [ -d "$path/$new_choice" ] -do - choice=$(ls "$path/$new_choice" | dmenu -l 10) - new_choice+="/" - new_choice+=$choice #path/books for cs/ - echo $new_choice +while [ -d "$path/$new_choice" ]; do + choice=$(ls -a "$path/$new_choice" | dmenu -l 10) + new_choice+="/" + new_choice+=$choice #path/books for cs/ done zathura --mode fullscreen "$path/$new_choice" - - - - - - - - |
