From 3c383a91995a4965921cce67d28f9ca0bc5dee0d Mon Sep 17 00:00:00 2001 From: swy7ch Date: Wed, 6 May 2020 03:46:37 +0200 Subject: [PATCH] fix: fix a typo in dmenuopen --- .local/bin/dmenuopen | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/dmenuopen b/.local/bin/dmenuopen index 3761e00..93bb835 100755 --- a/.local/bin/dmenuopen +++ b/.local/bin/dmenuopen @@ -3,7 +3,7 @@ # Fuzzy-find a file and open it with appropriate application 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 exit 0 @@ -17,7 +17,7 @@ fi case "$filetype" in *.pdf) zathura "$file" ;; - *.png|.jpg) feh "$file" ;; + *.png|.jpg) sxiv "$file" ;; *.txt|*.mom|*.tex) "$TERMINAL" -e nvim "$file" ;; *.mkv) mpv "$file";; esac