Skip to content

Commit

Permalink
test with vt
Browse files Browse the repository at this point in the history
  • Loading branch information
Muddyblack committed Jan 12, 2024
1 parent d9fb2de commit f3a2de0
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions images_slide_show.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,13 @@ display() {

if [[ ${#image_files[@]} -gt 0 && ${#video_files[@]} -gt 0 ]]; then
while true; do
sudo chvt $unused_tty
sudo fbi -a -r 3 -t $DISPLAYTIME --blend $BLENDTIME -T $unused_tty --noverbose -1 "${image_files[@]}" &
sudo fbi -a -r 3 -t $DISPLAYTIME --blend $BLENDTIME -vt $unused_tty --noverbose -1 "${image_files[@]}"
sleep $((IMAGE_FILES_COUNT * DISPLAYTIME))
sudo pkill -x "fbi"
cvlc "$video_files"
done
elif [ -n "$image_files" ]; then
sudo chvt $unused_tty
sudo fbi -a -r 5 -t $DISPLAYTIME --blend $BLENDTIME -T $unused_tty --noverbose "${image_files[@]}" &
fbiID=$!
sudo chvt $unused_tty
wait $fbiID
sudo fbi -a -r 5 -t $DISPLAYTIME --blend $BLENDTIME -vt $unused_tty --noverbose "${image_files[@]}"
elif [ -n "$video_files" ]; then
#clear
cvlc --loop "$video_files"
Expand Down

0 comments on commit f3a2de0

Please sign in to comment.