Skip to content

Latest commit

 

History

History
98 lines (70 loc) · 4.1 KB

README.md

File metadata and controls

98 lines (70 loc) · 4.1 KB

Windows screenFetch

License Languages Supported OS Repo Size

Windows screenFetch

Original by JulianChow94, modified in this repo.

ScreenFetch

screenFetch was originally made as a "Bash Screenshot Information Tool". Simply, it lets you display detailed information about your system in the terminal, it also comes with a ASCII logo for the detected Linux distribution.

This doesn't work on Windows natively and this project is my attempt to provide a solution that does not require obtaining a linux environment on windows.

The original can be found in KittyKatt's repository.

How is it different

The original screenfetch requires a system that supports bash so it cannot be used on windows natively! This is a small scale project that simply "mimics" the behaviour of screenFetch in windows.

Windows screenFetch is a PowerShell script, not a Bash program. Therefore, a linux-like environment such as Cygwin or MinGW is not required. This can be run natively on windows as a PowerShell script within a PowerShell or command prompt console.

Since this tool is only intended to run within a windows environment, no flags to invoke any Linux distribution ASCII art is supported.

Installation

# Add scoop bucket
scoop bucket add Scoop4kariiin https://github.com/AkariiinMKII/Scoop4kariiin

# Install
scoop install Scoop4kariiin/Windows-screenFetch
  • Via git clone

Notice that you need to install git for windows in advance.

# Go to modules folder
$UsePath = (Split-Path $PROFILE | Join-Path -ChildPath Modules); if(!(Test-Path $UsePath)) {New-Item $UsePath -Type Directory -Force | Out-Null}; Set-Location $UsePath

# Clone this repository
git clone https://github.com/AkariiinMKII/Windows-screenFetch

# Modify PS profile to enable auto-import
if (!(Test-Path $PROFILE)) {New-Item $PROFILE -Type File -Force | Out-Null}
Add-Content -Path $PROFILE -Value "Import-Module Windows-screenFetch"

Functions

screenFetch

Print system information with distribution logo.

Parameters Type Mandatory Descriptions
Distro String Specify the ASCII logo shown in left side.[1]
Help Switch Print help info.
Version Switch Print version info.

[1] Currently support the logo of Windows and macOS, please see AsciiArtGenerator for possible extensions

  • For Windows 10 logo, use win10, windows10
  • For Windows 11 logo, use win11, windows11
  • For Windows XP logo, use winxp, windowsxp, xp
  • For macOS logo, use mac, macos, osx, apple

Windows 11 logo Windows XP logo macOS logo

Troubleshooting

If you have followed the installation steps but you're getting the following error:

The file C:\<yourpath>\screenfetch.ps1 is not digitally signed.
The script will not execute on the system.

A common fix is to run the PowerShell command Set-ExecutionPolicy Unrestricted in a shell with administrative privileges.

Known issues

  • Cannot detect attached monitors. (#8)
  • "Get-CimInstance : Not supported" error. (#7)
  • Cannot get native resolution in Display area. (#3) Fixed 🥳

Contributing

Feel free to open PRs!🥳