From 8248b2e9c754649523ee0b08b530edd8eb42f8f3 Mon Sep 17 00:00:00 2001 From: Omar Magdy Date: Sun, 1 May 2022 20:27:15 +0200 Subject: Added kitty/alacrity/scripts/zsh dotfiles --- scripts/.scripts/books.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 scripts/.scripts/books.sh (limited to 'scripts/.scripts/books.sh') diff --git a/scripts/.scripts/books.sh b/scripts/.scripts/books.sh new file mode 100755 index 0000000..be224aa --- /dev/null +++ b/scripts/.scripts/books.sh @@ -0,0 +1,32 @@ +#!/bin/sh +################################################################## +# ___ __ __ _ +# / _ \ _ __ ___ __ _ _ __ | \/ | __ _ __ _ __| |_ _ +#| | | | '_ ` _ \ / _` | '__| | |\/| |/ _` |/ _` |/ _` | | | | +#| |_| | | | | | | (_| | | | | | | (_| | (_| | (_| | |_| | +# \___/|_| |_| |_|\__,_|_| |_| |_|\__,_|\__, |\__,_|\__ | +# |___/ |___/ +# +################################################################## + +path="/mnt/CEBE20B1BE2093CD/Omar/Self learning/Books/English books" +choice=$(ls "$path" | dmenu -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 +done + +zathura --mode fullscreen "$path/$new_choice" + + + + + + + + -- cgit v1.2.3