yotsuba (scrot, raw, dl)
hokagemadura Nov 09, 2014 (terms/colors)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | #!/bin/sh
initializeColor() {
esc=""
blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m"
yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m"
cyanf="${esc}[36m"; whitef="${esc}[37m"
blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m"
yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m"
cyanb="${esc}[46m"; whiteb="${esc}[47m"
boldon="${esc}[1m"; boldoff="${esc}[22m"
italicson="${esc}[3m"; italicsoff="${esc}[23m"
ulon="${esc}[4m"; uloff="${esc}[24m"
invon="${esc}[7m"; invoff="${esc}[27m"
reset="${esc}[0m"
}
initializeColor
gtkrc="$HOME/.gtkrc-2.0"
GtkTheme=$( grep "gtk-theme-name" "$gtkrc" | cut -d\" -f2 )
GtkIcon=$( grep "gtk-icon-theme-name" "$gtkrc" | cut -d\" -f2 )
GtkFont=$( grep "gtk-font-name" "$gtkrc" | cut -d\" -f2 )
# Wallpaper set by feh
Wallpaper=$(cat ~/.fehbg | cut -c 16-70)
# Settings from ~/.Xdefaults
xdef="~/.Xdefaults"
TermFont="$(grep 'font' ~/.Xdefaults | awk '{print $3}')"
# Time and date
time=$( date "+%H.%M")
date=$( date "+%a %d %b" )
# OS
OS=$(uname -r)
dist=$(cat /etc/*-release | grep -i name | cut -d'=' -d'"' -f2 | sed -n 1p)
bit=$(uname -m)
# WM version
wm=$(wmctrl -m | grep -i name | awk '{print $2}')
# Other
UPT=`uptime | awk -F'( |,)' '{print $2}' | awk -F ":" '{print $1}'`
uptime=$(uptime | sed 's/.*up \([^,]*\), .*/\1/')
uptime2=$(uptime | sed -nr 's/.*\s+([[:digit:]]{1,2}):[[:digit:]]{2},.*/\1/p')
size=$(df | grep '^/dev/[hs]d' | awk '{s+=$2} END {printf("%.0f\n", s/1048576)}')
use=$(df | grep '^/dev/[hs]d' | awk -M '{s+=$3} END {printf("%.0f\n", s/1048576)}')
gb=$(echo "G")
pac=$(pacman -Qe | wc -l)
pacman=$(pacman -Q | wc -l)
COUNT=$(cat /proc/cpuinfo | grep 'model name' | sed -e 's/.*: //' | wc -l)
cpu=$(lscpu | grep 'Model name' | awk -F ':' '{print $2}' | cut -c13-40)
#laptop=$(dmidecode | grep Product)
lap1=$(cat /sys/class/dmi/id/sys_vendor)
lap2=$(cat /sys/class/dmi/id/product_name)
cat << EOF
${greenf}
cocco c cccc ccccoc cccccc cccocc ccoc
occoccc ccoc ccc ccccccco cccccccocccccccc THIS IS INTERESTING!!
cocco ccccoccccc cccccccccoccccccoccccccc
ococcccccocccc ccccco ccccccoocccccc WM: $wm
ococccco cccoc ccccc cccccccccccc GTK: $GtkTheme
ococccc occ cccc ccccc cccc Font: $GtkFont
ococccc ccc oocccccccccc cc Icon: $GtkIcon
ococcc cccc ccccc cccc
ococcccc${blackf} coooc kookkkkc${greenf} c Kernel: $OS
cccococ ${blackf}oc okko ckook00kkc${greenf} c CPU: $cpu
ccoooc ${blackf}okkkkkko ckkkkk0kko${greenf} o Packet: $pacman
cocccc ${blackf}ckokkook ckookookc${greenf} c HDD: $use/$size$gb
co c c ${blackf}coooooc coooc${greenf}
cc $dist $bit
c
cc c
cccc ${blackf}------------${greenf} ok || ||
c.cccc ${blackf}\ //${greenf} cokkk || || _===_
ccccccccc ${blackf}\ //${greenf} cccokokk ||===|| ___=
cccccccoocccccc${blackf}--------${greenf}'' cokkkkk || || = =
okk0kkkkkkko cokkkkoco || || '==='=
okkkkkkkkkkkkkoooookkkkkkoc
ckkkkkkkkcokkkkkkkkkkkkkko
EOF
|
x
Notes
committed to Yotsuba&!