hyfetch/config/config

542 lines
10 KiB
Text
Raw Normal View History

2016-01-30 02:14:29 +11:00
#!/usr/bin/env bash
#
2016-02-28 12:34:26 +11:00
# Neofetch config file
# https://github.com/dylanaraps/neofetch
2016-01-30 02:14:29 +11:00
# Speed up script by not using unicode
export LC_ALL=C
2016-03-19 09:37:29 +11:00
export LANG=C
2016-01-30 02:14:29 +11:00
# See this wiki page for more info:
2016-02-28 12:34:26 +11:00
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
print_info() {
2016-01-30 02:14:29 +11:00
info title
info underline
info "OS" distro
info "Model" model
2016-01-30 02:14:29 +11:00
info "Kernel" kernel
info "Uptime" uptime
info "Packages" packages
info "Shell" shell
info "Resolution" resolution
2016-04-01 11:25:41 +11:00
info "DE" de
info "WM" wm
info "WM Theme" wm_theme
2016-02-16 10:50:40 +11:00
info "Theme" theme
info "Icons" icons
2016-05-28 11:22:34 +10:00
info "Terminal" term
info "Terminal Font" term_font
2016-01-30 02:14:29 +11:00
info "CPU" cpu
info "GPU" gpu
info "Memory" memory
2016-06-13 20:46:13 +10:00
# info "CPU Usage" cpu_usage
2016-01-30 02:14:29 +11:00
# info "Disk" disk
# info "Battery" battery
# info "Font" font
# info "Song" song
# info "Local IP" local_ip
# info "Public IP" public_ip
# info "Users" users
2016-01-31 10:47:22 +11:00
# info "Birthday" birthday
2016-01-30 02:14:29 +11:00
info line_break
2016-01-30 02:14:29 +11:00
info cols
info line_break
2016-01-30 02:14:29 +11:00
}
# Kernel
2016-11-26 10:20:54 +11:00
# Shorten the output of the kernel function.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --kernel_shorthand
#
2016-11-26 10:36:35 +11:00
# Example:
2016-11-26 10:20:54 +11:00
# on: '4.8.9-1-ARCH'
2016-11-26 10:36:35 +11:00
# off: 'Linux 4.8.9-1-ARCH'
2016-01-30 02:14:29 +11:00
kernel_shorthand="on"
# Distro
# Shorten the output of the distro function
2016-11-26 10:20:54 +11:00
#
# Default: 'off'
# Values: 'on', 'off', 'tiny'
# Flag: --distro_shorthand
# Supports: Linux, macOS, and Solaris.
distro_shorthand="off"
2016-11-26 10:20:54 +11:00
# Show/Hide OS Architecture.
# Show 'x86_64', 'x86' and etc in 'Distro:' output.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --os_arch
#
2016-11-26 10:36:35 +11:00
# Example:
2016-11-26 10:20:54 +11:00
# on: 'Arch Linux x86_64'
# off: 'Arch Linux'
os_arch="on"
2016-01-30 02:14:29 +11:00
# Uptime
2016-01-30 02:14:29 +11:00
# Shorten the output of the uptime function
2016-11-26 10:20:54 +11:00
#
# Default: 'off'
# Values: 'on', 'off', 'tiny'
# Flag: --uptime_shorthand
#
2016-11-26 10:36:35 +11:00
# Example:
2016-11-26 10:20:54 +11:00
# on: '2 days, 10 hours, 3 mins'
# off: '2 days, 10 hours, 3 minutes'
# tiny: '2d 10h 3m'
2016-01-30 02:14:29 +11:00
uptime_shorthand="off"
# Shell
2016-01-30 02:14:29 +11:00
# Show the path to $SHELL
2016-11-26 10:20:54 +11:00
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --shell_path
#
2016-11-26 10:36:35 +11:00
# Example:
2016-11-26 10:20:54 +11:00
# on: '/bin/bash'
# off: 'bash'
2016-10-18 08:32:06 +11:00
shell_path="off"
2016-01-30 02:14:29 +11:00
# Show $SHELL version
2016-11-26 10:20:54 +11:00
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --shell_version
#
2016-11-26 10:36:35 +11:00
# Example:
2016-11-26 10:20:54 +11:00
# on: 'bash 4.4.5'
# off: 'bash'
2016-10-18 08:32:06 +11:00
shell_version="on"
2016-01-30 02:14:29 +11:00
# CPU
2016-01-30 02:14:29 +11:00
# CPU speed type
2016-11-26 10:20:54 +11:00
#
# Default: 'max'
# Values: 'current', 'min', 'max', 'bios',
# 'scaling_current', 'scaling_min',
# 'scaling_max'
# Flag: --speed_type
# Supports: Linux with 'cpufreq'
2016-01-30 02:14:29 +11:00
speed_type="max"
# Shorten the output of the CPU function
2016-11-26 10:20:54 +11:00
#
# Default: 'off'
# Values: 'on', 'off', 'tiny', 'name', 'speed'
# Flag: --cpu_shorthand
#
2016-11-26 10:36:35 +11:00
# Example:
2016-11-26 10:20:54 +11:00
# on: 'i7-6500U (4) @ 3.1GHz'
# off: 'Intel i7-6500U (4) @ 3.1GHz'
# tiny: 'i7-6500U (4)'
# name: 'Intel i7-6500U (4)'
# speed: '3.1GHz'
cpu_shorthand="off"
2016-06-13 20:22:38 +10:00
# CPU Usage display
# Set CPU usage display setting
2016-11-26 10:20:54 +11:00
#
# Default: 'off'
# Values: 'bar', 'infobar', 'barinfo', 'off'
# Flag: --cpu_display
#
2016-11-26 10:36:35 +11:00
# Example:
2016-11-26 10:20:54 +11:00
# bar: '[---=======]'
# infobar: '20% [---=======]'
# barinfo: '[---=======] 20%'
# off: '20%'
2016-03-13 08:59:37 +11:00
cpu_display="off"
2016-10-23 09:45:03 +11:00
# CPU Speed
# Hide/Show CPU speed.
2016-11-26 10:20:54 +11:00
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --cpu_speed
#
2016-11-26 10:36:35 +11:00
# Example:
2016-11-26 10:20:54 +11:00
# on: 'Intel i7-6500U (4) @ 3.1GHz'
# off: 'Intel i7-6500U (4)'
2016-10-23 09:45:03 +11:00
cpu_speed="on"
2016-03-15 18:55:35 +11:00
# CPU Cores
# Display CPU cores in output
2016-11-26 10:20:54 +11:00
#
# Default: 'logical'
# Values: 'logical', 'physical', 'off'
# Flag: --cpu_cores
# Support: 'physical' doesn't work on BSD.
#
2016-11-26 10:36:35 +11:00
# Example:
2016-11-26 10:20:54 +11:00
# logical: 'Intel i7-6500U (4) @ 3.1GHz' (All virtual cores)
# physical: 'Intel i7-6500U (2) @ 3.1GHz' (All physical cores)
# off: 'Intel i7-6500U @ 3.1GHz'
2016-10-21 16:40:58 +11:00
cpu_cores="logical"
2016-03-15 18:55:35 +11:00
2016-10-23 09:45:03 +11:00
# CPU Temperature
# Hide/Show CPU temperature.
2016-11-26 10:20:54 +11:00
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --cpu_temp
# Supports: Linux
2016-10-23 09:47:01 +11:00
cpu_temp="off"
2016-10-23 09:45:03 +11:00
2016-01-30 02:14:29 +11:00
# GPU
# Enable/Disable GPU Brand
2016-11-26 10:36:35 +11:00
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --gpu_brand
#
# Example:
# on: 'AMD HD 7950'
# off: 'HD 7950'
gpu_brand="on"
2016-10-23 09:54:47 +11:00
2016-03-18 16:32:06 +11:00
# Resolution
2016-03-18 16:32:06 +11:00
# Display refresh rate next to each monitor
2016-11-26 10:36:35 +11:00
# Default: 'off'
# Values: 'on', 'off'
# Flag: --refresh_rate
# Supports: Doesn't work on Windows.
#
# Example:
# on: '1920x1080 @ 60Hz'
# off: '1920x1080'
2016-03-18 16:32:06 +11:00
refresh_rate="off"
2016-01-30 02:14:29 +11:00
2016-11-26 10:36:35 +11:00
# Gtk Theme / Icons / Font
2016-01-30 02:14:29 +11:00
2016-11-26 10:36:35 +11:00
# Shorten output of GTK Theme / Icons / Font
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --gtk_shorthand
#
# Example:
# on: 'Numix, Adwaita'
# off: 'Numix [GTK2], Adwaita [GTK3]'
2016-01-30 02:14:29 +11:00
gtk_shorthand="off"
2016-11-26 10:36:35 +11:00
# Enable/Disable gtk2 Theme / Icons / Font
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --gtk2
#
# Example:
# on: 'Numix [GTK2], Adwaita [GTK3]'
# off: 'Adwaita [GTK3]'
2016-01-30 02:14:29 +11:00
gtk2="on"
2016-11-26 10:36:35 +11:00
# Enable/Disable gtk3 Theme / Icons / Font
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --gtk3
#
# Example:
# on: 'Numix [GTK2], Adwaita [GTK3]'
# off: 'Numix [GTK2]'
2016-01-30 02:14:29 +11:00
gtk3="on"
# IP Address
# Website to ping for the public IP
2016-11-26 10:36:35 +11:00
#
# Default: 'http://ident.me'
# Values: 'url'
# Flag: --ip_host
public_ip_host="http://ident.me"
# Song
# Print the Artist and Title on seperate lines
2016-11-26 10:36:35 +11:00
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --song_shorthand
#
# Example:
# on: 'Artist: The Fratellis'
# 'Song: Chelsea Dagger'
#
# off: 'Song: The Fratellis - Chelsea Dagger'
song_shorthand="off"
2016-01-30 22:41:58 +11:00
# Birthday
2016-01-30 22:41:58 +11:00
# Whether to show a long pretty output
# or a shortened one
2016-01-31 11:02:32 +11:00
# NOTE: Long pretty output doesn't work on OpenBSD or NetBSD.
2016-10-23 09:54:47 +11:00
# --birthday_shorthand on, off
2016-01-30 22:41:58 +11:00
birthday_shorthand="off"
# Whether to show the time in the output
2016-10-23 09:54:47 +11:00
# --birthday_time on, off
2016-01-30 22:41:58 +11:00
birthday_time="on"
# Date format to use when printing birthday
# --birthday_format "format"
birthday_format="+%a %d %b %Y %l:%M %p"
# Text Colors
2016-01-30 02:14:29 +11:00
2016-02-23 16:52:25 +11:00
# Text Colors
# Each number represents a different part of
# the text in this order:
# title, @, underline, subtitle, colon, info
# colors=(4 6 1 8 8 6)
# You can also specify:
# fg (foreground color)
2016-02-23 16:52:25 +11:00
colors=(distro)
2016-01-30 02:14:29 +11:00
# Text Options
2016-01-30 02:14:29 +11:00
# Toggle bold text
2016-10-23 09:54:47 +11:00
# --bold on, off
2016-01-30 02:14:29 +11:00
bold="on"
# Enable/Disable Underline
2016-10-23 09:54:47 +11:00
# --underline on, off
2016-04-02 12:52:21 +11:00
underline_enabled="on"
2016-01-30 02:14:29 +11:00
# Underline character
# --underline_char char
underline_char="-"
# Color Blocks
# Color block range
# --block_range start end
start=0
end=7
# Toggle color blocks
2016-10-23 09:54:47 +11:00
# --color_blocks on, off
color_blocks="on"
# Color block width in spaces
# --block_width num
2016-10-16 10:48:37 +11:00
block_width=3
# Color block height in lines
# --block_height num
block_height=1
# Progress Bars
2016-03-03 10:12:21 +11:00
# Progress bar character
2016-04-24 18:30:57 +10:00
# --progress_char elapsed_char total_char
bar_char_elapsed="-"
bar_char_total="="
2016-04-24 18:30:57 +10:00
2016-10-03 10:03:41 +11:00
# Progress border
2016-10-23 09:54:47 +11:00
# --progress_border on, off
bar_border="on"
2016-03-03 10:12:21 +11:00
# Progress bar length in spaces
# Number of chars long to make the progress bars.
# --progress_length num
bar_length="15"
2016-03-03 10:12:21 +11:00
# Progress bar colors
2016-03-27 21:01:47 +11:00
# When set to distro, uses your distro's logo colors
# Takes: num, "distro"
2016-03-03 10:12:21 +11:00
# --progress_colors col col
bar_color_elapsed="distro"
bar_color_total="distro"
2016-03-03 10:12:21 +11:00
2016-03-13 08:37:33 +11:00
# Customize how the info is displayed.
# bar: Only the progress bar is displayed.
# infobar: The bar is displayed after the info.
# barinfo: The bar is displayed before the info.
# off: Only the info is displayed.
#
2016-10-23 09:54:47 +11:00
# --memory_display bar, infobar, barinfo, off
# --battery_display bar, infobar, barinfo, off
# --disk_display bar, infobar, barinfo, off
2016-03-13 08:37:33 +11:00
memory_display="off"
battery_display="off"
disk_display="off"
# Image Options
2016-01-30 02:14:29 +11:00
# Image Source
2016-11-13 00:30:09 +11:00
# --image wallpaper, /path/to/img, /path/to/dir/, off
image_source="wallpaper"
2016-01-30 02:14:29 +11:00
# Thumbnail directory
thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
2016-01-30 02:14:29 +11:00
# W3m-img path
2016-10-22 01:18:04 +11:00
# Only works with the w3m backend.
2016-11-08 06:59:14 +11:00
#
# NOTE: Only change this if "neofetch -v" says that it couldn't find w3m-img.
# Neofetch has a function that automatically finds w3m-img for you. It looks
# in the following directories:
# /usr/lib/w3m/w3mimgdisplay
# /usr/libexec/w3m/w3mimgdisplay
# /usr/lib64/w3m/w3mimgdisplay
# /usr/libexec64/w3m/w3mimgdisplay
# If w3m-img is installed elsewhere on your system, open an issue on the repo
# and I'll add it to the function inside the script. If w3m-img is installed
# in a non-standard way (in your home folder, etc) then change the variable
# below to the custom location. Otherwise, don't touch this.
2016-01-30 02:14:29 +11:00
w3m_img_path="/usr/lib/w3m/w3mimgdisplay"
# Crop mode
2016-10-23 09:54:47 +11:00
# --crop_mode normal, fit, fill
2016-01-30 02:14:29 +11:00
crop_mode="normal"
# Crop offset
# Only affects normal mode.
2016-10-23 09:54:47 +11:00
# --crop_offset northwest, north, northeast, west, center
# east, southwest, south, southeast
2016-01-30 02:14:29 +11:00
crop_offset="center"
# Image size
# The image is half the terminal width by default.
2016-05-27 15:23:02 +10:00
# --size auto, 00px, 00%, none
image_size="auto"
2016-01-30 02:14:29 +11:00
# Right gap between image and text
# --gap num
2016-11-23 15:54:28 +11:00
gap=3
2016-01-30 02:14:29 +11:00
# Image offsets
2016-10-22 01:18:04 +11:00
# Only works with the w3m backend.
2016-01-30 02:14:29 +11:00
# --xoffset px
# --yoffset px
yoffset=0
xoffset=0
2016-10-22 01:18:04 +11:00
# Image background color
# Only works with the w3m backend.
# Unset by default.
# --bg_color 'color', blue
background_color=
2016-01-30 02:14:29 +11:00
# Ascii Options
2016-01-30 02:14:29 +11:00
# Default ascii image to use
# When this is set to distro it will use your
# distro's logo as the ascii.
# --ascii 'distro', path/to/ascii
ascii="distro"
2016-08-12 16:52:51 +10:00
# Ascii distro
# Which distro's ascii art to display.
# --ascii_distro 'auto', 'distro_name'
ascii_distro="auto"
# Ascii colors
2016-01-30 02:14:29 +11:00
# When this is set to distro it will use your
# ditro's colors to color the ascii.
# NOTE: You can also set this to a range of colors
# which will allow you to custom color distro logos
# --ascii_colors distro
# --ascii_colors 2 4 5 6
ascii_colors=(distro)
2016-01-30 02:14:29 +11:00
# Logo size
# Arch, Crux and Gentoo have a smaller logo
# variant. Changing the value below to small
# will make neofetch use the small logo.
# --ascii_logo_size small, normal
ascii_logo_size="normal"
2016-01-30 02:14:29 +11:00
# Bold ascii logo
# Whether or not to bold the ascii logo.
2016-10-23 09:54:47 +11:00
# --ascii_bold on, off
2016-10-15 14:18:04 +11:00
ascii_bold="on"
# Scrot Options
2016-01-30 02:14:29 +11:00
# Whether or not to always take a screenshot
# You can manually take a screenshot with "--scrot" or "-s"
scrot="off"
# Screenshot program to launch
# --scrot_cmd
scrot_cmd="scrot -c -d 3"
# Scrot dir
# Where to save the screenshots
# --scrot_dir /path/to/screenshot/folder
2016-03-19 09:37:29 +11:00
scrot_dir="$HOME/Pictures/"
2016-01-30 02:14:29 +11:00
# Scrot filename
# What to name the screenshots
# --scrot_name str
2016-10-02 20:31:25 +11:00
scrot_name="neofetch-$(date +%F-%I-%M-%S-${RANDOM}).png"
# Image upload host
# Where to upload the image.
2016-10-02 22:49:30 +11:00
# Possible values: imgur, teknik
2016-10-02 22:46:51 +11:00
image_host="imgur"
2016-01-30 02:14:29 +11:00
# Config Options
2016-01-30 02:14:29 +11:00
# Enable/Disable config file
2016-02-01 08:00:20 +11:00
# --config off, none
config="on"
2016-01-30 11:09:36 +11:00
# Path to custom config file location
2016-01-30 02:14:29 +11:00
# --config path/to/config
config_file="${XDG_CONFIG_HOME:-${HOME}/.config}/neofetch/config"