System47: Star Trek LCARS Screensaver HOWTO

Moderator: Forum moderators

Post Reply
HerrBert
Posts: 352
Joined: Mon Jul 13, 2020 6:14 pm
Location: Germany, NRW
Has thanked: 18 times
Been thanked: 121 times

System47: Star Trek LCARS Screensaver HOWTO

Post by HerrBert »

Just an idea...

Preview (not by me): https://www.youtube.com/embed/aBh5uOszR9s?autoplay=1

Using flash:

  • 2. extract the .zip file and install system47v2.2_setup.exe using wine
    the needed .swf file should be located in /root/.wine/drive_c/windows/system32/System47 dir/trekk 11 v2.2 - 201.swf

  • 3. move to another folder and rename it to remove whitespaces

- play in flashprojector
To get flashprojector visit https://oldforum.puppylinux.com/viewtop ... 7#p1061577

To make it automatic exiting screen saver:

Code: Select all

#!/bin/sh
APPDIR="$(dirname "$(readlink -f "$0")")"

# start flashprojector
$APPDIR/flashplayer $APPDIR/trekk.swf &
FPID=$!
unclutter -idle 3 &
UPID=$!
sleep 3

# detect input
xlock -nolock -mousemotion -geometry 0x0 -mode blank

kill $FPID $UPID

assuming all files in the same directory

- or with flashplayer browser plugin using some html like this:

Code: Select all

<html>
<head>
<title>System 47</title>
</head>
<body style="margin: 0px;" bgcolor="#000000">
<embed src="trekk.swf" quality="high" bgcolor="#000000" name="trekk" type="application/x-shockwave-flash" height="100%" width="100%">
</body>
</html>

save as index.html file in the same directory where your trekk.swf is located (name it as you like)

Using html and js:
https://webospinn.github.io/System47/v8.0.html plays well in firefox and light browser with apulse.
To play it locally save the entire site as html or download from gihub.

NOTE: audio not working with palemoon and seamonkey (alsa produces clicks, apulse crashes both of them on exit!)

- make it fullscreen¹ screen saver with light browser:
also needs apulse, ¹)xdotool, unclutter (optional)

Code: Select all

#!/bin/sh
APPDIR="$(dirname "$(readlink -f "$0")")"
[ ! "$(which light)" ] && exit
[ ! "$(which apulse)" ] && exit
# clean new profile, just in case...
mkdir -p /root/.system47

apulse light --profile /root/.system47 $APPDIR/v8.0.html &
LPID=$!

if [ "$(which xdotool)" ];then # precaution - loop is infinite if xdotool not installed
	while true; do
		[ "`xdotool search --name 'System 47'`" != "" ] && break
		sleep 1
	done
	sleep 1
	WINID="`xdotool search --name 'System 47'`"
	xdotool key --window $WINID F11
fi

# hide mouse pointer
unclutter -idle 3 &
UPID=$!

# detect any input
xlock -nolock -mousemotion -geometry 0x0 -mode blank

kill $LPID $UPID
rm -rf /root/.system47 2>/dev/null # remove profile anyway

assuming all files and subdirectories in the same location

Scripts can be started by xautolock -locker

Another NOTE: tinkered on Slacko64 7.0 - xdotool and unclutter are not part of Slacko installation.
xdotool can be found via PPM, unclutter i borrowed from Bionicpup64 8.0 :wink:

To get a (very basic) symbolic icon:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100">
	<path style="fill:gold;stroke:goldenrod;stroke-width:2px" d="m 50,10 a 150,100 0 0 0 -30,80 a 50,150 30 0 1 60,0 a 100,100 0 0 0 -30,-80 z"/>
</svg>
startrek.png
startrek.png (2.59 KiB) Viewed 943 times

Enjoy!

Post Reply

Return to “Tips & Tweaks”