From a1162d0e571c9f0dc697c806fd5491fe3c3d1b97 Mon Sep 17 00:00:00 2001 From: lelgenio Date: Wed, 8 Dec 2021 00:06:42 -0300 Subject: [PATCH] theme: add orchis theme --- config.yaml | 5 ++++- dotfiles/scripts/_make_theme | 28 +++++++++++++++++++++------- 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/config.yaml b/config.yaml index 6140306..5a21582 100644 --- a/config.yaml +++ b/config.yaml @@ -163,7 +163,10 @@ profiles: kvantum_theme: "Materia{{@@ color.type.capitalize() @@}}" # icon_theme: "Mint-Y-{{@@ 'Dark' if color.type == 'dark' else 'Darker' @@}}-{{@@ accent_color_name.capitalize() @@}}" icon_theme: "Papirus-{{@@ color.type.capitalize() @@}}" - cursor_theme: "capitaine-cursors" + cursor_theme: "Breeze_Obsidian" + # cursor_theme: "Breeze_Snow" + # cursor_theme: "capitaine-cursors" + dotfiles: - ALL include: diff --git a/dotfiles/scripts/_make_theme b/dotfiles/scripts/_make_theme index 358926a..61d06b5 100755 --- a/dotfiles/scripts/_make_theme +++ b/dotfiles/scripts/_make_theme @@ -1,6 +1,6 @@ #!/bin/sh -{%@@ if 'papirus' in "{{@@ icon_theme @@}}".lower() @@%} +{%@@ if 'papirus' in icon_theme.lower() @@%} # Papirus Icon Theme { papirus-folders -l | grep "[^>] {{@@ accent_color_name @@}}"&& @@ -12,20 +12,20 @@ } & {%@@ endif @@%} -{%@@ if 'materia' in "{{@@ gtk_theme @@}}".lower() @@%} +{%@@ if 'materia' in gtk_theme.lower() @@%} # Materia GTK Theme -src_path="$HOME/.cache/materia-theme" +TMPDIR="$HOME/.cache/materia-theme" theme_name="{{@@ gtk_theme @@}}" -dst_path="${HOME}/.themes" +dst_path="$HOME/.themes" -test -d "$src_path" || +test -d "$TMPDIR" || git clone\ "https://github.com/nana-4/materia-theme"\ - "$src_path" + "$TMPDIR" -cd "$src_path" +cd "$TMPDIR" # SEL = accent # BG = header-bar @@ -66,3 +66,17 @@ mkdir -p "${dst_path}/${theme_name}" } &> /dev/null & {%@@ endif @@%} + +{%@@ if 'Orchis' in gtk_theme.lower() @@%} + TMPDIR="$HOME/.cache/share/orchis" + + mkdir -p "$TMPDIR" && cd "$TMPDIR" + + test -d .git && + git pull || + git clone "https://github.com/vinceliuice/Orchis-theme" "$TMPDIR" + + ./install.sh \ + --theme "{{@@ accent_color_name.lower() @@}}" \ + --tweaks "solid" --tweaks "compact" +{%@@ endif @@%}