From 92c287940dd69225a7a3dcc21fa1815dfe5213de Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 24 Sep 2019 22:32:09 +0300 Subject: [PATCH] ascii: added support for mx --- pfetch | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/pfetch b/pfetch index d5c20c0..fcadbfa 100755 --- a/pfetch +++ b/pfetch @@ -323,8 +323,8 @@ get_ascii() { read_ascii() { # 'PF_COL1': Set the info name color according to ascii color. # 'PF_COL3': Set the title color to some other color. ¯\_(ツ)_/¯ - PF_COL1=${PF_COL1:-${1:-4}} - PF_COL3=${PF_COL3:-$((${1:-4}%6+1))} + PF_COL1=${PF_COL1:-${1:-7}} + PF_COL3=${PF_COL3:-$((${1:-7}%8+1))} while IFS= read -r line; do ascii="$ascii$line @@ -509,6 +509,18 @@ get_ascii() { EOF ;; + [Mm][Xx]*) + read_ascii <<-EOF + ${c7} \\\\ / + \\\\/ + \\\\ + /\\/ \\\\ + / \\ /\\ + / \\/ \\ + /__________\\ + EOF + ;; + [Nn]et[Bb][Ss][Dd]*) read_ascii 3 <<-EOF ${c7}\\\\${c3}\`-______,----__ @@ -582,7 +594,7 @@ get_ascii() { ;; [Pp]ure[Oo][Ss]*) - read_ascii 6 <<-EOF + read_ascii <<-EOF ${c7} _____________ | _________ | | | | |