diff --git a/config/config b/config/config index 94a257fd..c3d2da18 100644 --- a/config/config +++ b/config/config @@ -292,6 +292,21 @@ public_ip_host="http://ident.me" song_shorthand="off" +# Birthday + + +# Whether to show the time in the output +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --birthday_time +# +# Example: +# on: 'Thu 14 Apr 2016 11:50 PM' +# off: 'Thu 14 Apr 2016' +birthday_time="on" + + # Text Colors diff --git a/neofetch b/neofetch index 0478fe4e..fed90d4b 100755 --- a/neofetch +++ b/neofetch @@ -2969,6 +2969,9 @@ convert_time() { *) time="$((hour - 12))${min} PM" ;; esac + # Toggle showing the time + [[ "$birthday_time" == "off" ]] && unset time + # Print the birthday. printf "%s" "$week_day $day $month $year $time" } @@ -3031,6 +3034,7 @@ INFO --shell_version on/off Enable/Disable showing \$SHELL version --ip_host url URL to query for public IP --song_shorthand on/off Print the Artist/Title on seperate lines + --birthday_time on/off Enable/Disable showing the time in birthday output. TEXT FORMATTING @@ -3199,6 +3203,7 @@ get_args() { "--shell_version") shell_version="$2" ;; "--ip_host") public_ip_host="$2" ;; "--song_shorthand") song_shorthand="$2" ;; + "--birthday_time") birthday_time="$2" ;; "--disable") for func in "$@"; do case "$func" in diff --git a/neofetch.1 b/neofetch.1 index ed786b39..6484a727 100644 --- a/neofetch.1 +++ b/neofetch.1 @@ -88,14 +88,9 @@ URL to query for public IP .TP \fB\-\-song_shorthand\fR on/off Print the Artist/Title on seperate lines -.HP -\fB\-\-birthday_shorthand\fR on/off Shorten the output of birthday .TP \fB\-\-birthday_time\fR on/off -Enable/Disable showing the time in birthday output -.TP -\fB\-\-birthday_format\fR format -Format the birthday output. (Uses 'date' cmd format) +Enable/Disable showing the time in birthday output. .PP TEXT FORMATTING .TP