-
Notifications
You must be signed in to change notification settings - Fork 3
/
status.sh
120 lines (106 loc) · 2.46 KB
/
status.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#!/bin/bash
#color
Green='\033[0;32m' # Green
NC='\033[0m' # No Color
config-validity()
{
wget -O conf-original.conf "https://raw.githubusercontent.com/SharafatKarim/neofetch-customization/master/config/config.conf%20(default)"
if cmp -s -- "$HOME/.config/neofetch/config.conf" "conf-original.conf"
then
echo ""
echo -e "${Green}you're using the default neofetch${NC}"
echo ""
else
echo ""
echo -e "${Green}you're not using the default neofetch${NC}"
echo ""
fi
rm conf-original.conf
}
config-script-validity()
{
wget -O conf-original-2.conf "https://raw.githubusercontent.com/SharafatKarim/neofetch-customization/master/config/config.conf"
if cmp -s -- "$HOME/.config/neofetch/config.conf" "conf-original-2.conf"
then
echo ""
echo -e "${Green}you've used this GitHub repo to install theme and didn't customize further${NC}"
echo ""
fi
rm conf-original-2.conf
}
logo-validity()
{
wget -O logo-original.png "https://github.com/SharafatKarim/neofetch-customization/raw/master/logo/icon.png"
if cmp -s -- "$HOME/.config/neofetch/logo.png" "logo-original.png"
then
echo ""
echo -e "${Green}arch logo from this script is installed and you didn't customize further${NC}"
echo ""
fi
rm logo-original.png
}
neofetch-exists()
{
if which neofetch >/dev/null
then
echo ""
echo -e "${Green}Neofetch is installed.${NC}"
echo ""
else
echo ""
echo Neofetch is not installed.
echo ""
fi
}
config-exists()
{
if test -f "$HOME/.config/neofetch/config.conf"
then
echo ""
echo -e "${Green}neofetch config is installed${NC}"
echo ""
else
echo ""
echo -e "${Green}neofetch config not found,${NC}"
echo ""
fi
}
config-backup-exists()
{
if test -f "$HOME/.config/neofetch/config-backup.conf"
then
echo ""
echo -e "${Green}config-backup is installed${NC}"
echo ""
else
echo ""
echo -e "${Green}neofetch config-backup not found${NC}"
echo ""
fi
}
logo-backup-exists()
{
if test -f "$HOME/.config/neofetch/logo-backup.png"
then
echo ""
echo -e "${Green}logo-backup is installed${NC}"
echo ""
fi
}
logo-exists()
{
if test -f "$HOME/.config/neofetch/logo.png"
then
echo ""
echo -e "${Green}logo is installed${NC}"
echo ""
fi
}
neofetch-exists
config-exists
config-validity
config-script-validity
logo-exists
config-backup-exists
logo-backup-exists
logo-validity