Lifailon / oh-my-posh-themes-performance

Themes for oh-my-posh displaying system performance sensors

Home Page:https://www.nuget.org/packages/themes-performance

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Themes performance for oh-my-posh

GitHub Release NuGet Version GitHub top language

Themes for oh-my-posh displaying system performance sensors (current speed of network interfaces, CPU load and temperature, and PowerShell Core processes activity). You use the PowerShell module to update and save the theme.

Themes:

Image alt

πŸš€ Install

Install oh-my-posh package any way you like, if you haven't already done so. Example, if you are not using a package manager, like this:

Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://ohmyposh.dev/install.ps1'))

Install the module from the NuGet repository:

Install-Module themes-performance -Repository NuGet
Import-Module themes-performance

πŸ’‘ You must have a NuGet repository registered:

Register-PSRepository -Name "NuGet" -SourceLocation "https://www.nuget.org/api/v2" -InstallationPolicy Trusted

Choose a theme (theme and script is loaded directly from the GitHub repository, nothing is saved in the system):

Set-PoshTheme -Theme System-Sensors
Set-PoshTheme -Theme System-Performance
Set-PoshTheme -Theme Pwsh-Process-Performance

To save the theme to the system for offline use and set it as the default profile, use the Save parameter.

πŸ’‘ Note, this will overwrite your default profile (You can check its contents using the command: notepad $Profile).

Set-PoshTheme -Theme System-Sensors -Save
Set-PoshTheme -Theme System-Performance -Save
Set-PoshTheme -Theme Pwsh-Process-Performance -Save

System-Sensors

Get sensors from the running LibreHardwareMonitor application instance via WMI/CIM (Common Information Model).

πŸ’‘ For this theme to work, you need to have LibreHardwareMonitor installed and running.

⌚ 11:51 βŒ› 0ms πŸ“ ~   πŸ’‘ CPU: 13% (0/99) | 60Β°C (42/98) | MEM: 54% (8/15Gb) | ⬇ 0,025 Mbyte/s ⬆ 0,051 Mbyte/s
>

Displays sensors for CPU load and temperature, as well as the download and upload speed of the active network interface (if several network adapters are used, the activity of the busiest one will be displayed).

System-Performance

Get performance data directly from the system through WMI/CIM. Works noticeably slower when compared to the System-Sensors theme. No dependencies required.

⌚ 11:52 βŒ› 0ms πŸ“ ~   πŸ”‹ 100% | CPU: 6% | MEM: 54% | ⬇ 34,868 Mbyte/s ⬆ 0,499 Mbyte/s
>

Pwsh-Process-Performance

Performance of PowerShell Core processes.

⌚ 11:53 βŒ› 0ms πŸ“ ~   πŸ’‘ 00:01:24 (00:00:03) | Jobs: 0/3 (βœ…3/❌0) | WS: 130/370Mb (3) | MEM: 52% (8/15Gb)
>

πŸ’‘ Description: Running time of the currently running process pwsh (CPU time consumption of the current process) | Number of background jobs: Running/All count (Completed/Failed) | Working set of physical memory of the current process/all running processes pwsh (total number of running processes pwsh) | RAM from sysinfo (via the oh-my-posh plug-in)

πŸ“Š Example

Image alt