aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2019-09-24 22:32:09 +0300
committerDylan Araps <dylan.araps@gmail.com>2019-09-24 22:32:09 +0300
commit92c287940dd69225a7a3dcc21fa1815dfe5213de (patch)
tree19b5d30dbfb311bbc712f69112a629f63eb77764
parente654074adc7c54660724ca62cc4e8373b8995ee3 (diff)
downloadpfetch-92c287940dd69225a7a3dcc21fa1815dfe5213de.tar.gz
ascii: added support for mx
-rwxr-xr-xpfetch18
1 files 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} _____________
| _________ |
| | | |