General: Remove fold markers from configs

This commit is contained in:
Dylan Araps 2016-11-11 11:49:01 +11:00
parent e443656502
commit 7a6e1d101e
3 changed files with 39 additions and 54 deletions

View File

@ -1,5 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# vim:fdm=marker
# #
# Neofetch config file # Neofetch config file
# https://github.com/dylanaraps/neofetch # https://github.com/dylanaraps/neofetch
@ -8,10 +7,7 @@
export LC_ALL=C export LC_ALL=C
export LANG=C export LANG=C
# Info Options {{{
# Info
# See this wiki page for more info: # See this wiki page for more info:
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info # https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
print_info() { print_info() {
@ -54,15 +50,18 @@ print_info() {
# Kernel # Kernel
# Show more kernel info
# Shorten the output of the kernel function
# --kernel_shorthand on, off # --kernel_shorthand on, off
kernel_shorthand="on" kernel_shorthand="on"
# Distro # Distro
# Shorten the output of distro (tiny, on, off)
# Shorten the output of the distro function
# NOTE: This is only possible on Linux, macOS, and Solaris # NOTE: This is only possible on Linux, macOS, and Solaris
# --distro_shorthand on, off, tiny
distro_shorthand="off" distro_shorthand="off"
# Show 'x86_64' and 'x86' in 'Distro:' output. # Show 'x86_64' and 'x86' in 'Distro:' output.
@ -72,6 +71,7 @@ os_arch="on"
# Uptime # Uptime
# Shorten the output of the uptime function # Shorten the output of the uptime function
# --uptime_shorthand tiny, on, off # --uptime_shorthand tiny, on, off
uptime_shorthand="off" uptime_shorthand="off"
@ -79,25 +79,26 @@ uptime_shorthand="off"
# Shell # Shell
# Show the path to $SHELL # Show the path to $SHELL
# --shell_path on, off # --shell_path on, off
shell_path="off" shell_path="off"
# Show $SHELL's version # Show $SHELL version
# --shell_version on, off # --shell_version on, off
shell_version="on" shell_version="on"
# CPU # CPU
# CPU speed type # CPU speed type
# Only works on Linux with cpufreq. # Only works on Linux with cpufreq.
# --speed_type current, min, max, bios, # --speed_type current, min, max, bios,
# scaling_current, scaling_min, scaling_max # scaling_current, scaling_min, scaling_max
speed_type="max" speed_type="max"
# CPU Shorthand # Shorten the output of the CPU function
# Set shorthand setting
# --cpu_shorthand name, speed, tiny, on, off # --cpu_shorthand name, speed, tiny, on, off
cpu_shorthand="off" cpu_shorthand="off"
@ -115,19 +116,20 @@ cpu_speed="on"
# Display CPU cores in output # Display CPU cores in output
# Logical: All virtual cores # Logical: All virtual cores
# Physical: All physical cores # Physical: All physical cores
# --cpu_cores logical, physical, off
# Note: 'physical' doesn't work on BSD. # Note: 'physical' doesn't work on BSD.
# --cpu_cores logical, physical, off
cpu_cores="logical" cpu_cores="logical"
# CPU Temperature # CPU Temperature
# Hide/Show CPU temperature. # Hide/Show CPU temperature.
# --cpu_temp on, off
# Note: Only works on Linux. # Note: Only works on Linux.
# --cpu_temp on, off
cpu_temp="off" cpu_temp="off"
# GPU # GPU
# Enable/Disable GPU Brand # Enable/Disable GPU Brand
# --gpu_brand on, off # --gpu_brand on, off
gpu_brand="on" gpu_brand="on"
@ -135,6 +137,7 @@ gpu_brand="on"
# Resolution # Resolution
# Display refresh rate next to each monitor # Display refresh rate next to each monitor
# Unsupported on Windows # Unsupported on Windows
# --refresh_rate on, off # --refresh_rate on, off
@ -143,6 +146,7 @@ refresh_rate="off"
# Gtk Theme / Icons # Gtk Theme / Icons
# Shorten output (Hide [GTK2] etc) # Shorten output (Hide [GTK2] etc)
# --gtk_shorthand on, off # --gtk_shorthand on, off
gtk_shorthand="off" gtk_shorthand="off"
@ -159,6 +163,7 @@ gtk3="on"
# IP Address # IP Address
# Website to ping for the public IP # Website to ping for the public IP
# --ip_host url # --ip_host url
public_ip_host="http://ident.me" public_ip_host="http://ident.me"
@ -166,6 +171,7 @@ public_ip_host="http://ident.me"
# Song # Song
# Print the Artist and Title on seperate lines # Print the Artist and Title on seperate lines
# --song_shorthand on, off # --song_shorthand on, off
song_shorthand="off" song_shorthand="off"
@ -173,6 +179,7 @@ song_shorthand="off"
# Birthday # Birthday
# Whether to show a long pretty output # Whether to show a long pretty output
# or a shortened one # or a shortened one
# NOTE: Long pretty output doesn't work on OpenBSD or NetBSD. # NOTE: Long pretty output doesn't work on OpenBSD or NetBSD.
@ -188,9 +195,7 @@ birthday_time="on"
birthday_format="+%a %d %b %Y %l:%M %p" birthday_format="+%a %d %b %Y %l:%M %p"
# }}} # Text Colors
# Text Colors {{{
# Text Colors # Text Colors
@ -203,9 +208,7 @@ birthday_format="+%a %d %b %Y %l:%M %p"
colors=(distro) colors=(distro)
# }}} # Text Options
# Text Options {{{
# Toggle bold text # Toggle bold text
@ -221,9 +224,7 @@ underline_enabled="on"
underline_char="-" underline_char="-"
# }}} # Color Blocks
# Color Blocks {{{
# Color block range # Color block range
@ -244,9 +245,7 @@ block_width=3
block_height=1 block_height=1
# }}} # Progress Bars
# Progress Bars {{{
# Progress bar character # Progress bar character
@ -284,9 +283,7 @@ battery_display="off"
disk_display="off" disk_display="off"
# }}} # Image Options
# Image Options {{{
# Image Source # Image Source
@ -345,9 +342,7 @@ xoffset=0
background_color= background_color=
# }}} # Ascii Options
# Ascii Options {{{
# Default ascii image to use # Default ascii image to use
@ -383,9 +378,7 @@ ascii_logo_size="normal"
ascii_bold="on" ascii_bold="on"
# }}} # Scrot Options
# Scrot Options {{{
# Whether or not to always take a screenshot # Whether or not to always take a screenshot
@ -417,9 +410,7 @@ image_host="imgur"
imgur_client_id="0e8b44d15e9fc95" imgur_client_id="0e8b44d15e9fc95"
# }}} # Config Options
# Config Options {{{
# Enable/Disable config file # Enable/Disable config file
@ -429,6 +420,3 @@ config="on"
# Path to custom config file location # Path to custom config file location
# --config path/to/config # --config path/to/config
config_file="${XDG_CONFIG_HOME:-${HOME}/.config}/neofetch/config" config_file="${XDG_CONFIG_HOME:-${HOME}/.config}/neofetch/config"
# }}}

View File

@ -1,5 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# vim:fdm=marker
# #
# Neofetch config file for travis.ci # Neofetch config file for travis.ci
# https://github.com/dylanaraps/neofetch # https://github.com/dylanaraps/neofetch

View File

@ -2143,6 +2143,18 @@ get_w3m_img_path() {
fi fi
} }
get_image_backend() {
if [[ -n "$ITERM_PROFILE" ]]; then
image_backend="iterm2"
elif [[ "$(tycat 2>/dev/null)" ]]; then
image_backend="tycat"
else
image_backend="w3m"
fi
}
display_image() { display_image() {
if [[ "$image" != "ascii" ]]; then if [[ "$image" != "ascii" ]]; then
case "$image_backend" in case "$image_backend" in
@ -2165,18 +2177,6 @@ display_image() {
fi fi
} }
get_image_backend() {
if [[ -n "$ITERM_PROFILE" ]]; then
image_backend="iterm2"
elif [[ "$(tycat 2>/dev/null)" ]]; then
image_backend="tycat"
else
image_backend="w3m"
fi
}
# SCREENSHOT # SCREENSHOT
take_scrot() { take_scrot() {
@ -2730,7 +2730,6 @@ get_term_padding() {
# #
# Note: This issue only seems to affect # Note: This issue only seems to affect
# URxvt. # URxvt.
[[ -z "$term" ]] && get_term [[ -z "$term" ]] && get_term
case "$term" in case "$term" in
@ -2773,7 +2772,6 @@ old_functions() {
# Neofetch 2.0 changed the names of a few variables. # Neofetch 2.0 changed the names of a few variables.
# This function adds backwards compatibility for the # This function adds backwards compatibility for the
# old variable names. # old variable names.
if type printinfo >/dev/null 2>&1; then if type printinfo >/dev/null 2>&1; then
print_info() { printinfo ; } print_info() { printinfo ; }
get_wmtheme() { get_wm_theme; wmtheme="$wm_theme"; } get_wmtheme() { get_wm_theme; wmtheme="$wm_theme"; }
@ -2784,7 +2782,7 @@ old_functions() {
fi fi
} }
# FINISH uP # FINISH UP
usage() { printf "%s" " usage() { printf "%s" "
NEOFETCH NEOFETCH