-
Notifications
You must be signed in to change notification settings - Fork 9
/
thecat.sh
executable file
·79 lines (69 loc) · 3.21 KB
/
thecat.sh
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
#!/bin/bash
f=3 b=4
for j in f b; do
for i in {0..7}; do
printf -v $j$i %b "\e[${!j}${i}m"
done
done
bld=$'\e[1m'
rst=$'\e[0m'
inv=$'\e[7m'
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 /home/hokage/.fehbg | cut -c 16-70)
# Settings from ~/.Xdefaults
xdef="~/.Xdefaults"
TermFont="Terminus 9"
# Time and date
time=$( date "+%H.%M")
date=$( date "+%a %d %b" )
# OS
OS=$(uname -r -o -m)
# WM version
AwVer=$(subtle --version | head -1 | cut -d' ' -f2 | sed 's/debian\///g' )
# 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)
dist=$(cat /etc/issue | sed 's/ /n/')
COUNT=$(cat /proc/cpuinfo | grep 'model name' | sed -e 's/.*: //' | wc -l)
cpu=$(cat /proc/cpuinfo)
#laptop=$(dmidecode | grep Product)
laptop2=$(echo "Lenovo Ideapad z470") #dmidecode kudu pake sudo :hammers
cat << EOF
$bld
$f7
$f7 .c0N. .'c. $H the$f1 cat
$f7 'Okdl:' ;OMMMMKOKNMMW:;o0l .'.
$f7 ;MMMMMMWWMMMMMMMMMMMMMMMMMXKWMMK $H $f4$time$NC - $f7$date
$f7 'MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMK $f6 $USER $f7@ $f1$HOSTNAME
$f7 NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMO
$f7 dMMMMMMMMMMMMMMMMMMMMMMMMMMMMM: GTK Theme »$f4 $GtkTheme$NC
$f7 'MMMMMMMMMMMMMMMMMMMMMMMMMMMMM. GTK Icons »$f4 $GtkIcon$NC
$f7 'MMMMMMMMMMMMMMMMMMMMMMMMMMMMM; GTK Font »$f4 $GtkFont$NC
$f7 lMMMMM MMMMMMMMMM MMMMMMMMMM, Term Font »$f4 $TermFont$NC
$f7 KMMMMM MMMMMMMMMM MMMMMMMMMM. Uptime »$f4 $uptime $uptime2 hours
$f7 ;WMMMMMkNMMMMMMMMMMONMMMMMMMMMW: HDD »$f4 $f2$use$f4 / $size$gb
$f7 oNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMO Packages »$f2 $pacman
$f7 .,cxKWMMMMMMMMMMMMMMMMMMMMMMMMMMMXdxo
$f7 ;kWMMMMMMMMMMMMMMMMMMMMMMMMMMMM:
$f7 .::, .;ok0NMMMMWNK0kdoc;' 'cxK0 OS »$f4 $OS$NC
$f1 .:cc:;;. WM »$f4 Awesome 3.5.1
$f1 .o0MMMK' @ »$f7 Arch Linux
$f1 xMMM:
$f1 KMMMl $f2 AMD FX-8350 @ 4.5ghz
$f1 .MMMMo
$f1 ,MMMMx
$f1 oMMMMx
$f1 OMMMMO $f7"And you can go fuck yourself, bitch"
$f1 .OMMMd $f7 the$f1 cat
$f1 :Nl
EOF