#!/usr/bin/env bash # Setup script for vinceliuice/Orchis-theme on macOS, from https://gitmanual.com/vinceliuice/Orchis-theme # Read it before you run it: the commands come from the repo's own README and files. # Run: bash setup.sh set -eo pipefail trap 'echo "Setup stopped at the step above. Steps and fixes: https://gitmanual.com/vinceliuice/Orchis-theme" >&2' ERR step() { printf '\n\033[1m==> %s\033[0m\n' "$1"; } have() { command -v "$1" >/dev/null 2>&1; } # Installers put programs here; make them usable right away. export PATH="$HOME/.local/share/mise/shims:$HOME/.cargo/bin:$HOME/.local/bin:$HOME/.deno/bin:$HOME/.bun/bin:$PATH" # nvm is a shell function, so load it into this script when it's installed. export NVM_DIR="${NVM_DIR:-$HOME/.nvm}" load_nvm() { [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" || { have brew && [ -s "$(brew --prefix nvm 2>/dev/null)/nvm.sh" ] && mkdir -p "$NVM_DIR" && . "$(brew --prefix nvm)/nvm.sh"; }; } have_nvm() { load_nvm >/dev/null 2>&1; type nvm >/dev/null 2>&1; } step '1/2 Clone the repository' [ -d 'Orchis-theme' ] || git clone https://github.com/vinceliuice/Orchis-theme.git cd 'Orchis-theme' step '2/2 Follow the README: Installation' # In the maintainers' order. Do the README instructions above first — they cover steps outside the terminal. ./install.sh OPTIONS: -d, --dest DIR Specify destination directory (Default: $HOME/.themes) -n, --name NAME Specify theme name (Default: Orchis) -t, --theme VARIANT Specify theme color variant(s) [default|purple|pink|red|orange|yellow|green|teal|grey|all] (Default: blue) -c, --color VARIANT Specify color variant(s) [standard|light|dark] (Default: All variants)s) -s, --size VARIANT Specify size variant [standard|compact] (Default: All variants) -i, --icon VARIANT Specify icon variant(s) for shell panel activities button [default|apple|simple|gnome|ubuntu|arch|manjaro|fedora|debian|void|opensuse|popos|mxlinux|zorin|endeavouros|tux|nixos|gentoo|budgie|solus|kali] (Default: ChromeOS style) -l, --libadwaita Link installed Orchis gtk-4.0 theme to config folder for all libadwaita app use Orchis theme -f, --fixed Fixed accent(blue) color for gnome-shell >= 47 libadwaita theme --tweaks Specify versions for tweaks [solid|compact|black|primary|macos|submenu|(nord/dracula)] (Options can mix) 1. solid No transparency panel variant 2. compact No floating panel variant 3. black Full black variant 4. primary Change radio icon checked color to primary theme color (Default is Green) 5. macos Change window buttons to macOS style 6. submenu Set normal submenus color contrast (dark submenu style on dark version) 7. [nord|dracula] Nord/dracula colorscheme themes (nord and dracula can not mix use!) 8. dock Fix style for 'dash-to-dock' or 'ubuntu-dock' extension --round Change theme round corner border-radius [Input the px value you want] (Suggested: 2px < value < 16px) 1. 3px 2. 4px 3. 5px ... 13. 15px --shell install gnome-shell version [38|40|42|44|46] (Without this option script will detect shell version and install the right theme) 1. 38 Gnome-shell version <= 38.0 2. 40 Gnome-shell version = 40.0 3. 42 Gnome-shell version = 42.0 4. 44 Gnome-shell version = 44.0 5. 46 Gnome-shell version = 46.0 6. 47 Gnome-shell version = 47.0 7. 48 Gnome-shell version = 48.0 -r, --remove, -u, --uninstall Uninstall/Remove installed themes -h, --help Show help echo 'Set up vinceliuice/Orchis-theme.' echo 'Manual: https://gitmanual.com/vinceliuice/Orchis-theme'