forked from LordShenron/Grub-Themes
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathInstall-Arch.sh
executable file
·38 lines (29 loc) · 1.11 KB
/
Install-Arch.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
#!/bin/bash
#
# Copyright © 2018, "Shenron007" <[email protected]>
#
# This software is licensed under the terms of the GNU General Public
# License version 2, as published by the Free Software Foundation, and
# may be copied, distributed, and modified under those terms.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Please maintain this if you use this script or any part of it
ROOT_UID=0
if [ "$UID" -eq "$ROOT_UID" ]; then
# Copy Griffin
cp -a Griffin /boot/grub/themes
# Set Griffin
grep "GRUB_THEME=" /etc/default/grub 2>&1 >/dev/null && sed -i '/GRUB_THEME=/d' /etc/default/grub
echo "GRUB_THEME=\"/boot/grub/themes/Griffin/theme.txt\"" >> /etc/default/grub
# update grub
grub-mkconfig -o /boot/grub/grub.cfg
echo -e "/n All done!"
notify-send "All done!" -i face-smile
else
echo -e "/n Please run this script by root..."
notify-send "Please run this script by root..." -i notification
fi