# Setup script for vinceliuice/Orchis-theme on Windows (PowerShell), 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: powershell -ExecutionPolicy Bypass -File .\setup.ps1 $ErrorActionPreference = "Stop" function Write-Step($t) { Write-Host "`n==> $t" -ForegroundColor Cyan } # Windows ships a python that only opens the Microsoft Store; it doesn't count. function Have($c) { $cmd = Get-Command $c -ErrorAction SilentlyContinue; [bool]$cmd -and $cmd.Source -notlike '*\WindowsApps\*' } # New installs change PATH; pick it up without opening a new window. function Update-Path { $env:Path = [Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [Environment]::GetEnvironmentVariable("Path", "User") } # Stop when a program fails, like bash's set -e. Dot-sourced, so cd and venv activation carry on to the next step. function Invoke-Step([scriptblock]$Block) { $global:LASTEXITCODE = 0; . $Block; if ($LASTEXITCODE) { throw "Failed with exit code $LASTEXITCODE" } } Write-Step '1/2 Clone the repository' if (-not (Test-Path 'Orchis-theme')) { Invoke-Step { git clone https://github.com/vinceliuice/Orchis-theme.git } } Set-Location 'Orchis-theme' Write-Step '2/2 Follow the README: Installation' # Run these in Git Bash (installed with Git) or WSL — not PowerShell. Do the README instructions above first. # (needs Git Bash or WSL on Windows) ./install.sh Invoke-Step { OPTIONS: } Invoke-Step { -d, --dest DIR Specify destination directory (Default: $HOME/.themes) } Invoke-Step { -n, --name NAME Specify theme name (Default: Orchis) } Invoke-Step { -t, --theme VARIANT Specify theme color variant(s) [default|purple|pink|red|orange|yellow|green|teal|grey|all] (Default: blue) } Invoke-Step { -c, --color VARIANT Specify color variant(s) [standard|light|dark] (Default: All variants)s) } Invoke-Step { -s, --size VARIANT Specify size variant [standard|compact] (Default: All variants) } Invoke-Step { -i, --icon VARIANT Specify icon variant(s) for shell panel activities button } Invoke-Step { [default|apple|simple|gnome|ubuntu|arch|manjaro|fedora|debian|void|opensuse|popos|mxlinux|zorin|endeavouros|tux|nixos|gentoo|budgie|solus|kali] } Invoke-Step { (Default: ChromeOS style) } Invoke-Step { -l, --libadwaita Link installed Orchis gtk-4.0 theme to config folder for all libadwaita app use Orchis theme } Invoke-Step { -f, --fixed Fixed accent(blue) color for gnome-shell >= 47 libadwaita theme } Invoke-Step { --tweaks Specify versions for tweaks [solid|compact|black|primary|macos|submenu|(nord/dracula)] (Options can mix) } Invoke-Step { 1. solid No transparency panel variant } Invoke-Step { 2. compact No floating panel variant } Invoke-Step { 3. black Full black variant } Invoke-Step { 4. primary Change radio icon checked color to primary theme color (Default is Green) } Invoke-Step { 5. macos Change window buttons to macOS style } Invoke-Step { 6. submenu Set normal submenus color contrast (dark submenu style on dark version) } Invoke-Step { 7. [nord|dracula] Nord/dracula colorscheme themes (nord and dracula can not mix use!) } Invoke-Step { 8. dock Fix style for 'dash-to-dock' or 'ubuntu-dock' extension } Invoke-Step { --round Change theme round corner border-radius [Input the px value you want] (Suggested: 2px < value < 16px) } Invoke-Step { 1. 3px } Invoke-Step { 2. 4px } Invoke-Step { 3. 5px } Invoke-Step { ... } Invoke-Step { 13. 15px } Invoke-Step { --shell install gnome-shell version [38|40|42|44|46] (Without this option script will detect shell version and install the right theme) } Invoke-Step { 1. 38 Gnome-shell version <= 38.0 } Invoke-Step { 2. 40 Gnome-shell version = 40.0 } Invoke-Step { 3. 42 Gnome-shell version = 42.0 } Invoke-Step { 4. 44 Gnome-shell version = 44.0 } Invoke-Step { 5. 46 Gnome-shell version = 46.0 } Invoke-Step { 6. 47 Gnome-shell version = 47.0 } Invoke-Step { 7. 48 Gnome-shell version = 48.0 } Invoke-Step { -r, --remove, } Invoke-Step { -u, --uninstall Uninstall/Remove installed themes } Invoke-Step { -h, --help Show help } Write-Host 'Set up vinceliuice/Orchis-theme.' Write-Host 'Manual: https://gitmanual.com/vinceliuice/Orchis-theme'