Skip to content

Commit d87dbe0

Browse files
authored
v1.8.1 - New theme installer
v1.8.1
2 parents c5f64f9 + 8e52bc1 commit d87dbe0

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

NoiceGRUB.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from rich.markdown import Markdown
1010
from rich.prompt import IntPrompt,Confirm
1111
from rich.panel import Panel
12-
import subprocess,os
12+
import os
1313

1414
console = Console()
1515

@@ -33,6 +33,6 @@
3333
if Confirm.ask('[yellow bold]Do you want to place the generated theme in /boot/grub/themes/[/yellow bold]'):
3434
richprint('\n[green bold]Executing scripts/install.sh ... [/green bold]')
3535
os.system('chmod +x ./scripts/install.sh')
36-
subprocess.run(['sudo','./scripts/install.sh'],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL)
36+
os.system('sudo ./scripts/install.sh')
3737
richprint('[green bold]Done')
3838
richprint('[green bold]Thankyou for using NoiceGRUB[/green bold]')

noicegrub/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ def preset_table():
2828
8 `b8 8 8 8 8 . 8. 8 8 8 8 8 8 8 8
2929
8 `8 `YooP' 8 `YooP' `Yooo' `YooP8 8 8 `YooP' 8oooP'
3030
..:::..:.....::..:.....::.....::....8 :..:::..:.....::......:
31-
:::::::: @1337kid ::::::::::::::::::8 ::::::: v1.8 ::::::::::\n'''
31+
:::::::: @1337kid ::::::::::::::::::8 ::::::: v1.8.1 :::::::::\n'''

scripts/install.sh

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,26 @@
11
#!/bin/bash
2+
printf "\033[94m\033[1m"
3+
cat <<EOF
4+
_ _ _ _
5+
___ ___|_|___ ___ ___ ___ _ _| |_ _ _ ___ _| | |_
6+
| | . | | _| -_| . | _| | | . | | | . | . | _|
7+
|_|_|___|_|___|___|_ |_| |___|___|___| _|___|_|
8+
|___| |_|
9+
NoiceGRUB Theme Installer v1.2
10+
11+
EOF
12+
213
if [[ $(id -u) != "0" ]]
314
then
4-
echo "Current user does not have root perms"
15+
printf "\033[91mCurrent user does not have root perms\n"
516
exit
617
fi
718

19+
printf "\033[92m[+] \033[94mCreating /boot/grub/themes/noicegrub\n"
820
mkdir -p /boot/grub/themes/noicegrub
21+
printf "\033[92m[+] \033[94mCopying files\n"
922
cp ./export/* /boot/grub/themes/noicegrub
1023
sed -i 's/.*GRUB_THEME=.*//' /etc/default/grub
1124
echo "GRUB_THEME=/boot/grub/themes/noicegrub/theme.txt" >> /etc/default/grub
25+
printf "\033[92m[+] \033[94mRunning update-grub\n\033[92m"
1226
update-grub

0 commit comments

Comments
 (0)