GithubHelp home page GithubHelp logo

yashkathe / script-for-adding-themes-and-icons Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 218 KB

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.

Shell 100.00%
gnome-icons gnome-themes tar-gz tar-xz unzip-script linux

script-for-adding-themes-and-icons's Introduction

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 [email protected]

script-for-adding-themes-and-icons's People

Contributors

yashkathe avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.