You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
807 B

#!/bin/bash
wallpaperSource="https://git.keydev.me/kerem/wallpaper"
intro()
{
graphics_install_prompt "Wallpapers will be installed"
graphics_install_prompt "Source $wallpaperSource"
}
outro()
{
graphics_install_prompt "Wallpaper installation complete"
cd $MAIN_DIR
}
install_wallpaper()
{
${pckgmngr_list[$OS_NO]} feh
intro
if [[ -d "$WALLPAPERS_DIR/wallpaper" ]]
then
graphics_comment "Diectory $WALLPAPERS_DIR/wallpaper Exists"
graphics_input_prompt "Do you want to replace it ? (y/N)"
read wpAnswer
if [[ "$wpAnswer" == "y" ]]
then
graphics_comment "Diectory $WALLPAPERS_DIR/wallpaper Will be deleted"
sudo rm -r $WALLPAPERS_DIR/wallpaper
cd $WALLPAPERS_DIR
git clone $wallpaperSource
fi
else
cd $WALLPAPERS_DIR
git clone $wallpaperSource
fi
outro
}