fix: fix a typo in dmenuopen

This commit is contained in:
swy7ch 2020-05-06 03:46:37 +02:00
parent fd6e1d2ce3
commit 3c383a9199

View File

@ -3,7 +3,7 @@
# Fuzzy-find a file and open it with appropriate application # Fuzzy-find a file and open it with appropriate application
filetypes=".pdf .png .jpg .txt .mom .tex .mkv" # could be augmented filetypes=".pdf .png .jpg .txt .mom .tex .mkv" # could be augmented
filetype=\\$(printf "$filetypes" | sed "s| |\n|g" | dmenu -i -p "type of the file?") filetype=$(printf "$filetypes" | sed "s| |\n|g" | dmenu -i -p "type of the file?")
if [ -z "$filetype" ]; then if [ -z "$filetype" ]; then
exit 0 exit 0
@ -17,7 +17,7 @@ fi
case "$filetype" in case "$filetype" in
*.pdf) zathura "$file" ;; *.pdf) zathura "$file" ;;
*.png|.jpg) feh "$file" ;; *.png|.jpg) sxiv "$file" ;;
*.txt|*.mom|*.tex) "$TERMINAL" -e nvim "$file" ;; *.txt|*.mom|*.tex) "$TERMINAL" -e nvim "$file" ;;
*.mkv) mpv "$file";; *.mkv) mpv "$file";;
esac esac