http://176.9.156.38/clock/big_<>-<, 5>.mp4?start=< >
standardtime
screensaver: #!/bin/bash hour=$(date +%-H) ms=$(date +%-M) sec=$(date +%-S) rms=$((($ms / 5) * 5)) st=$((($ms - $rms) * 60 + $sec)) secret=$(curl -s "http://esquire.ru/clock" | grep superSecret | grep -o -P "[0-9a-f]+(?=\")") URL=$(printf "http://176.9.156.38/clock/big_%02d-%02d.mp4?start=%d&pipiska=%s" $hour $rms $st $secret) exec mplayer -cache 2000 -nosound -nolirc -wid $XSCREENSAVER_WINDOW -nostop-xscreensaver -fs -really-quiet $URL
PATH
and make it executable.~/.xscreensaver
, find the programs
option in it and add our standardtime
by analogy: programs: \ maze -root \n\ GL: superquadrics -root \n\ -- -- GL: tronbit -root \n\ standardtime \n\
xscreensaver
configuration and select our newly created screensaver in the list (I called it Standardtime
).Source: https://habr.com/ru/post/143208/
All Articles