Skip to content

This bash script helps to directly unzip the .tar.xz and .tar.gz files and places them in themes or icons folder accordingly. Also helps delete already existing themes and icons.

Notifications You must be signed in to change notification settings

yashkathe/script-for-adding-themes-and-icons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

Bash script for adding themes and icons

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

Working

The script consists of 5 main functions

  1. 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

  1. 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

Download the script

  wget https://raw.githubusercontent.com/yashkathe/script-for-adding-themes-and-icons/master/addtheme.sh

Running this script

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

Screenshots

1 . Run the script with sudo
Step 1

2 . Select the respective file.tar.xz
Step 2

3 . Select where you want to add the unzipped folder
Step 3

Feedback

If you have any feedback, please reach out to me at katheyash@yahoo.com

About

This bash script helps to directly unzip the .tar.xz and .tar.gz files and places them in themes or icons folder accordingly. Also helps delete already existing themes and icons.

Topics

Resources

Stars

Watchers

Forks

Languages