Add theme info

This commit is contained in:
Rashil Gandhi
2021-02-12 19:32:26 +05:30
parent abe2ce1653
commit 2edb7e256a
2 changed files with 14 additions and 0 deletions
+1
View File
@@ -43,6 +43,7 @@
"pwsh"
"resolution"
"terminal"
# "theme"
"cpu"
"gpu"
# "process" # takes some time
+13
View File
@@ -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 @{