mirror of
https://github.com/lptstr/winfetch.git
synced 2026-08-28 10:16:50 -05:00
Add theme info
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
"pwsh"
|
||||
"resolution"
|
||||
"terminal"
|
||||
# "theme"
|
||||
"cpu"
|
||||
"gpu"
|
||||
# "process" # takes some time
|
||||
|
||||
@@ -129,6 +129,7 @@ $baseConfig = @(
|
||||
"pkgs"
|
||||
"pwsh"
|
||||
"terminal"
|
||||
"theme"
|
||||
"cpu"
|
||||
"gpu"
|
||||
"process"
|
||||
@@ -409,6 +410,18 @@ function info_terminal {
|
||||
}
|
||||
|
||||
|
||||
# ===== THEME =====
|
||||
function info_theme {
|
||||
$themeinfo = Get-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize' -Name SystemUsesLightTheme, AppsUseLightTheme
|
||||
$systheme = if ($themeinfo.SystemUsesLightTheme) { "Light" } else { "Dark" }
|
||||
$apptheme = if ($themeinfo.AppsUseLightTheme) { "Light" } else { "Dark" }
|
||||
return @{
|
||||
title = "Theme"
|
||||
content = "System - $systheme, Apps - $apptheme"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# ===== CPU/GPU =====
|
||||
function info_cpu {
|
||||
return @{
|
||||
|
||||
Reference in New Issue
Block a user