Compare commits

..

4 Commits

@ -0,0 +1,6 @@
# How to download Wallify ?
Due to the fact that Gitea cannot take files larger than 4MB, you will just need to copy the following file via this command:
```sh
cp /home/UCA/machirat1/public/Wallify/Wallify.AppImage ~/bin/Wallify.AppImage
```

@ -1,9 +1,9 @@
**Wallify (Live Wallpaper Engine)**
=====================================
**Coming Soon..**
**How to download the graphical version**
> Wallify comes in a graphical version, with a wallpaper manager and a workshop ! (Ready for December..)
> [More information](https://codefirst.iut.uca.fr/git/mathis.chirat/Wallify/src/branch/master/DOWNLOAD.md)
**Table of Contents**
-----------------
@ -24,23 +24,19 @@ Wallify is a live wallpaper engine that allows you to set animated wallpapers on
------------
* Set animated wallpapers on your Linux desktop
* Supports various file formats (e.g., GIF, MP4, WebM)
* Supports various file formats (e.g., GIF, MP4, PNG)
* Customizable settings for animation playback
* Autostart feature to launch the wallpaper on startup
**Setup**
--------
To set up Wallify, run the `setup.sh` script in the terminal:
```bash
./setup.sh
```
Follow the prompts to select a wallpaper file and configure the settings.
With the graphical version you just need to start the AppImage and all update and setup are down automaticly.
**Usage**
-----
Once set up, the wallpaper will lauch it self at the next startup.
Once the AppImage laucnhed you just have to apply a wallpaper by import it or download it.
Wallify is configured in autostart on login by adding the `start.sh` script to your system's autostart directory.
**Troubleshooting**

@ -1,112 +0,0 @@
#!/bin/bash
# ▄█ █▄ ▄████████ ▄█ ▄█ ▄█ ▄████████ ▄██ ▄
# ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ██▄
# ███ ███ ███ ███ ███ ███ ███▌ ███ █▀ ███▄▄▄███
# ███ ███ ███ ███ ███ ███ ███▌ ▄███▄▄▄ ▀▀▀▀▀▀███
# ███ ███ ▀███████████ ███ ███ ███▌ ▀▀███▀▀▀ ▄██ ███
# ███ ███ ███ ███ ███ ███ ███ ███ ███ ███
# ███ ▄█▄ ███ ███ ███ ███▌ ▄ ███▌ ▄ ███ ███ ███ ███
# ▀███▀███▀ ███ █▀ █████▄▄██ █████▄▄██ █▀ ███ ▀█████▀
# ▀ ▀
# help()
#
# Print the help message
function help() {
echo "Usage: $0 [-h | -c | --uninstall]"
echo ""
echo "-h, --help Show this help"
echo "-c, --config Start the setup process"
echo "--uninstall Uninstall the software"
}
# uninstall()
#
# Uninstall Wallify. This function will remove the autostart file,
# the configuration file and the configuration directory.
function uninstall() {
start_time=$(date +%s%3N)
echo "Uninstalling..."
if [ -f ~/.config/autostart/wallify.sh.desktop ]; then
rm -f ~/.config/autostart/wallify.sh.desktop
else
echo "Error: ~/.config/autostart/wallify.sh.desktop does not exist."
fi
if [ -d ~/.config/Wallify ]; then
rm -rf ~/.config/Wallify
else
echo "Error: ~/.config/Wallify does not exist."
fi
echo "Done."
end_time=$(date +%s%3N)
duration=$((end_time - start_time))
echo "Uninstallation took $duration milliseconds."
}
# config()
#
# This function is used to configure Wallify. It will ask the user to select
# a wallpaper file and then create a configuration file, a start script and an
# autostart file. The configuration file will be saved in
# `~/.config/Wallify/wallpaper.conf` and will contain the path of the selected
# wallpaper. The start script will be saved in
# `~/.config/Wallify/start.sh` and will contain the command to launch the
# wallpaper with the selected options. The autostart file will be saved in
# `~/.config/autostart/wallify.sh.desktop` and will contain the command to launch
# the start script on startup.
function config() {
USER=$(whoami)
WALLPAPER_FILE=$(zenity --file-selection --title="Wallify - Select a wallpaper" --filename="" 2>/dev/null)
if [ $? -eq 0 ]; then
echo "Selected file: $WALLPAPER_FILE"
if [ -f "$WALLPAPER_FILE" ]; then
echo "+ Creating configuration directory"
mkdir -p ~/.config/Wallify
echo "+ Creating configuration file"
echo "WALLPAPER_FILE=$WALLPAPER_FILE" > ~/.config/Wallify/wallpaper.conf
echo "+ Creating start.sh script"
cat > ~/.config/Wallify/start.sh <<EOF
#!/bin/bash
user=$(whoami)
sleep 2
WALLPAPER_FILE=$(cat ~/.config/Wallify/wallpaper.conf | grep WALLPAPER_FILE | cut -d '=' -f2)
gsettings set org.gnome.desktop.background picture-uri file://$WALLPAPER_FILE
/home/UCA/machirat1/public/WallPaper/wallify -ni -fs -s -sp -st -b -nf -- mpv -wid WID --loop --no-audio $WALLPAPER_FILE &
EOF
chmod +x /home/UCA/$USER/.config/Wallify/start.sh
echo "+ Creating autostart file"
cat > ~/.config/autostart/wallify.sh.desktop <<EOF
[Desktop Entry]
Version=1.0
Type=Application
Name=Wallify
Exec=/home/UCA/$USER/.config/Wallify/start.sh
Comment=Wallify
EOF
echo "Setup complete. You can restart your session to apply the changes."
else
zenity --error --text="Selected file is not a valid file"
fi
else
zenity --error --text="No file selected"
fi
}
case "$1" in
-h|--help)
help
;;
-c|--config)
config
;;
--uninstall)
uninstall
;;
*)
help
;;
esac
Loading…
Cancel
Save