This repository has been archived by the owner on Feb 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Truemmerer/truemmerer
Truemmerer
- Loading branch information
Showing
6 changed files
with
152 additions
and
9 deletions.
There are no files selected for viewing
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[Desktop Entry] | ||
Name=Animated Wallpaper Autostart | ||
Name[de]=Animierte Hintergrundbilder Autostart | ||
Comment[de]=Verwaltung von animierten Hintergrundbildern - Autostart | ||
Comment=Control of animated Wallpaper - Autostart | ||
Keywords[de]=Hintergrund;Animation;Wallpaper; | ||
Keywords=Animation;Wallpaper;GTK;Background; | ||
OnlyShowIn=GNOME;Unity; | ||
Exec=/usr/local/share/awp/awp-autostart.sh | ||
Icon=/usr/local/share/awp/awp_wallpaper_icon.png | ||
StartupNotify=false | ||
Terminal=false | ||
Type=Application | ||
Categories=GNOME;GTK;Core;Utility;Graphics; |
0
awp/awp_autostart.sh → awp/awp-autostart.sh
100644 → 100755
File renamed without changes.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
#!/bin/bash | ||
|
||
if [ $(whoami) != 'root' ]; then | ||
echo "Please run as root" | ||
|
||
else | ||
|
||
# Detect OS | ||
if [ -f /etc/os-release ]; then | ||
# freedesktop.org and systemd | ||
. /etc/os-release | ||
OS=$NAME | ||
elif type lsb_release >/dev/null 2>&1; then | ||
OS=$(lsb_release -si) | ||
elif [ -f /etc/lsb-release ]; then | ||
. /etc/lsb-release | ||
OS=$DISTRIB_ID | ||
else | ||
# Fall back to uname, e.g. "Linux <version>", also works for BSD, etc. | ||
OS=$(uname -s) | ||
VER=$(uname -r) | ||
fi | ||
|
||
# Install Dependencies | ||
if [ "$OS" == "Fedora" ]; then | ||
# Fedora | ||
|
||
zenity --question --width 500\ | ||
--text="Installation for Fedora initiated. It needs to intigrate the rpmfusion repository for ffmpeg. Do you agree with this?" | ||
|
||
case $? in | ||
0) | ||
echo Install Fedora Dependencies | ||
echo Add rpmfusion repository for ffmpeg | ||
dnf install -y https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm | ||
echo Install dev tools and dependencies | ||
dnf install -y cmake gcc-c++ vala pkgconfig gtk3-devel clutter-devel clutter-gtk-devel clutter-gst3-devel youtube-dl ffmpeg | ||
;; | ||
1) | ||
zenity --info --width 500\ | ||
--text="Unfortunately, it is not possible for me to work like this." | ||
exit 0 | ||
;; | ||
-1) | ||
zenity --info --width 500\ | ||
--text="Oops. This should not happen." | ||
exit 0 | ||
;; | ||
esac | ||
fi | ||
|
||
|
||
# Clone and Install animated-wallpaper | ||
echo 'Clone animated-wallpaper from github. (https://github.com/Ninlives/animated-wallpaper)' | ||
|
||
git clone https://github.com/Ninlives/animated-wallpaper | ||
cd animated-wallpaper | ||
cmake . && make && make install | ||
cd .. | ||
rm -rf animated-wallpaper | ||
|
||
# Clone and Install animated_wallpaper_helper | ||
|
||
cp -r awp /usr/local/share/ | ||
cp awp.desktop /usr/share/applications/ | ||
chmod +x /usr/local/share/awp/awp.sh | ||
chmod +x /usr/local/share/awp/awp-autostart.sh | ||
|
||
fi | ||
|