sudo apt install xscreensaver jq aria2 notify-osd
- Make a directory in $HOME called Aerial
- Copy
aerial-downloader.sh
below into $HOME/Aerial - Run it once
crontab -e
00 10 * * * sh $HOME/Aerial/aerial-downloader.sh
to download new stuff (if any) at 10:00 every daynano ~/.xscreensaver
and add the code in the file below- Open up the XScreensaver app and pick "Apple Aerial"
gnome-session-properties
and addxscreensaver -nosplash
to the list- If you want, go into the System Settings and add a keyboard shortcut for
Shift + Win + L
to launch the commandxscreensaver-command -lock
Last active
April 27, 2022 14:13
-
-
Save leoherzog/ab0936e04de87c2cdcf5 to your computer and use it in GitHub Desktop.
Setting Up Aerial Screensaver on Linux
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
Best: "Apple Aerial" cvlc --loop --fullscreen --random \ | |
--drawable-xid \ | |
$XSCREENSAVER_WINDOW \ | |
--no-video-title-show \ | |
$HOME/Aerial/* \n\ |
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
#!/usr/bin/bash | |
cd $HOME/Aerial/ | |
url='http://a1.phobos.apple.com/us/r1000/000/Features/atv/AutumnResources/videos/entries.json' | |
curl $url \ | |
| jq -r '.[].assets[].url' \ | |
> .aria.urls | |
aria2c -x10 -i .aria.urls \ | |
--auto-file-renaming=false \ | |
--conditional-get=true \ | |
--allow-overwrite=true \ | |
--save-session=.aria.session \ | |
--force-save=true | |
videoscount="$(find $HOME/Aerial/ -name '*.mov' | wc -l)" | |
notify-send -t 30000 -i face-wink "Checked in with Apple!" "There are currently ${videoscount} videos in the directory" |
Could not get cvlc version to work under Ubuntu 18.0.4 however the "old" version using mpv works fine!:
sudo apt install xscreensaver mpv jq aria2 notify-osd instead of sudo apt install xscreensaver vlc jq aria2 notify-osd
And then add the following to the .xscreensaver file:
Best: "Apple Aerial" mpv --really-quiet --shuffle --no-audio --fs --loop=inf --no-stop-screensaver --wid=$XSCREENSAVER_WINDOW --panscan=1 $HOME/Aerial/*.mov
In Ubuntu 18.10 I edited config file like following:
- GL: "Apple Aerial" cvlc --loop --fullscreen --random \
2>>/dev/null \
--no-video-title-show $HOME/Aerial/* \n\
and it works perfectly :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cant get this to work. On Ubuntu the .xscreensaver keeps getting overwritten.
Apple Aerial doesn't appear in the list.
Also "and add the code in the file below" where?
Add to list? what list?
You instructions aren't clear to me
edit:
Figured it out. You included "best: " in the to add string but thats wrong.