Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Makefile for easier installation / uninstallation on KDE #242

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 38 additions & 5 deletions INSTALL.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
### [GTK](https://www.gtk.org/)
## [GTK](https://www.gtk.org/)

#### Install manually
### Install manually

Download using the [GitHub .zip download](https://github.com/dracula/gtk/archive/master.zip) option and extract the `.zip` file to the themes directory i.e. `/usr/share/themes/` or `~/.themes/` (create it if necessary).

#### Activating theme
### Activating theme

To activate the theme in Gnome, run the following commands in Terminal:

Expand All @@ -15,13 +15,46 @@ gsettings set org.gnome.desktop.wm.preferences theme "Dracula"

or Change via distribution specific tweak tool.


## KDE

### Install manually
Pull the source code using git (or alternatively [Download the Latest ZIP File](https://github.com/dracula/gtk/archive/refs/heads/master.zip)):

```bash
git clone https://github.com/dracula/gtk.git
```

In a terminal, enter the directory containing the source code and run the `install` make target with the `PLATFORM` variable set to `KDE`:

```bash
cd gtk
make install PLATFORM=KDE
```

After installation is complete, open the appearance settings and choose the Dracula theme in the `Global Theme` section.

### Uninstall manually
To uninstall the manually installed KDE theme, pull the source code using git (or alternatively [Download the Latest ZIP File](https://github.com/dracula/gtk/archive/refs/heads/master.zip)):

```bash
git clone https://github.com/dracula/gtk.git
```

In a terminal, enter the directory containing the source code and run the `clean` make target

```bash
cd gtk
make clean
```

## Icon Theme (optional)

#### Install manually
### Install manually

Download using the [GitHub .zip download](https://github.com/dracula/gtk/files/5214870/Dracula.zip) option and extract the `.zip` file to the icons directory i.e. `/usr/share/icons/` or `~/.icons/` (create it if necessary).

#### Activating icon theme
### Activating icon theme

To activate the theme in Gnome, run the following commands in Terminal:

Expand Down
48 changes: 48 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
clean:
@echo "* Removing Plasma theme..."
rm -rf ~/.local/share/plasma/desktoptheme/Dracula
rm -rf ~/.local/share/plasma/desktoptheme/Dracula-Solid
rm -rf ~/.local/share/plasma/look-and-feel/Dracula

@echo "\n* Removing Aurorae theme..."
rm -rf ~/.local/share/aurorae/themes/Dracula

@echo "\n* Removing color schemes..."
rm -f ~/.local/share/color-schemes/Dracula.colors
rm -f ~/.local/share/color-schemes/DraculaPurple.colors

@echo "\n* Removing cursors..."
rm -rf ~/.icons/Dracula-cursors

@echo "\n* Removing SDDM theme (requires root)..."
sudo rm -rf /usr/share/sddm/themes/Dracula

install:
ifeq ($(filter $(PLATFORM),kde KDE),)
@echo "Exiting: only KDE is currently supported by the Makefile"
@exit 1
endif
@echo "* Making required paths (requires root)..."
mkdir -p ~/.local/share/plasma/desktoptheme
mkdir -p ~/.local/share/plasma/look-and-feel
mkdir -p ~/.local/share/aurorae/themes
mkdir -p ~/.local/share/color-schemes
mkdir -p ~/.icons
sudo mkdir -p /usr/share/sddm/themes

@echo "\n* Installing Plasma theme..."
cp -r kde/plasma/desktoptheme/* ~/.local/share/plasma/desktoptheme/
cp -r kde/plasma/look-and-feel/* ~/.local/share/plasma/look-and-feel/

@echo "\n* Installing Aurorae theme..."
cp -r kde/aurorae/Dracula ~/.local/share/aurorae/themes/

@echo "\n* Installing color schemes..."
cp -r kde/color-schemes/* ~/.local/share/color-schemes/

@echo "\n* Installing cursors..."
cp -r kde/cursors/Dracula-cursors ~/.icons/

@echo "\n* Installing SDDM theme (requires root)..."
sudo cp -r kde/sddm/Dracula /usr/share/sddm/themes/