-
Notifications
You must be signed in to change notification settings - Fork 0
/
bunnyfetch
executable file
·52 lines (40 loc) · 900 Bytes
/
bunnyfetch
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
#!/bin/bash
# Tiny colored fetch script
# Requires Typicons Font to display the icons
# elenapan @ github
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
d=$'\e[1m'
t=$'\e[0m'
v=$'\e[7m'
# Items
sep=
s=$d$f0$sep$t
w=
wifiname="$(iwgetid | cut -d \" -f2)"
h=
wmname="$(xprop -id $(xprop -root -notype | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}') -notype -f _NET_WM_NAME 8t | grep "WM_NAME" | cut -f2 -d \")"
k=
kernel="$(uname -r | cut -d '-' -f1)"
r=
resolution="$(xwininfo -root | grep geometry | awk '{print $2}' | cut -d + -f1)"
sh=
shell=$(basename $SHELL)
# (\ /)
# ( · ·)
# c(")(")
# (\ /)
# ( . .)
# c(")(")
tput clear
cat << EOF
$d$f1$h $t$wmname
(\ /) $f3$k $t$kernel
( $d. .$t) $f2$sh $t$shell
c($f1"$t)($f1"$t) $f5$r $t$resolution
$f4$w $t$wifiname
EOF