1. #!/usr/bin/env bash
  2. #
  3. # Neofetch config file
  4. # https://github.com/dylanaraps/neofetch
  5.  
  6.  
  7. # See this wiki page for more info:
  8. # https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
  9. print_info() {
  10.     info title
  11.     info underline
  12.  
  13.     info "OS" distro
  14.     info "Model" model
  15.     info "Kernel" kernel
  16.     info "Uptime" uptime
  17.     info "Packages" packages
  18.     info "Shell" shell
  19.     info "Resolution" resolution
  20.     info "DE" de
  21.     info "WM" wm
  22.     info "WM Theme" wm_theme
  23.     info "Theme" theme
  24.     info "Icons" icons
  25.     info "Terminal" term
  26.     info "Terminal Font" term_font
  27.     info "CPU" cpu
  28.     info "GPU" gpu
  29.     info "Memory" memory
  30.  
  31.     info "CPU Usage" cpu_usage
  32.     info "Disk" disk
  33.     info "Battery" battery
  34.     info "Font" font
  35.     info "Song" song
  36.     info "Local IP" local_ip
  37.     #info "Public IP" public_ip
  38.     info "Users" users
  39.     info "Install Date" install_date
  40.  
  41.     info line_break
  42.     info cols
  43.     info line_break
  44. }
  45.  
  46.  
  47. # Kernel
  48.  
  49.  
  50. # Shorten the output of the kernel function.
  51. #
  52. # Default:  'on'
  53. # Values:   'on', 'off'
  54. # Flag:     --kernel_shorthand
  55. # Supports: Everything except *BSDs (except PacBSD and PC-BSD)
  56. #
  57. # Example:
  58. # on:  '4.8.9-1-ARCH'
  59. # off: 'Linux 4.8.9-1-ARCH'
  60. kernel_shorthand="on"
  61.  
  62.  
  63. # Distro
  64.  
  65.  
  66. # Shorten the output of the distro function
  67. #
  68. # Default:  'off'
  69. # Values:   'on', 'off', 'tiny'
  70. # Flag:     --distro_shorthand
  71. # Supports: Everything except Windows and Haiku
  72. distro_shorthand="on"
  73.  
  74. # Show/Hide OS Architecture.
  75. # Show 'x86_64', 'x86' and etc in 'Distro:' output.
  76. #
  77. # Default: 'on'
  78. # Values:  'on', 'off'
  79. # Flag:    --os_arch
  80. #
  81. # Example:
  82. # on:  'Arch Linux x86_64'
  83. # off: 'Arch Linux'
  84. os_arch="on"
  85.  
  86.  
  87. # Uptime
  88.  
  89.  
  90. # Shorten the output of the uptime function
  91. #
  92. # Default: 'on'
  93. # Values:  'on', 'off', 'tiny'
  94. # Flag:    --uptime_shorthand
  95. #
  96. # Example:
  97. # on:   '2 days, 10 hours, 3 mins'
  98. # off:  '2 days, 10 hours, 3 minutes'
  99. # tiny: '2d 10h 3m'
  100. uptime_shorthand="on"
  101.  
  102.  
  103. # Shell
  104.  
  105.  
  106. # Show the path to $SHELL
  107. #
  108. # Default: 'off'
  109. # Values:  'on', 'off'
  110. # Flag:    --shell_path
  111. #
  112. # Example:
  113. # on:  '/bin/bash'
  114. # off: 'bash'
  115. shell_path="on"
  116.  
  117. # Show $SHELL version
  118. #
  119. # Default: 'on'
  120. # Values:  'on', 'off'
  121. # Flag:    --shell_version
  122. #
  123. # Example:
  124. # on:  'bash 4.4.5'
  125. # off: 'bash'
  126. shell_version="on"
  127.  
  128.  
  129. # CPU
  130.  
  131.  
  132. # CPU speed type
  133. #
  134. # Default: 'bios_limit'
  135. # Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'.
  136. # Flag:    --speed_type
  137. # Supports: Linux with 'cpufreq'
  138. # NOTE: Any file in '/sys/devices/system/cpu/cpu0/cpufreq' can be used as a value.
  139. speed_type="bios_limit"
  140.  
  141. # Shorten the output of the CPU function
  142. #
  143. # Default: 'off'
  144. # Values:  'on', 'off', 'tiny', 'name', 'speed'
  145. # Flag:    --cpu_shorthand
  146. #
  147. # Example:
  148. # on:    'i7-6500U (4) @ 3.1GHz'
  149. # off:   'Intel i7-6500U (4) @ 3.1GHz'
  150. # tiny:  'i7-6500U (4)'
  151. # name:  'Intel i7-6500U (4)'
  152. # speed: '3.1GHz'
  153. cpu_shorthand="off"
  154.  
  155. # CPU Speed
  156. # Hide/Show CPU speed.
  157. #
  158. # Default: 'on'
  159. # Values:  'on', 'off'
  160. # Flag:    --cpu_speed
  161. #
  162. # Example:
  163. # on:  'Intel i7-6500U (4) @ 3.1GHz'
  164. # off: 'Intel i7-6500U (4)'
  165. cpu_speed="on"
  166.  
  167. # CPU Cores
  168. # Display CPU cores in output
  169. #
  170. # Default: 'logical'
  171. # Values:  'logical', 'physical', 'off'
  172. # Flag:    --cpu_cores
  173. # Support: 'physical' doesn't work on BSD.
  174. #
  175. # Example:
  176. # logical:  'Intel i7-6500U (4) @ 3.1GHz' (All virtual cores)
  177. # physical: 'Intel i7-6500U (2) @ 3.1GHz' (All physical cores)
  178. # off:      'Intel i7-6500U @ 3.1GHz'
  179. cpu_cores="logical"
  180.  
  181. # CPU Temperature
  182. # Hide/Show CPU temperature.
  183. # Note the temperature is added to the regular CPU function.
  184. #
  185. # Default: 'off'
  186. # Values:  'C', 'F', 'off'
  187. # Flag:    --cpu_temp
  188. # Supports: Linux
  189. #
  190. # Example:
  191. # C:   'Intel i7-6500U (4) @ 3.1GHz [27.2°C]'
  192. # F:   'Intel i7-6500U (4) @ 3.1GHz [82.0°F]'
  193. # off: 'Intel i7-6500U (4) @ 3.1GHz'
  194. cpu_temp="on"
  195.  
  196.  
  197. # GPU
  198.  
  199.  
  200. # Enable/Disable GPU Brand
  201. #
  202. # Default: 'on'
  203. # Values:  'on', 'off'
  204. # Flag:    --gpu_brand
  205. #
  206. # Example:
  207. # on:  'AMD HD 7950'
  208. # off: 'HD 7950'
  209. gpu_brand="on"
  210.  
  211. # Which GPU to display
  212. #
  213. # Default: 'all'
  214. # Values:  'all', 'dedicated', 'integrated'
  215. # Flag:    --gpu_type
  216. # Supports: Linux
  217. #
  218. # Example:
  219. # all:
  220. #   GPU1: AMD HD 7950
  221. #   GPU2: Intel Integrated Graphics
  222. #
  223. # dedicated:
  224. #   GPU1: AMD HD 7950
  225. #
  226. # integrated:
  227. #   GPU1: Intel Integrated Graphics
  228. gpu_type="all"
  229.  
  230.  
  231. # Resolution
  232.  
  233.  
  234. # Display refresh rate next to each monitor
  235. # Default: 'off'
  236. # Values:  'on', 'off'
  237. # Flag:    --refresh_rate
  238. # Supports: Doesn't work on Windows.
  239. #
  240. # Example:
  241. # on:  '1920x1080 @ 60Hz'
  242. # off: '1920x1080'
  243. refresh_rate="on"
  244.  
  245.  
  246. # Gtk Theme / Icons / Font
  247.  
  248.  
  249. # Shorten output of GTK Theme / Icons / Font
  250. #
  251. # Default: 'off'
  252. # Values:  'on', 'off'
  253. # Flag:    --gtk_shorthand
  254. #
  255. # Example:
  256. # on:  'Numix, Adwaita'
  257. # off: 'Numix [GTK2], Adwaita [GTK3]'
  258. gtk_shorthand="off"
  259.  
  260.  
  261. # Enable/Disable gtk2 Theme / Icons / Font
  262. #
  263. # Default: 'on'
  264. # Values:  'on', 'off'
  265. # Flag:    --gtk2
  266. #
  267. # Example:
  268. # on:  'Numix [GTK2], Adwaita [GTK3]'
  269. # off: 'Adwaita [GTK3]'
  270. gtk2="on"
  271.  
  272. # Enable/Disable gtk3 Theme / Icons / Font
  273. #
  274. # Default: 'on'
  275. # Values:  'on', 'off'
  276. # Flag:    --gtk3
  277. #
  278. # Example:
  279. # on:  'Numix [GTK2], Adwaita [GTK3]'
  280. # off: 'Numix [GTK2]'
  281. gtk3="on"
  282.  
  283.  
  284. # IP Address
  285.  
  286.  
  287. # Website to ping for the public IP
  288. #
  289. # Default: 'http://ident.me'
  290. # Values:  'url'
  291. # Flag:    --ip_host
  292. public_ip_host="http://ident.me"
  293.  
  294.  
  295. # Disk
  296.  
  297.  
  298. # Which disks to display.
  299. # The values can be any /dev/sdXX, mount point or directory.
  300. # NOTE: By default we only show the disk info for '/'.
  301. #
  302. # Default: '/'
  303. # Values:  '/', '/dev/sdXX', '/path/to/drive'.
  304. # Flag:    --disk_show
  305. #
  306. # Example:
  307. # disk_show=('/' '/dev/sdb1'):
  308. #      'Disk (/): 74G / 118G (66%)'
  309. #      'Disk (/mnt/Videos): 823G / 893G (93%)'
  310. #
  311. # disk_show=('/'):
  312. #      'Disk (/): 74G / 118G (66%)'
  313. #
  314. disk_show=('/')
  315.  
  316. # Disk subtitle.
  317. # What to append to the Disk subtitle.
  318. #
  319. # Default: 'mount'
  320. # Values:  'mount', 'name'
  321. # Flag:    --disk_subtitle
  322. #
  323. # Example:
  324. # name:   'Disk (/dev/sda1): 74G / 118G (66%)'
  325. #         'Disk (/dev/sdb2): 74G / 118G (66%)'
  326. #
  327. # mount:  'Disk (/): 74G / 118G (66%)'
  328. #         'Disk (/mnt/Local Disk): 74G / 118G (66%)'
  329. disk_subtitle="mount"
  330.  
  331.  
  332. # Song
  333.  
  334.  
  335. # Print the Artist and Title on separate lines
  336. #
  337. # Default: 'off'
  338. # Values:  'on', 'off'
  339. # Flag:    --song_shorthand
  340. #
  341. # Example:
  342. # on:  'Artist: The Fratellis'
  343. #      'Song: Chelsea Dagger'
  344. #
  345. # off: 'Song: The Fratellis - Chelsea Dagger'
  346. song_shorthand="off"
  347.  
  348.  
  349. # Install Date
  350.  
  351.  
  352. # Whether to show the time in the output
  353. #
  354. # Default:  'on'
  355. # Values:   'on', 'off'
  356. # Flag:     --install_time
  357. #
  358. # Example:
  359. # on:  'Thu 14 Apr 2016 11:50 PM'
  360. # off: 'Thu 14 Apr 2016'
  361. install_time="on"
  362.  
  363. # Set time format in the output
  364. #
  365. # Default: '24h'
  366. # Values:  '12h', '24h'
  367. # Flag:    --install_time_format
  368. #
  369. # Example:
  370. # 12h: 'Thu 14 Apr 2016 11:50 PM'
  371. # 24h: 'Thu 14 Apr 2016 23:50'
  372. install_time_format="24h"
  373.  
  374.  
  375. # Text Colors
  376.  
  377.  
  378. # Text Colors
  379. #
  380. # Default:  'distro'
  381. # Values:   'distro', 'num' 'num' 'num' 'num' 'num' 'num'
  382. # Flag:     --colors
  383. #
  384. # Each number represents a different part of the text in
  385. # this order: 'title', '@', 'underline', 'subtitle', 'colon', 'info'
  386. #
  387. # Example:
  388. # colors=(distro)      - Text is colored based on Distro colors.
  389. # colors=(4 6 1 8 8 6) - Text is colored in the order above.
  390. colors=(distro)
  391.  
  392.  
  393. # Text Options
  394.  
  395.  
  396. # Toggle bold text
  397. #
  398. # Default:  'on'
  399. # Values:   'on', 'off'
  400. # Flag:     --bold
  401. bold="on"
  402.  
  403. # Enable/Disable Underline
  404. #
  405. # Default:  'on'
  406. # Values:   'on', 'off'
  407. # Flag:     --underline
  408. underline_enabled="on"
  409.  
  410. # Underline character
  411. #
  412. # Default:  '-'
  413. # Values:   'string'
  414. # Flag:     --underline_char
  415. underline_char="-"
  416.  
  417.  
  418. # Color Blocks
  419.  
  420.  
  421. # Color block range
  422. # The range of colors to print.
  423. #
  424. # Default:  '0', '7'
  425. # Values:   'num'
  426. # Flag:     --block_range
  427. #
  428. # Example:
  429. #
  430. # Display colors 0-7 in the blocks.  (8 colors)
  431. # neofetch --block_range 0 7
  432. #
  433. # Display colors 0-15 in the blocks. (16 colors)
  434. # neofetch --block_range 0 15
  435. block_range=(0 15)
  436.  
  437. # Toggle color blocks
  438. #
  439. # Default:  'on'
  440. # Values:   'on', 'off'
  441. # Flag:     --color_blocks
  442. color_blocks="on"
  443.  
  444. # Color block width in spaces
  445. #
  446. # Default:  '3'
  447. # Values:   'num'
  448. # Flag:     --block_width
  449. block_width=3
  450.  
  451. # Color block height in lines
  452. #
  453. # Default:  '1'
  454. # Values:   'num'
  455. # Flag:     --block_height
  456. block_height=1
  457.  
  458.  
  459. # Progress Bars
  460.  
  461.  
  462. # Bar characters
  463. #
  464. # Default:  '-', '='
  465. # Values:   'string', 'string'
  466. # Flag:     --bar_char
  467. #
  468. # Example:
  469. # neofetch --bar_char 'elapsed' 'total'
  470. # neofetch --bar_char '-' '='
  471. bar_char_elapsed="-"
  472. bar_char_total="="
  473.  
  474. # Toggle Bar border
  475. #
  476. # Default:  'on'
  477. # Values:   'on', 'off'
  478. # Flag:     --bar_border
  479. bar_border="on"
  480.  
  481. # Progress bar length in spaces
  482. # Number of chars long to make the progress bars.
  483. #
  484. # Default:  '15'
  485. # Values:   'num'
  486. # Flag:     --bar_length
  487. bar_length=15
  488.  
  489. # Progress bar colors
  490. # When set to distro, uses your distro's logo colors.
  491. #
  492. # Default:  'distro', 'distro'
  493. # Values:   'distro', 'num'
  494. # Flag:     --bar_colors
  495. #
  496. # Example:
  497. # neofetch --bar_colors 3 4
  498. # neofetch --bar_colors distro 5
  499. bar_color_elapsed="distro"
  500. bar_color_total="distro"
  501.  
  502.  
  503. # Info display
  504. # Display a bar with the info.
  505. #
  506. # Default: 'off'
  507. # Values:  'bar', 'infobar', 'barinfo', 'off'
  508. # Flags:   --cpu_display
  509. #          --memory_display
  510. #          --battery_display
  511. #          --disk_display
  512. #
  513. # Example:
  514. # bar:     '[---=======]'
  515. # infobar: 'info [---=======]'
  516. # barinfo: '[---=======] info'
  517. # off:     'info'
  518. cpu_display="off"
  519. memory_display="off"
  520. battery_display="off"
  521. disk_display="off"
  522.  
  523.  
  524. # Backend Settings
  525.  
  526. # Image backend.
  527. #
  528. # Default:  'ascii'
  529. # Values:   'ascii', 'caca', 'catimg', 'jp2a', 'iterm2', 'off', 'tycat', 'w3m'
  530. # Flag:     --backend
  531. image_backend="catimg"
  532.  
  533. # Image Source
  534. #
  535. # Which image or ascii file to display.
  536. #
  537. # Default:  'auto'
  538. # Values:   'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/'
  539. # Flag:     --source
  540. #
  541. # NOTE: 'auto' will pick the best image source for whatever image backend is used.
  542. #       In ascii mode, distro ascii art will be used and in an image mode, your
  543. #       wallpaper will be used.
  544. image_source="auto"
  545.  
  546.  
  547. # Ascii Options
  548.  
  549.  
  550. # Ascii distro
  551. # Which distro's ascii art to display.
  552. #
  553. # Default: 'auto'
  554. # Values:  'auto', 'distro_name'
  555. # Flag:    --ascii_distro
  556. #
  557. # NOTE: Arch and Ubuntu have 'old' logo variants.
  558. #       Change this to 'arch_old' or 'ubuntu_old' to use the old logos.
  559. # NOTE: Ubuntu has flavor variants.
  560. #       Change this to 'Lubuntu', 'Xubuntu', 'Ubuntu-GNOME' or 'Ubuntu-Budgie' to use the flavors.
  561. # NOTE: Arch, Crux and Gentoo have a smaller logo variant.
  562. #       Change this to 'arch_small', 'crux_small' or 'gentoo_small' to use the small logos.
  563. ascii_distro="auto"
  564.  
  565. # Ascii Colors
  566. #
  567. # Default:  'distro'
  568. # Values:   'distro', 'num' 'num' 'num' 'num' 'num' 'num'
  569. # Flag:     --ascii_colors
  570. #
  571. # Example:
  572. # ascii_colors=(distro)      - Ascii is colored based on Distro colors.
  573. # ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors.
  574. ascii_colors=(distro)
  575.  
  576. # Bold ascii logo
  577. # Whether or not to bold the ascii logo.
  578. #
  579. # Default: 'on'
  580. # Values:  'on', 'off'
  581. # Flag:    --ascii_bold
  582. ascii_bold="on"
  583.  
  584.  
  585. # Image Options
  586.  
  587.  
  588. # Thumbnail directory
  589. #
  590. # Default: '~/.cache/thumbnails/neofetch'
  591. # Values:  'dir'
  592. thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
  593.  
  594. # Crop mode
  595. #
  596. # Default:  'normal'
  597. # Values:   'normal', 'fit', 'fill'
  598. # Flag:     --crop_mode
  599. #
  600. # See this wiki page to learn about the fit and fill options.
  601. # https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F
  602. crop_mode="normal"
  603.  
  604. # Crop offset
  605. # Note: Only affects 'normal' crop mode.
  606. #
  607. # Default:  'center'
  608. # Values:   'northwest', 'north', 'northeast', 'west', 'center'
  609. #           'east', 'southwest', 'south', 'southeast'
  610. # Flag:     --crop_offset
  611. crop_offset="center"
  612.  
  613. # Image size
  614. # The image is half the terminal width by default.
  615. #
  616. # Default: 'auto'
  617. # Values:  'auto', '00px', '00%', 'none'
  618. # Flags:   --image_size
  619. #          --size
  620. image_size="auto"
  621.  
  622. # Ggap between image and text
  623. #
  624. # Default: '3'
  625. # Values:  'num', '-num'
  626. # Flag:    --gap
  627. gap=3
  628.  
  629. # Image offsets
  630. # Only works with the w3m backend.
  631. #
  632. # Default: '0'
  633. # Values:  'px'
  634. # Flags:   --xoffset
  635. #          --yoffset
  636. yoffset=0
  637. xoffset=0
  638.  
  639. # Image background color
  640. # Only works with the w3m backend.
  641. #
  642. # Default: ''
  643. # Values:  'color', 'blue'
  644. # Flag:    --bg_color
  645. background_color=
  646.  
  647.  
  648. # Scrot Options
  649.  
  650.  
  651. # Whether or not to always take a screenshot
  652. # You can manually take a screenshot with "--scrot" or "-s"
  653. #
  654. # Default: 'off'
  655. # Values:  'on', 'off'
  656. # Flags:   --scrot
  657. #          -s
  658. scrot="off"
  659.  
  660. # Screenshot Program
  661. # Neofetch will automatically use whatever screenshot tool
  662. # is installed on your system.
  663. #
  664. # If 'neofetch -v' says that it couldn't find a screenshot
  665. # tool or you're using a custom tool then you can change
  666. # the option below to a custom command.
  667. #
  668. # Default: 'auto'
  669. # Values:  'auto' 'cmd -flags'
  670. # Flag:    --scrot_cmd
  671. scrot_cmd="auto"
  672.  
  673. # Screenshot Directory
  674. # Where to save the screenshots
  675. #
  676. # Default: '~/Pictures/'
  677. # Values:  'dir'
  678. # Flag:    --scrot_dir
  679. #
  680. # Note: Neofetch won't create the directory if it doesn't exist.
  681. scrot_dir="$HOME/Pictures/"
  682.  
  683. # Screenshot Filename
  684. # What to name the screenshots
  685. #
  686. # Default: 'neofetch-$(date +%F-%I-%M-%S-${RANDOM}).png'
  687. # Values:  'string'
  688. # Flag:    --scrot_name
  689. scrot_name="neofetch-$(date +%F-%I-%M-%S-${RANDOM}).png"
  690.  
  691. # Image upload host
  692. # Where to upload the image.
  693. #
  694. # Default: 'teknik'
  695. # Values:  'imgur', 'teknik'
  696. # Flag:    --image_host
  697. #
  698. # NOTE: If you'd like another image host to be added to Neofetch.
  699. #       Open an issue on github.
  700. image_host="teknik"
  701.  
  702.  
  703. # Misc Options
  704.  
  705.  
  706. # Config version.
  707. #
  708. # NOTE: Don't change this value, neofetch reads this to determine
  709. # how to handle backwards compatibility.
  710. config_version="3.0.1"
  711.  

回复 "neofetch config"

这儿你可以回复上面这条便签

captcha