mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-11-14 15:13:49 +00:00
detecting system theme for alacritty config from within PowerShell
This commit is contained in:
parent
b85fb033f8
commit
04015fbeb9
@ -43,3 +43,14 @@ if ($settings.proxyEnable -and (!$env:http_proxy))
|
||||
} elseif ((!$settings.proxyEnable) -and $env:http_proxy)
|
||||
{ UnsetProxy;
|
||||
}
|
||||
|
||||
|
||||
# Get theme personalization settings
|
||||
$settings = Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize'
|
||||
|
||||
# Read the content of the Alacritty config file
|
||||
$alacritty = "$env:APPDATA\alacritty\alacritty.toml"
|
||||
$content = Get-Content -Path $alacritty
|
||||
|
||||
# Determine current theme
|
||||
$theme = $settings.AppsUseLightTheme
|
||||
|
Loading…
Reference in New Issue
Block a user