Add Windows Screensavers app
parent
d87c06adcb
commit
b314db186e
@ -0,0 +1 @@
|
|||||||
|
Botspot
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
Botspot's collection of 14 Windows screensavers that run well on Raspberry Pi.
|
||||||
|
If you don't have Wine installed, this app will install it for you.
|
||||||
|
Once installed, you can launch Botspot's Screensavers GUI from:
|
||||||
|
Menu -> Preferences -> Windows Screensavers.
|
||||||
|
To run in terminal: ~/Screensavers/gui
|
||||||
|
|
||||||
|
In addition to the Windows Screensavers, Botspot's Screensaver GUI also allows convenient installation of GPU-accelerated Xscreensaver, preset to enable the best ones out of 230 screensavers.
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 1022 B |
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
@ -0,0 +1,27 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
|
||||||
|
|
||||||
|
function error {
|
||||||
|
echo -e "\\e[91m$1\\e[39m"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
"${DIRECTORY}/manage" install-if-not-installed 'Wine (x86)' || error "Wine is required to run Windows Screensavers but it failed to install!"
|
||||||
|
|
||||||
|
# Get dependencies
|
||||||
|
"${DIRECTORY}/pkg-install" "x11-utils yad xprintidle" "$(dirname "$0")" || exit 1
|
||||||
|
|
||||||
|
git clone https://github.com/Botspot/Screensavers || error 'Failed to clone repository!'
|
||||||
|
|
||||||
|
#create menu launcher
|
||||||
|
if [ ! -f ~/.local/share/applications/windows-screensavers.desktop ];then
|
||||||
|
echo "[Desktop Entry]
|
||||||
|
Exec=$DIRECTORY/gui
|
||||||
|
Icon=xscreensaver
|
||||||
|
Terminal=false
|
||||||
|
Name=Windows Screensavers
|
||||||
|
Comment=Select and configure Windows screensavers that run on your Pi with Wine
|
||||||
|
Type=Application
|
||||||
|
Categories=Settings;DesktopSettings;Security;X-XFCE;" > ~/.local/share/applications/windows-screensavers.desktop
|
||||||
|
fi
|
||||||
@ -0,0 +1,25 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
|
||||||
|
|
||||||
|
function error {
|
||||||
|
echo -e "\\e[91m$1\\e[39m"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
#if your app installs any packages, keep this command here so those packages will be removed.
|
||||||
|
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1
|
||||||
|
|
||||||
|
echo "Removing directories..."
|
||||||
|
rm -rf ~/Screensavers ~/.screensavers ~/.local/share/applications/windows-screensavers.desktop
|
||||||
|
|
||||||
|
#Stop existing screensaver.service
|
||||||
|
if [ -f /etc/systemd/system/screensaver.service ]; then
|
||||||
|
echo "Removing systemd service..."
|
||||||
|
sudo systemctl stop screensaver
|
||||||
|
sudo systemctl disable screensaver
|
||||||
|
sudo rm /etc/systemd/system/screensaver.service
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Reloading systemd daemon..."
|
||||||
|
sudo systemctl daemon-reload
|
||||||
@ -0,0 +1 @@
|
|||||||
|
https://github.com/Botspot/Screensavers
|
||||||
Loading…
Reference in New Issue