I am supposed to have a VM xserver and put files in a folder and then have a script that starts on startup (working) that checks if the file is a image it should load up with feh but if it is a video file to run in mplayer all in fullscreen. How far i've come:
#!/bin/bash
cd ~/Pictures/test/
sleep 1
if [[ $(file --mime-type) == "image/*" ]]
then
feh --auto-zoom -slideshow-delay 5 --full-screen --reload 3600 -x
else
mplayer -fs
fi
done
I appriciate any help! Cheers, Dannie
Aucun commentaire:
Enregistrer un commentaire