-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathgrub_custom
96 lines (78 loc) · 2.19 KB
/
grub_custom
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
#GRUB in Arch Linux Custom
YouTube Video: https://www.youtube.com/watch?v=4QaQqnsIP18
Custom Menu Entries
/etc/grub.d/40_custom
Find Windows (mount the partition) BIOS/MBR
sudo grub-probe --target=fs_uuid /run/media/midfingr/3648CA5548CA1411/bootmgr
OR
sudo grub-probe --target=fs_uuid '/run/media/midfingr/Win10 x64/'
# Other
menuentry "System shutdown" {
echo "System shutting down..."
halt
}
menuentry "System restart" {
echo "System rebooting..."
reboot
}
##################################
/etc/default/grub
Custom Font
sudo grub-mkfont --output=/boot/grub/DejaVuSansMono.pf2 --size=24 /usr/share/fonts/TTF/DejaVuSansMono.ttf
GRUB_FONT="/boot/grub/DejaVuSansMono.pf2"
GRUB_COLOR
Wallpaper
/boot/grub
for jpg non-indexed, 8-bit
resolution must match grub
## Example Theme (theme.txt)
title-text: ""
title-font: "Sans Regular 12"
title-color: "#000000"
message-font: "Fixed Regular 13"
message-color: "#FFFFFF"
message-bg-color: "#f6f6f6"
desktop-color: "#000000"
desktop-image: "splash4.png"
terminal-font: "Fixed Regular 13"
+ boot_menu {
left = 30%
width = 40%
top = 150
height = 50%
item_font = "Sans Regular 12"
selected_item_font = "Sans Regular 14"
item_color = "#ffffff"
selected_item_color = "#ffff00"
menu_color = "#ff0000"
item_height = 38
item_padding = 15
item_spacing = 5
selected_item_pixmap_style= "select_bkg_*.png"
scrollbar = true
scrollbar_width = 24
}
+ progress_bar {
id = "__timeout__"
left = 15%
top = 80%
height = 20
width = 70%
font = "DejaVu Sans Regular 12"
text_color = "#000"
fg_color = "#fff"
bg_color = "#6ac"
border_color = "#fff"
text = "@TIMEOUT_NOTIFICATION_LONG@"
}
# Show an informational message.
+ hbox {
top = 100%-35
left = 20%
+ label {text = "Enter: " font = "Sans 12" color = "#000000" align = "left"}
+ label {text = "Boot Selection " font = "Sans 12" color = "#ffff00" align = "left"}
+ label {text = "E: " font = "Sans 12" color = "#000000" align = "left"}
+ label {text = "Edit Selection " font = "Sans 12" color = "#ffff00" align = "left"}
+ label {text = "C: " font = "Sans 12" color = "#000000" align = "left"}
+ label {text = "GRUB Commandline" font = "Sans 12" color = "#ffff00" align = "left"}
}