From d865ae5da9f04cfcd647d557be536f829eb360fa Mon Sep 17 00:00:00 2001 From: Muhammad Rivan Date: Mon, 7 Jun 2021 18:31:45 +0700 Subject: [PATCH] Rearrange files --- AUTHORS => .github/AUTHORS | 0 CODE_OF_CONDUCT.md => .github/CODE_OF_CONDUCT.md | 0 CONTRIBUTING.md => .github/CONTRIBUTING.md | 0 SECURITY.md => .github/SECURITY.md | 1 + README.md | 4 ++-- lib-install.sh | 16 ++++++++++++---- 6 files changed, 15 insertions(+), 6 deletions(-) rename AUTHORS => .github/AUTHORS (100%) rename CODE_OF_CONDUCT.md => .github/CODE_OF_CONDUCT.md (100%) rename CONTRIBUTING.md => .github/CONTRIBUTING.md (100%) rename SECURITY.md => .github/SECURITY.md (94%) diff --git a/AUTHORS b/.github/AUTHORS similarity index 100% rename from AUTHORS rename to .github/AUTHORS diff --git a/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md similarity index 100% rename from CODE_OF_CONDUCT.md rename to .github/CODE_OF_CONDUCT.md diff --git a/CONTRIBUTING.md b/.github/CONTRIBUTING.md similarity index 100% rename from CONTRIBUTING.md rename to .github/CONTRIBUTING.md diff --git a/SECURITY.md b/.github/SECURITY.md similarity index 94% rename from SECURITY.md rename to .github/SECURITY.md index cb4df10..c48059e 100644 --- a/SECURITY.md +++ b/.github/SECURITY.md @@ -11,3 +11,4 @@ ## Reporting a Vulnerability Report a security vulnerability to https://github.com/vinceliuice/WhiteSur-gtk-theme/issues +with a blank template diff --git a/README.md b/README.md index 075c407..ac38144 100644 --- a/README.md +++ b/README.md @@ -42,10 +42,10 @@ Don't worry, WhiteSur installer already provides all of those dependencies. ## Quick install -### Use the stable package +### Using a stable package Choose a [stable package](stable-release) and unzip it to the user theme folder `~/.themes`. -### Compile from source +### Installing from source Run `./install.sh` to install the default WhiteSur GTK theme pack which includes GNOME Shell (Pantheon), Cinnamon, XFWM (XFCE), Metacity, and Plank themes. diff --git a/lib-install.sh b/lib-install.sh index 75f79c4..1757bfa 100755 --- a/lib-install.sh +++ b/lib-install.sh @@ -47,7 +47,9 @@ install_theme_deps() { elif has_command xbps-install; then # Rolling release # 'xbps-install' requires 'xbps' to be always up-to-date - rootify xbps-install -Syu xbps sassc glib-devel gtk-engine-murrine libxml2 + # 'libxml2' is already included here, and it's gonna broke the + # installation if you add it + rootify xbps-install -Syu xbps sassc glib-devel gtk-engine-murrine # System upgrading can't remove the old kernel files by it self. It eats the # boot partition and may cause kernel panic when there is no enough space rootify vkpurge rm all @@ -80,7 +82,9 @@ install_gdm_deps() { elif has_command xbps-install; then # Rolling release # 'xbps-install' requires 'xbps' to be always up-to-date - rootify xbps-install -Syu xbps glib-devel libxml2 sassc + # 'libxml2' is already included here, and it's gonna broke the + # installation if you add it + rootify xbps-install -Syu xbps glib-devel sassc # System upgrading can't remove the old kernel files by it self. It eats the # boot partition and may cause kernel panic when there is no enough space rootify vkpurge rm all @@ -681,6 +685,8 @@ customize_theme() { # values are taken from _variables.scss show_panel_opacity_dialog() { + install_dialog_deps + if [[ -x /usr/bin/dialog ]]; then tui=$(dialog --backtitle "${THEME_NAME} gtk theme installer" \ --radiolist "Choose your panel background opacity @@ -704,6 +710,8 @@ show_panel_opacity_dialog() { } show_sidebar_size_dialog() { + install_dialog_deps + if [[ -x /usr/bin/dialog ]]; then tui=$(dialog --backtitle "${THEME_NAME} gtk theme installer" \ --radiolist "Choose your Nautilus sidebar size (default is 200px width):" 15 40 5 \ @@ -726,6 +734,8 @@ show_sidebar_size_dialog() { } show_nautilus_style_dialog() { + install_dialog_deps + if [[ -x /usr/bin/dialog ]]; then tui=$(dialog --backtitle "${THEME_NAME} gtk theme installer" \ --radiolist "Choose your Nautilus style (default is BigSur-like style):" 15 40 5 \ @@ -746,8 +756,6 @@ show_nautilus_style_dialog() { } show_needed_dialogs() { - if [[ "${need_dialog[@]}" =~ "true" ]]; then install_dialog_deps; fi - if [[ "${need_dialog["-p"]}" == "true" ]]; then show_panel_opacity_dialog; fi if [[ "${need_dialog["-s"]}" == "true" ]]; then show_sidebar_size_dialog; fi if [[ "${need_dialog["-N"]}" == "true" ]]; then show_nautilus_style_dialog; fi