meme-of-the-day-wallpaper/start.sh

12 lines
246 B
Bash

#!bin/bash
if ! command -v screen &> /dev/null
then
sudo apt install screen -y
exit
fi
su - root -c "screen -m -d meme-of-the-day"
sleep 5
screen -S meme-of-the-day -X stuff 'python3 $PWD/save-image.py\n'
screen -XS meme-of-the-day quit