This script directly helps to directly add themes and icons to the respective folder after you have downloaded the tar.xz file for themes and icons
The script consists of 5 main functions
- For adding themes and icons to respective folders:
-
initFunction
The starting function to check if sudo is operating it -
readFoldersFunction
Giving user option to select the folder -
getFolderPathFunction
To get the path of the folder -
extractFolderFunction
extracting the folder using tar -xf -
deleteFolderFunction
delete(user choice) the tar.xz folder as it is no longer needed
- For deleting already existing themes and icons folders with --delete option:
-
mainDeleteFunction
Check if user wants to delete icons or themes folder -
deleteTheme and deleteIcons
To delete themes and icons according to input received in first function
wget https://raw.githubusercontent.com/yashkathe/script-for-adding-themes-and-icons/master/addtheme.sh
To run this script , extract the script in the directory where the themes and icons folders are located and run the following command
sudo ./addtheme.sh
To delete already existing themes or icons, run the script with additional argument
sudo ./addtheme.sh --delete
2 . Select the respective file.tar.xz
3 . Select where you want to add the unzipped folder
If you have any feedback, please reach out to me at katheyash@yahoo.com