Last active
July 25, 2020 04:45
-
-
Save strund3r/dabb50bffb53cbf5c7bb86a4a0c74a53 to your computer and use it in GitHub Desktop.
Live ISS stream as wallpaper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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