This commit is contained in:
joachimschmidt557 2019-11-03 12:02:13 +01:00
parent 1f8acca322
commit d95fa53dd7

9
nope
View file

@ -20,6 +20,7 @@ case "$@" in
;;
--version)
echo "nope version 0.1.0"
exit 1
;;
*.pdf)
okular "$@" > /dev/null 2>&1 &
@ -27,9 +28,15 @@ case "$@" in
*.html)
firefox "$@" > /dev/null 2>&1 &
;;
*.mp4|*.mp3)
*.mp4|*.mp3|*.wav|*.mkv)
vlc "$@" > /dev/null 2>&1 &
;;
*.ods)
libreoffice "$@" > /dev/null 2>&1 &
;;
*.jpg|*.png)
feh "$@" > /dev/null 2>&1 &
;;
*)
echo "No rule for opening this file has been specified"
exit 1