zoukankan      html  css  js  c++  java
  • 我的neofetch配置文件-显示自定义ascii图形

    neofetch的配置文件,路径在~/.config/neofetch/

    # See this wiki page for more info:
    # https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
    print_info() {
        # info title # 包含主机名和登录名,只有我自己用,也不需要,注释掉
        info underline
    
        info "OS" distro
        info "Host" model
        info "Kernel" kernel
        info "Uptime" uptime
        # info "Packages" packages # 查找所有包的数量,耗时间也没啥用,注释掉
        info "Shell" shell
        info "Resolution" resolution
        info "DE" de
        info "WM" wm
        info "WM Theme" wm_theme
        info "Theme" theme
        info "Icons" icons
        info "Terminal" term
        info "Terminal Font" term_font
        info "CPU" cpu
        info "GPU" gpu
        info "Memory" memory
    
        # info "GPU Driver" gpu_driver  # Linux/macOS only
        info "CPU Usage" cpu_usage # CPU使用情况
        info "Disk" disk  # 磁盘使用情况
        # info "Battery" battery
        # info "Font" font
        # info "Song" song
        # [[ "$player" ]] && prin "Music Player" "$player"
        # info "Local IP" local_ip
        # info "Public IP" public_ip
        # info "Users" users
        # info "Locale" locale  # This only works on glibc systems.
        # info cols
    }
    
    # 在第644行左右,配置image_source为自定义的ascii图形文件的位置
    image_source="/root/.config/neofetch/ascii-name"
    

    ascii-name文件:

    
    
        //    / /                         / /
       //___ / /  ___       __           / /            __
      / ___   / //   ) ) //   ) )       / / //   / / //   ) )
     //    / / //   / / //   / /       / / //   / / //   / /
    //    / / ((___( ( //   / /  ((___/ / ((___( ( //   / /
    
    

    生成ascii文字,可用网站:http://www.network-science.de/ascii/,有很多的字体可以选择。

  • 相关阅读:
    Java集合框架
    数字翻转
    Servlet的一些细节
    tomcat9配置https
    JavaWeb_打包web应用war
    JavaWeb_tomcat设置默认应用
    JavaWeb_增强for循环
    JavaWeb_静态导入、自动拆箱/装箱
    JavaWeb_泛型(Generic)
    54字符流中第一个不重复的字符
  • 原文地址:https://www.cnblogs.com/to-red/p/11958752.html
Copyright © 2011-2022 走看看