-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwinfetch.ps1
90 lines (76 loc) · 1.88 KB
/
winfetch.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# ===== WINFETCH CONFIGURATION =====
# $image = "~/winfetch.png"
# $noimage = $true
# Display image using ASCII characters
# $ascii = $true
# Set the version of Windows to derive the logo from.
# $logo = "Windows 10"
# Specify width for image/logo
# $imgwidth = 40
# Make the logo blink
# $blink = $true
# Display all built-in info segments.
# $all = $true
# Add a custom info line
# function info_custom_time {
# return @{
# title = "Time"
# content = (Get-Date)
# }
# }
# Configure which disks are shown
# $ShowDisks = @("C:", "D:")
# Show all available disks
$ShowDisks = @("*")
# Configure which package managers are shown
# disabling unused ones will improve speed
# $ShowPkgs = @("winget", "scoop", "choco")
# Use the following option to specify custom package managers.
# Create a function with that name as suffix, and which returns
# the number of packages. Two examples are shown here:
# $CustomPkgs = @("cargo", "just-install")
# function info_pkg_cargo {
# return (cargo install --list | Where-Object {$_ -like "*:" }).Length
# }
# function info_pkg_just-install {
# return (just-install list).Length
# }
# Configure how to show info for levels
# Default is for text only.
# 'bar' is for bar only.
# 'textbar' is for text + bar.
# 'bartext' is for bar + text.
$cpustyle = 'textbar'
$memorystyle = 'textbar'
$diskstyle = 'textbar'
$batterystyle = 'textbar'
# Remove the '#' from any of the lines in
# the following to **enable** their output.
@(
"title"
"dashes"
"os"
"computer"
"kernel"
"motherboard"
# "custom_time" # use custom info line
"uptime"
# "ps_pkgs" # takes some time
"pkgs"
"pwsh"
"resolution"
"terminal"
# "theme"
"cpu"
"gpu"
# "cpu_usage" # takes some time
"memory"
"disk"
"battery"
# "locale"
# "weather"
"local_ip"
"public_ip"
"blank"
"colorbar"
)