summaryrefslogtreecommitdiffstats
path: root/.local/bin/nuke
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/nuke')
-rwxr-xr-x.local/bin/nuke7
1 files changed, 5 insertions, 2 deletions
diff --git a/.local/bin/nuke b/.local/bin/nuke
index c287b5a..e2925b6 100755
--- a/.local/bin/nuke
+++ b/.local/bin/nuke
@@ -212,7 +212,7 @@ handle_extension() {
212 exit 1;; 212 exit 1;;
213 213
214 ## OpenDocument 214 ## OpenDocument
215 odt|ods|odp|sxw) 215 odt|ods|odp|sxw|docx)
216 if type odt2txt >/dev/null 2>&1; then 216 if type odt2txt >/dev/null 2>&1; then
217 ## Preview as text conversion 217 ## Preview as text conversion
218 odt2txt "${FPATH}" | eval "$PAGER" 218 odt2txt "${FPATH}" | eval "$PAGER"
@@ -227,7 +227,7 @@ handle_extension() {
227 ## Markdown 227 ## Markdown
228 md) 228 md)
229 if type glow >/dev/null 2>&1; then 229 if type glow >/dev/null 2>&1; then
230 glow -sdark "${FPATH}" | eval "$PAGER" 230 glow -p "${FPATH}"
231 exit 0 231 exit 0
232 elif type lowdown >/dev/null 2>&1; then 232 elif type lowdown >/dev/null 2>&1; then
233 lowdown -Tterm "${FPATH}" | eval "$PAGER" 233 lowdown -Tterm "${FPATH}" | eval "$PAGER"
@@ -331,6 +331,9 @@ handle_multimedia() {
331 elif type nsxiv >/dev/null 2>&1; then 331 elif type nsxiv >/dev/null 2>&1; then
332 load_dir nsxiv "${FPATH}" >/dev/null 2>&1 & 332 load_dir nsxiv "${FPATH}" >/dev/null 2>&1 &
333 exit 0 333 exit 0
334 elif type imv >/dev/null 2>&1; then
335 imv "${FPATH}" >/dev/null 2>&1 &
336 exit 0
334 fi 337 fi
335 elif type viu >/dev/null 2>&1; then 338 elif type viu >/dev/null 2>&1; then
336 viu -n "${FPATH}" | eval "$PAGER" 339 viu -n "${FPATH}" | eval "$PAGER"