Skip to content

Instantly share code, notes, and snippets.

@strund3r
Last active July 25, 2020 04:45
Show Gist options
  • Save strund3r/dabb50bffb53cbf5c7bb86a4a0c74a53 to your computer and use it in GitHub Desktop.
Save strund3r/dabb50bffb53cbf5c7bb86a4a0c74a53 to your computer and use it in GitHub Desktop.
Live ISS stream as wallpaper
[Desktop Entry]
Version=1.0
Type=Application
Name=ISS
Comment=Display ISS live stream as background
Icon=/PATH/TO/YOUR/icon.png
Exec=bash PATH/TO/live-iss-background.sh
NoDisplay=false
StartupNotify=false
Terminal=false
#!/bin/bash
PS=`ps -ef`
Icon="/path/to/nasa_icon.png"
if echo "$PS"|grep -q 'vlc -I dummy';
then notify-send -i $Icon " ISS background OFF" \ "\"Houston, We've Got a Problem !\"";
kill $(ps aux | grep 'vlc -I dummy' | awk '{print $2}')
else notify-send -i $Icon " ISS background ON" \ "Dowloading data from ISS...";
livestreamer http://www.ustream.tv/embed/9408562?html5ui best --player "cvlc --no-video" & livestreamer http://ustream.tv/channel/iss-hdev-payload best --player 'vlc -I dummy --video-wallpaper --no-video-title-show --noaudio'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment