Logo al estilo Archey y Screenfetch

Post Reply
Message
Author
User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

Logo al estilo Archey y Screenfetch

#1 Post by nilsonmorales »

Probé esas dos aplicaciones pero no tuve buenos resultados asi que segui buscando hasta que halle un script bastante interesante y que le da un estilo muy personalizado al abrir la terminal
bueno descargan y descomprimen el script en /usr/bin yo lo nombre mipuppy ustedes pueden llamarlo como prefieran.

Algunos tips para la terminal ( Roxterm )

apariencia--tamaño--ancho 90 alto 20

preferencias--editar perfil actual--tipografia--monospace y tamaño 12

comando--comando personalizado--le ponen bash


luego editan /root/.bashrc al final agregan
/usr/bin/mipuppy
abren terminal deberian ver algo como esto, tengo roxterm asi que no tuve problemas configurando el ancho y alto de la ventan al abrir

Image

Me gustaria que en sistema dijera Puppylinux o Passaggio o Precise dependiendo del caso pero ni hardinfo muestra el nombre de la distro solo dice unknow no recuerdo en fin eso se lo dejo a los sabios

Saludos.

Otro mas este le puse mipuppy2
Image
Attachments
mipuppy3.tar
(10 KiB) Downloaded 718 times
mipuppy2.tar
(3.5 KiB) Downloaded 778 times
mipuppy.tar
(4 KiB) Downloaded 906 times
Last edited by nilsonmorales on Sun 17 Mar 2013, 05:09, edited 3 times in total.

mama21mama

#2 Post by mama21mama »

Reemplazar linea 10 por

Code: Select all

#OS=`uname -o`
OS=`source /etc/DISTRO_SPECS && echo "$DISTRO_NAME $DISTRO_VERSION"`

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

#3 Post by nilsonmorales »

Genial mama21mama de nuamwer guan

Image

Queda groso, a primera vista se nota que uso puppy de entrada

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

#4 Post by nilsonmorales »

Gracias al amigo Algabe usuario arch en el IRC se le puede dar mas estetica al prompt junto con el logo
mipuppy3 agregado en primer post

editan /etc/profile

comentan linea 71 asi

#PS1="# "

y en linea 72 agregan

PS1="┌─[\u][\@][\w]\n└─[\H][\$] "

veran algo asi

Image

User avatar
walter leonardo
Posts: 234
Joined: Thu 10 Dec 2009, 22:10

#5 Post by walter leonardo »

excelente nilson

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

Puppy id tag version 0.1

#6 Post by nilsonmorales »

Nueva version.
Para poder ver que Administrador de ventanas necesitan wmctrl
Como configurar
abre el archivo ~/bashrc y agrega ésta linea al final.

Code: Select all

/usr/bin/puppy_idtag
comenta el logo que no te guste o crea uno propio.
Image
Attachments
puppy_idtag-0.1.pet
Logo al estilo screenfetch en Puppy
(2.09 KiB) Downloaded 577 times
wmctrl-1.07.6.pet
Necesario para la información del administrador de ventanas
(12.91 KiB) Downloaded 550 times
Last edited by nilsonmorales on Mon 09 Jun 2014, 03:13, edited 1 time in total.
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

User avatar
josejp2424
Posts: 556
Joined: Sun 01 Aug 2010, 22:35
Contact:

joya

#7 Post by josejp2424 »

joya te quedo nilsonmorales

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

#8 Post by nilsonmorales »

Si quieren customizar el promt de otra forma pueden descargar este paquete y editar el archivo ~/.bashrc asi agregando estas lineas al final:

Code: Select all

function _update_ps1() {
 export PS1="$(~/.powerline-shell.py $? 2> /dev/null)"
}
 export PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
Queda de ésta manera,
Image
powerline_shell.pet
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

#9 Post by nilsonmorales »

Aqui algunos logos para puppy_idtag
Ubuntu
Image
Arch
Image
Haga el suyo.
EDITADO
Me preguntaron por la salida de colores aqui se las dejo.
Black 0;30 Dark Gray 1;30
Blue 0;34 Light Blue 1;34
Green 0;32 Light Green 1;32
Cyan 0;36 Light Cyan 1;36
Red 0;31 Light Red 1;31
Purple 0;35 Light Purple 1;35
Brown/Orange 0;33 Yellow 1;33
Light Gray 0;37 White 1;37
Attachments
puppy_idtag-ubuntu.gz
Remover .gz
(1.43 KiB) Downloaded 511 times
puppy_idtag-arch.gz
Remover .gz
(1.24 KiB) Downloaded 506 times
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

#10 Post by nilsonmorales »

Este es usando la salida tput muy interesante.
Image
Attachments
puppy_idtag-debian.gz
remover .gz
(2.51 KiB) Downloaded 496 times
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

#11 Post by nilsonmorales »

crunchbang
Image
Attachments
puppy_idtag-crunchbang.gz
remover falso .gz
(2.17 KiB) Downloaded 511 times
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

#12 Post by nilsonmorales »

Backtrack
Image
Attachments
puppy_idtag-backtrack.gz
Remover falso .gz
(2.12 KiB) Downloaded 517 times
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

#13 Post by nilsonmorales »

Para los que ya estan familiarizados con el puppy_idtag agregué 2 variables mas, para identificar el tema de iconos y el tema gtk. Aqui el script.

Code: Select all

#!/bin/bash
# puppy_idtag v.0.1 by nilsonmorales
# i18n, i10n nilsonmorales 08062014
# usage: edit ~/.bashrc and add this line at the end 
# /usr/bin/puppy_idtag
# you can comment the logo that you dont like or create a new.

export TEXTDOMAIN=puppy_idtag
export OUTPUT_CHARSET=UTF-8
name=`uname -s`
arch=`uname -m`
hostname=`hostname`
#OS=`uname -o`
OS=`source /etc/DISTRO_SPECS && echo "$DISTRO_NAME"`
user=`whoami`
ver=`uname -r`
shell=`echo $SHELL`
cpu=$(awk -F':' '/model name/{ print $2 }' /proc/cpuinfo | head -n 1 | tr -s " " | sed 's/^ //');
uptime=`uptime`
Memory=`free -m | awk 'NR==2{printf "%s/%sMB (%.2f%)\n", $3,$2,$3*100/$2 }'`
wm=`wmctrl -m | grep "Name:" | awk '{print $2}'`
disk=`df -h | awk '$NF=="/"{printf "%d/%dGB (%s)\n", $3,$2,$5}'`
icth=`cat "/etc/desktop_icon_theme"` 
gtktheme=`grep '^include "/usr/share/themes/' /root/.gtkrc-2.0 | cut -f 5 -d '/'`

# Change color output variables

var1=`echo -e "\e[1;34m$name\e[0m"`
var2=`echo -e "\e[1;34m$arch\e[0m"`
var3=`echo -e "\e[1;34m$OS\e[0m"`
var4=`echo -e "\e[1;34m$ver\e[0m"`
var5=`echo -e "\e[1;31m$hostname\e[0m"`
var6=`echo -e "\e[1;36m$user\e[0m"`
var7=`echo -e "\e[1;34m$shell\e[0m"`
var8=`echo -e "\e[1;34m$cpu\e[0m"`
var9=`echo -e "\e[1;34m$uptime\e[0m"`
var10=`echo -e "\e[1;34m$Memory\e[0m"`
var11=`echo -e "\e[1;34m$wm\e[0m"`
var12=`echo -e "\e[1;34m$disk\e[0m"`
var13=`echo -e "\e[1;34m$icth\e[0m"`
var14=`echo -e "\e[1;34m$gtktheme\e[0m"`

### LINUX LOGO

echo -e ""                         
echo -e ""                        
echo -e "\e[1;30m         #####            \e[1;32m$(gettext 'Window Manager:') $var11\e[0m"
echo -e "\e[1;30m        #######           \e[1;32m$(gettext 'Memory:') $var10\e[0m"
echo -e "\e[1;30m        ##\e[1;33mO\e[1;30m#\e[1;33mO\e[1;30m##\e[1;30m           \e[1;32m$(gettext 'System:') $var3\e[0m"
echo -e "\e[1;30m        #\e[1;33m#####\e[1;30m#           \e[1;32m$(gettext 'Kernel:') $var1\e[0m"
echo -e "\e[1;30m      ##\e[1;37m##\e[1;33m###\e[1;37m##\e[1;30m##         \e[1;32m$(gettext 'User:') $var6@$var5\e[0m"
echo -e "\e[1;30m     #\e[1;37m##########\e[1;30m#         \e[1;32m$(gettext 'Version:') $var4\e[0m"
echo -e "\e[1;30m    #\e[1;37m############\e[1;30m#   \e[1;30m\e[1;33m     \e[1;32m$(gettext 'Arch:') $var2\e[0m "
echo -e "\e[1;30m    #\e[1;37m############\e[1;30m#        \e[1;32mShell: $var7\e[0m"
echo -e "\e[1;30m   ##\e[1;30m#\e[1;37m###########\e[1;30m###   \e[1;32m   CPU: $var8\e[0m"
echo -e "\e[1;33m ######\e[1;30m#\e[1;37m#######\e[1;30m#\e[1;33m######\e[1;32m    $(gettext 'Icon theme:') $var13\e[0m"
echo -e "\e[1;33m #######\e[1;30m#\e[1;37m#####\e[1;30m#\e[1;33m#######\e[1;32m    $(gettext 'Gtk theme:') $var14\e[0m"
echo -e "\e[1;33m   #####\e[1;30m#######\e[1;33m#####"
echo -e ""
Adjunto tambien el archivo de traduccion a español.
Attachments
puppy_idtag_es_NLS.tar.gz
Descomprimir el archivo
(936 Bytes) Downloaded 347 times
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

User avatar
josejp2424
Posts: 556
Joined: Sun 01 Aug 2010, 22:35
Contact:

linea kernel

#14 Post by josejp2424 »

la linea del kernel me gusta mas así

Code: Select all

 echo -e "\e[1;30m     #\e[1;37m##########\e[1;30m##       \e[1;32m$(gettext 'Kernel:') $var1 $var4\e[0m"

Post Reply