Skip to content

Commit

Permalink
v2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
1337kid committed May 17, 2024
1 parent 9ae2064 commit 821f259
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions NoiceGRUB.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@
if not os.path.exists(f'./fonts/{font_file}'):
richprint(f'[red bold][Error] {font_file} is not present in ./fonts/ [/red bold]')
exit()
choice = Confirm.ask("[yellow bold]Would you like to customise the font ?[/yellow bold]")
if choice:
table,fonts = font_table()
console.print(table)
font_choice = IntPrompt.ask("[yellow]Choice[/yellow]",choices=[str(i) for i in range(1,len(fonts)+1)])
preset[1]['font_family'] = fonts[font_choice]
font_size = IntPrompt.ask("[yellow]Font size in pixels (integer) [/yellow]")
preset[1]['selection_font'] = font_size

if preset[0]=='Kewl': NgCommonProps(preset).export_theme()
elif preset[0]=='Noice': NgNoiceTemplate(preset).export_theme()
Expand Down
2 changes: 1 addition & 1 deletion noicegrub/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ def gen_font_name(font_name,size):
8 `b8 8 8 8 8 . 8. 8 8 8 8 8 8 8 8
8 `8 `YooP' 8 `YooP' `Yooo' `YooP8 8 8 `YooP' 8oooP'
..:::..:.....::..:.....::.....::....8 :..:::..:.....::......:
:::::::: @1337kid ::::::::::::::::::8 :::::::: v2.0.2 :::::::\n'''
:::::::: @1337kid ::::::::::::::::::8 :::::::: v2.1 :::::::::\n'''
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ install() {
echo "GRUB_FONT=$THEME_PATH/$font_name" >> /etc/default/grub #font location

#========= GRUB config disable console
if [[ ! $(grep "^GRUB_TERMINAL" /etc/default/grub) ]];then
if [[ $(grep "^GRUB_TERMINAL" /etc/default/grub) ]];then
printf "\033[92m[+] \033[94mDisabling GRUB_TERMINAL=console (to enable graphical GRUB menu)\n"
sudo sed -i 's/GRUB_TERMINAL/#GRUB_TERMINAL/' /etc/default/grub
fi
Expand Down

0 comments on commit 821f259

Please sign in to comment.