diff options
author | Vikas Kushwaha <dev@vikas.rocks> | 2025-02-22 10:11:38 +0530 |
---|---|---|
committer | Vikas Kushwaha <dev@vikas.rocks> | 2025-02-22 10:11:38 +0530 |
commit | 3b887240d1d9189be7f4adf75f3e71277b7ca833 (patch) | |
tree | 358fd67ad202c410e1730ed811647251543c553a /.local/bin/open | |
parent | 4bba9a51b63863317983faba3988c8a14e722c11 (diff) |
after fixing some boot problems
Diffstat (limited to '.local/bin/open')
-rwxr-xr-x | .local/bin/open | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/open b/.local/bin/open index b054729..5b38cb7 100755 --- a/.local/bin/open +++ b/.local/bin/open @@ -5,7 +5,7 @@ for file in "$@"; do case "$file" in - *.pdf|*.djvu|*.epub) setsid -f zathura "$file" ;; + *.pdf|*.djvu|*.epub) setsid -f zathura "$file" 2>/dev/null ;; *.png|*.jpg|*.jpeg|*.webp) setsid -f nsxiv "$file" ;; *.gif|*.mkv|*.mp3|*.mp4|*.webm|*.ogg) ${PLAYER:-mpv --sub-auto=fuzzy} "$file" ;; *.html) ${BROWSER:-w3m} "$file" ;; @@ -25,7 +25,7 @@ for file in "$@"; do case "$filetype" in inode/directory) ${FILES:-lf} "$file" ; exit ;; text/html*) ${BROWSER:-w3m} "$file" ;; - *pdf|*djvu|*epub+zip|*oxps|*fictionbook) setsid -f zathura "$file" ;; + *pdf|*djvu|*epub+zip|*oxps|*fictionbook) setsid -f zathura "$file" 2>/dev/null ;; text/*|*json|*zip|*zstd) "${EDITOR:-nvim}" "$file" ;; application/vnd.openxmlformats-officedocument.*) setsid -f libreoffice "$file" ;; application/sc) sc-im "$file" ;; |