blob: f1191073e6adaabd4c081eb10c9df45885dd232b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/sh
##################################################################
# ___ __ __ _ #
# / _ \ _ __ ___ __ _ _ __ | \/ | __ _ __ _ __| |_ _ #
#| | | | '_ ` _ \ / _` | '__| | |\/| |/ _` |/ _` |/ _` | | | | #
#| |_| | | | | | | (_| | | | | | | (_| | (_| | (_| | |_| | #
# \___/|_| |_| |_|\__,_|_| |_| |_|\__,_|\__, |\__,_|\__ | #
# |___/ |___/ #
# #
##################################################################
path="/home/pengu/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"
|