I-BTColor: Isikripthi esincane sokuhlobisa i-GNU / Linux Terminal

I-BTColor: Isikripthi esincane sokuhlobisa i-GNU / Linux Terminal

I-BTColor: Isikripthi esincane sokuhlobisa i-GNU / Linux Terminal

Namuhla futhi, njengezikhathi ezithile, sizokwethula ithuluzi elincane noma uhlelo lokusebenza, oluwusizo kubo bonke labo ngokwezifiso abathandi wabaziswa kakhulu Izinhlelo Zokusebenza ze-GNU / Linux, ikakhulukazi ukuphela. Ngakho-ke namuhla, sizokhuluma ngakho "BTColor".

"BTColor", kancane nje Isikripthi se-bash, Engikudalile ukuhlobisa ukuphela kwe-my Phendula abasebenzi ababiziwe Izimangaliso GNU / Linux, ikakhulukazi ngalezo zinsuku zokugubha i- #DesktopFriday I-Linuxeros.

IPywal: Ithuluzi elithakazelisayo lokwenza ngezifiso amaTheminali ethu

IPywal: Ithuluzi elithakazelisayo lokwenza ngezifiso amaTheminali ethu

Ngaphambi kokungena esihlokweni salo mfanyana iskripthi kudaliwe kubizwa "BTColor", kuhle ukukhumbula ukuthi uma kwenzeka ufuna ukwandisa ulwazi lwakho ngokwenza ngezifiso i- I-GNU / Linux Distros, ungahlola ngemuva kokuqeda lokhu kushicilelwa, okunye ukushicilelwa kwangaphambilini okuphathelene nesihloko, njenge, Pywal, okusho ukuthi:

"I-Pywal iyithuluzi elenza iphalethi yombala kusuka kumibala evelele esithombeni. Ngemuva kwalokho faka imibala kuso sonke isistimu nasendizeni kuyo yonke imibukiso yakho oyithandayo. Okwamanje kukhona iziphetho ezi-5 zokukhiqizwa kwemibala esekelwayo, ngayinye enikeza iphalethi ehlukile yombala wesithombe ngasinye. Ngokuqinisekile uzothola isikimu sombala esikhangayo. IPywal futhi isekela izingqikithi ezichazwe ngaphambilini futhi inezingqikithi ezingaphezu kuka-250 ezakhelwe ngaphakathi. Ungakha futhi namafayela wakho wetimu ukuze wabelane ngawo nabanye." IPywal: Ithuluzi elithakazelisayo lokwenza ngezifiso amaTheminali ethu

I-athikili ehlobene:
IPywal: Ithuluzi elithakazelisayo lokwenza ngezifiso amaTheminali ethu

I-athikili ehlobene:
Komorebi: Ungawenza kanjani ngokwezifiso amadeski ethu anezizinda ezi-animated?
I-athikili ehlobene:
Ama-Conkys: Ungayenza kanjani ngokwezifiso ama-Conkys wethu ukuze ungasebenzisi i-Neofetch?
I-athikili ehlobene:
Izinsuku ze-GNU / Linux Desktop: Amawebhusayithi we-Wallpaper Wokugubha
I-athikili ehlobene:
I-XFCE: Ungayenza kanjani ngokwezifiso i-Linux Mouse Desktop Environment?

I-BTColor: AmaBanners Terminal Colour

Uyini umbhalo we-BTColor?

Njengoba ngishilo ekuqaleni kokuthunyelwe, "BTColor" ayikho ngaphezu kokuthi:

"Isikripthi esincane nesisebenzisekayo se-bash shell engisidalele ukuhlobisa i-terminal ngamabhanela ombhalo nezithombe ngombala omnyama nomhlophe noma ogcwele, ongaba wusizo ikakhulukazi, kulezo zinsuku zokugubha i- #FridayDeDesk Linuxeros."

Sisebenza kanjani iskripthi se-BTColor?

Ngokuyinhloko iskripthi "BTColor" Lokho okwenzayo faka umbala un Isibhengezo se-ASCII sombhalo noma isithombe, okwenziwe ngaphambilini ngesandla noma ngokuzenzakalela ngamawebhusayithi akhethekile abo, njenge:

Ngenkathi, ukuze ufake umbala kufayela le- Amabhanela e-ASCII, isebenzisa ubuchwepheshe noma ulwazi oluchazwe ngokucacile kulawa mawebhusayithi ama-2:

Injani ikhodi yeSkripthi se-BTColor?

Ikhodi incane futhi kulula ukuyiqonda, ngakho-ke, ukuyiguqula. Futhi okufanayo okulandelayo:

#!/usr/bin/env bash

# https://manytools.org/hacker-tools/ascii-banner/ -> Banners ASCII
# https://www.ascii-art-generator.org/es.html -> Creador de arte ASCII online
# https://misc.flogisoft.com/bash/tip_colors_and_formatting -> bash:tip_colors_and_formatting
# https://robotmoon.com/256-colors/#foreground-colors -> xterm 256 colors

initializeANSI()
{

esc=""

# a="${esc}[0m" # brillo por defecto
# b="${esc}[1m" # brillo alto
# c="${esc}[2m" # brillo bajo

# d="${esc}[4m" # subrayar banner
# e="${esc}[5m" # parpadear banner
# f="${esc}[7m" # invertir colores del banner (foreground and background)
# g="${esc}[8m" # ocultar banner

# h="${esc}[40m" # color del fondo banner: negro
# i="${esc}[41m" # color del fondo banner: rojo
# j="${esc}[42m" # color del fondo banner: verde
# k="${esc}[43m" # color del fondo banner: amarillo
# l="${esc}[44m" # color del fondo banner: blue
# m="${esc}[45m" # color del fondo banner: magenta
# n="${esc}[46m" # color del fondo banner: cyan
# o="${esc}[47m" # color del fondo banner: gris claro
p="${esc}[49m" # color del fondo banner: color por defecto
# k="${esc}[100m" # color del fondo banner: gris obscuro
# r="${esc}[101m" # color del fondo banner: rojo claro
# s="${esc}[102m" # color del fondo banner: verde claro
# t="${esc}[103m" # color del fondo banner: amarillo claro
# u="${esc}[104m" # color del fondo banner: azul claro
# v="${esc}[105m" # color del fondo banner: magenta claro
# w="${esc}[106m" # color del fondo banner: cyan claro
# x="${esc}[107m" # color del fondo banner: blanco

colorfont001="${esc}[38;5;226m" # Amarillo
colorfont002="${esc}[38;5;20m" # Azul
colorfont003="${esc}[38;5;1m" # Rojo
colorfont004="${esc}[38;5;15m" # Blanco

reset="${esc}[0m"

}

initializeANSI

cat << EOF

${p}${colorfont004}

${colorfont003} ******* ** ** **
${colorfont003} /**////** /** /** //
${colorfont003} /** /** ***** ****** /** ***** /** ** ******* ** ** ** **
${colorfont001} /** /** **///** **//// ****** **///**/** /**//**///**/** /**//** **
${colorfont001} /** /**/*******//***** **///**/*******/** /** /** /**/** /** //***
${colorfont003} /** ** /**//// /////**/** /**/**//// /** /** /** /**/** /** **/**
${colorfont003} /******* //****** ****** //******//******/********/** *** /**//****** ** //**
${colorfont003} /////// ////// ////// ////// ////// //////// // /// // ////// // //

${colorfont001} .,;;;;;;;;;;;;;;;;;;;;;;;,,.
${colorfont001} :k00OOOOOOOOOOOOOOOOOOOOOOOO00x,
${colorfont001} :X0:. ...... .cKK;
${colorfont001} dWd. ,d,'o; .kWl
${colorfont001} dWd. .kO:d0; .kWl
${colorfont002} .dWd. .,o00:':' .kWl
${colorfont002} .dWd. .:ldOOo:. .kWl
${colorfont004} .dWd. 'cxOkdl,..lkko' .kWl
${colorfont004} .dWd. .,lkOxc' .cOKKl. .kWl
${colorfont002} .dWd. ,o0NKo. .. .kWl
${colorfont002} .dWd. .:lxkkxl,. .kWl
${colorfont003} .dWd. .:okOdl;. .kWl
${colorfont003} .dWd. 'lxkOo' .kWl
${colorfont003} .dWd. .;x0d' .kWl
${colorfont003} oWx. ,o: .ONc
${colorfont003} ,OXx:;;,,,,,,,,,;;;,,;;;;,,,;:kXk.
${colorfont003} .cxOOOOOOOOOOOOOOOOOOOOOOOOOkd:.

${reset}

EOF

Ukulanda, ukufaka, ukusebenzisa nezithombe-skrini

Empeleni asikho isidingo sokulanda nokufaka noma yini, ngoba, yonke ikhodi iphezulu lapho. Kungakuhle ukukopisha nokunamathisela ngokuphelele kufayela lombhalo bese ulibiza, mhlawumbe, into efana nale: isimangaliso_lpi_btcolor.sh. Kusukela, le yindlela engikwenze ngayo, ngokujwayelekile Ukuphendula kwe-MX Linux kubizwa Izimangaliso engihlala ngiyisebenzisa.

Ngemuva kwalokho, kuzodingeka kuphela ukuyikhipha nge- umyalo olula womyalo ngasendleleni yefayela lapho lalirekhodwa khona, okwakungokulandelayo kimi:

«bash /opt/milagros/scripts/milagros_lpi_btcolor.sh»

Futhi ngalokho, sizobona i- Umbhalo Wesibhengezo uthini "KusukaLinux" ezinemibala ngemibala ye- Ifulegi laseSpain kanye ne-Image Banner enophawu lwe "KusukaLinux" ngemibala ye Ifulegi laseVenezuela.

I-BTColor: Isithombe-skrini

Kokunye, kuzodingeka kuphela ukuzama ukufaka okusha Ama-Text and Image Banners, idalwe ngesandla noma ngokuzenzakalela, ibabela imibala efanele efakwe kuyo, ngoba, okwamanje, iletha kuphela i-4 ngokuzenzakalela Okuphuzi, okuluhlaza okwesibhakabhaka, okubomvu nokumhlophe for the amaphikseli (izinhlamvu) weBanner.

Isithombe esijwayelekile seziphetho ze-athikili

Isiphetho

Siyethemba lokhu "okuthunyelwe okuwusizo okuncane" cishe «BTColor», okuwusizo okuncane Isikripthi se-bash evumela ukuhlobisa i- Isikhumulo con amatheksthi emibhalo nezithombe en umbala omnyama nomhlophe noma ogcwele, ikakhulukazi ngalezo zinsuku zokugubha i- #DesktopFriday I-Linuxeros; yiba nentshisekelo nokusetshenziswa okuhle, ngakho konke «Comunidad de Software Libre y Código Abierto» kanye negalelo elikhulu ekusabalalisweni kwemvelo emangalisayo, enkulu futhi ekhulayo yezicelo ze «GNU/Linux».

Okwamanje, uma ukuthandile lokhu publicación, Ungami yabelana ngayo nabanye, kumawebhusayithi wakho owathandayo, iziteshi, amaqembu noma imiphakathi yokuxhumana nabantu noma amasistimu wokuthumela imiyalezo, okungcono mahhala, okuvulekile kanye / noma okuphephe kakhulu njenge yocingoIsignaliI-mastodon noma enye ye- I-Fediverse, okungcono.

Futhi khumbula ukuvakashela ikhasi lethu lasekhaya ku- «KusukaLinux» ukuhlola izindaba eziningi, kanye nokujoyina isiteshi sethu esisemthethweni se- Yocingo kusuka ku-DesdeLinuxNgenkathi, ukuthola eminye imininingwane, ungavakashela noma yikuphi Umtapo wolwazi oku-inthanethi njengoba I-OpenLibra y JedIT, ukufinyelela nokufunda izincwadi zedijithali (ama-PDF) ngalesi sihloko noma ezinye.


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Yiba ngowokuqala ukuphawula

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.