luankaip / neofetch-config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

自定义neofetch[个人用]

文件作用

  1. Start.bat安装scoop和netfetch
  2. 996icu.txt字符画
  3. config.conf自定义设置
  4. neofetch获取系统参数的文件(修改GPU显示的BUG)

存放位置

996icu.txtconfig.confC:%HOMEPATH%\.config\neofetch

neofetch%SCOOP%\apps\neofetch\7.1.0

文件neofetch修改内容

函数get_gpu():

get_gpu() {
    case $os in
    ...
        "Windows")
            while read -r line; do
                if [[ $(trim "$line") != *"Caption"* && $(trim "$line") != "" ]]; then # 增加if判断
                    prin "${subtitle:+${subtitle}${gpu_name}}" "$(trim "$line")"
                fi
            done < <(wmic path Win32_VideoController get caption)

            gpu=${gpu//Caption}
        ;;
    ...
}  

powershell中默认使用

pwsh -MTA -nol -noe -c "neofetch"

About


Languages

Language:Shell 99.9%Language:Batchfile 0.1%