Advertisement
Dobbie03

neofetch

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