SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2015-05-22 23:05:18

twoion
Moderator
Registered: 2012-05-11
Posts: 1,648

Some Bunsen ASCII Art for screenfetch, archey etc

The goal is to have a BunsenLabs logo available for screenfetch, archey3 and so on.

I was messing around:

#!/bin/bash
blue="\\033[0;34m"
black="\\033[0;30m"
echo -en "${black}          ${blue}HC]${black}         \n"
echo -en "${black}        ${blue}H]]]]${black}         \n"
echo -en "${black}      ${blue}H]]]]]]4${black}        \n"
echo -en "${black}    ${blue}@C]]]]]]]]*${black}       \n"
echo -en "${black}   ${blue}@]]]]]]]]]]xd${black}      \n"
echo -en "${black}  ${blue}@]]]]]]]]]]]]]d${black}     \n"
echo -en "${black} ${blue}0]]]]]]]]]]]]]]]]${black}    \n"
echo -en "${black} ${blue}kx]]]]]]x]]x]]]]]%${black}   \n"
echo -en "${black}${blue}#x]]]]]]]]]]]]]x]]]d${black}  \n"
echo -en "${black}${blue}#]]]]]]qW${black}  ${blue}x]]x]]]]]4${black} \n"
echo -en "${black}${blue}k]x]]xg${black}     ${blue}%x]]]]]]%${black} \n"
echo -en "${black}${blue}Wx]]]W${black}       ${blue}x]]]]]]]${black} \n"
echo -en "${black}${blue}#]]]4${black}         ${blue}xx]]x]]${black} \n"
echo -en "${black} ${blue}px]${black}           ${blue}]]]]]x${black} \n"
echo -en "${black} ${blue}Wx]${black}           ${blue}x]]x]]${black} \n"
echo -en "${black}  ${blue}&x${black}           ${blue}x]]]]${black}  \n"
echo -en "${black}   ${blue}m${black}           ${blue}x]]]]${black}  \n"
echo -en "${black}               ${blue}x]x]${black}   \n"
echo -en "${black}               ${blue}x]]]${black}   \n"
echo -en "${black}              ${blue}]]]]${black}    \n"
echo -en "${black}              ${blue}x]x${black}     \n"
echo -en "${black}             ${blue}x]q${black}      \n"
echo -en "${black}             ${blue}]g${black}       \n"
echo -en "${black}            ${blue}q${black}         \n"

Use $black (and $blue) for setting foreground and/or background colors (that's why the $black is still there).

The stuff is on Github. If anybody as improvements or patches, just post them or open a pull request.
--
Doesn't look satisfactory yet, but it's a start:
2015_05_23_010951_1920x1080_scrot.jpg

Last edited by twoion (2015-05-22 23:11:16)


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

Be excellent to each other!

#2 2015-05-22 23:07:57

twoion
Moderator
Registered: 2012-05-11
Posts: 1,648

Re: Some Bunsen ASCII Art for screenfetch, archey etc

Workflow: Use aview to display and save an ASCII representation of a Bunsen bitmap. Proceed using your favourite editor.

A future improvement would be to use some sort of "image detection" software to colorize the ASCII in order to achieve the best possible contrast/shape.

Last edited by twoion (2015-05-22 23:08:08)


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

#3 2015-07-09 06:15:36

hhh
Cityspeak
Registered: 2010-08-04
Posts: 3,253

Re: Some Bunsen ASCII Art for screenfetch, archey etc

Add some spaces to get some padding...

#!/bin/bash
blue="\\033[0;34m"
black="\\033[0;30m"
echo -en "${black}                    ${blue}HC]${black}         \n"
echo -en "${black}                  ${blue}H]]]]${black}         \n"
echo -en "${black}                ${blue}H]]]]]]4${black}        \n"
echo -en "${black}              ${blue}@C]]]]]]]]*${black}       \n"
echo -en "${black}             ${blue}@]]]]]]]]]]xd${black}      \n"
echo -en "${black}            ${blue}@]]]]]]]]]]]]]d${black}     \n"
echo -en "${black}           ${blue}0]]]]]]]]]]]]]]]]${black}    \n"
echo -en "${black}           ${blue}kx]]]]]]x]]x]]]]]%${black}   \n"
echo -en "${black}          ${blue}#x]]]]]]]]]]]]]x]]]d${black}  \n"
echo -en "${black}          ${blue}#]]]]]]qW${black}  ${blue}x]]x]]]]]4${black} \n"
echo -en "${black}          ${blue}k]x]]xg${black}     ${blue}%x]]]]]]%${black} \n"
echo -en "${black}          ${blue}Wx]]]W${black}       ${blue}x]]]]]]]${black} \n"
echo -en "${black}          ${blue}#]]]4${black}         ${blue}xx]]x]]${black} \n"
echo -en "${black}           ${blue}px]${black}           ${blue}]]]]]x${black} \n"
echo -en "${black}           ${blue}Wx]${black}           ${blue}x]]x]]${black} \n"
echo -en "${black}            ${blue}&x${black}           ${blue}x]]]]${black}  \n"
echo -en "${black}             ${blue}m${black}           ${blue}x]]]]${black}  \n"
echo -en "${black}                         ${blue}x]x]${black}   \n"
echo -en "${black}                         ${blue}x]]]${black}   \n"
echo -en "${black}                        ${blue}]]]]${black}    \n"
echo -en "${black}                        ${blue}x]x${black}     \n"
echo -en "${black}                       ${blue}x]q${black}      \n"
echo -en "${black}                       ${blue}]g${black}       \n"
echo -en "${black}                      ${blue}q${black}         \n"

SwKyPH0t.png

Last edited by hhh (2015-07-09 06:16:52)


bunsenlabs     8)     forum mod squad

Offline

#4 2015-07-09 13:03:56

twoion
Moderator
Registered: 2012-05-11
Posts: 1,648

Re: Some Bunsen ASCII Art for screenfetch, archey etc

If an alignment suits your use case or not depends on your use case smile


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo