Lain theme
|
@ -0,0 +1,6 @@
|
||||||
|
theme.txt text=auto
|
||||||
|
|
||||||
|
*.pf2 binary
|
||||||
|
*.png binary
|
||||||
|
|
||||||
|
background.png filter=lfs diff=lfs merge=lfs
|
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 3.9 KiB |
|
@ -1,70 +0,0 @@
|
||||||
grub2-theme-install(){
|
|
||||||
DESTDIR=$1
|
|
||||||
|
|
||||||
THEME_NAME='Antergos-Default'
|
|
||||||
|
|
||||||
# Filename of theme definition file.
|
|
||||||
THEME_DEF_FILE='theme.txt'
|
|
||||||
|
|
||||||
# Filename of the image to use for the terminal background.
|
|
||||||
BG_IMG='background.png'
|
|
||||||
|
|
||||||
# The resolution the theme was designed to show best at, 640x480, 1024x768 etc,
|
|
||||||
# or "any" for any resolution (resolution independent).
|
|
||||||
THEME_RES='1600x1200x24,any'
|
|
||||||
|
|
||||||
# Directory containing theme files to install.
|
|
||||||
SELF=$(dirname $0)
|
|
||||||
|
|
||||||
DEFAULT_PREFIX="${DESTDIR}/boot/grub"
|
|
||||||
|
|
||||||
|
|
||||||
# Write variables to <grub_sysconfdir/default/grub.
|
|
||||||
SET_GRUB_VAR () {
|
|
||||||
i=$(sed -n "s,^#\?\s\?$1,&,p" "${GRUB_CONF}")
|
|
||||||
if [[ -z "$i" ]] ; then
|
|
||||||
echo -e "\n$1$2" >> "${GRUB_CONF}"
|
|
||||||
else
|
|
||||||
sed -i.bak "s,^#\?\s\?$1.*,$3$1$2," "${GRUB_CONF}"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ ! -d "${DEFAULT_PREFIX}" ]; then
|
|
||||||
GRUB_PREFIX="${DESTDIR}/boot/efi/grub";
|
|
||||||
else GRUB_PREFIX="${DEFAULT_PREFIX}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
GRUB_CFG="${GRUB_PREFIX}/grub.cfg"
|
|
||||||
|
|
||||||
GRUB_CONF="${DESTDIR}/etc/default/grub"
|
|
||||||
|
|
||||||
# Create the theme's directory.
|
|
||||||
THEME_DIR="${GRUB_PREFIX}/themes/${THEME_NAME}"
|
|
||||||
if [[ -d "${THEME_DIR}" ]] ; then
|
|
||||||
rm -r "${THEME_DIR}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p "${THEME_DIR}"
|
|
||||||
echo -e "Installing theme to: ${THEME_DIR}."
|
|
||||||
|
|
||||||
# Copy the theme's files to the theme's directory.
|
|
||||||
for i in ${self}/* ; do
|
|
||||||
cp -r "${i}" "${THEME_DIR}/$(basename "${i}")"
|
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
# Set GRUB's resolution to match that of the theme.
|
|
||||||
|
|
||||||
SET_GRUB_VAR 'GRUB_GFXMODE=' "${THEME_RES}"
|
|
||||||
|
|
||||||
# Set the theme.
|
|
||||||
SET_GRUB_VAR 'GRUB_THEME=' $(echo "${THEME_DIR}/${THEME_DEF_FILE}")
|
|
||||||
|
|
||||||
# Generate new grub.cfg
|
|
||||||
$(grub-mkconfig -o "${GRUB_CFG}")
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
touch /tmp/.grub2-theme-install.lock
|
|
||||||
grub2-theme-install $1
|
|
||||||
rm /tmp/.grub2-theme-install.lock
|
|
|
@ -1,67 +0,0 @@
|
||||||
# Antergos grub2 theme
|
|
||||||
|
|
||||||
desktop-image: "background.png"
|
|
||||||
|
|
||||||
title-text: ""
|
|
||||||
|
|
||||||
terminal-box: "terminal_box_*.png"
|
|
||||||
terminal-font: "Gnu Unifont Mono Regular 16"
|
|
||||||
|
|
||||||
+ boot_menu {
|
|
||||||
left = 45%
|
|
||||||
width = 50%
|
|
||||||
top = 30%
|
|
||||||
height = 50%
|
|
||||||
|
|
||||||
item_font = "Raleway Regular 16"
|
|
||||||
item_color = "#fff"
|
|
||||||
item_height = 48
|
|
||||||
item_icon_space = 8
|
|
||||||
item_spacing = 2
|
|
||||||
|
|
||||||
selected_item_font = "Raleway Regular 16"
|
|
||||||
selected_item_color= "#000"
|
|
||||||
selected_item_pixmap_style = "select_*.png"
|
|
||||||
|
|
||||||
icon_height = 48
|
|
||||||
icon_width = 48
|
|
||||||
|
|
||||||
scrollbar = true
|
|
||||||
scrollbar_width = 20
|
|
||||||
scrollbar_thumb = "slider_*.png"
|
|
||||||
}
|
|
||||||
|
|
||||||
+ progress_bar {
|
|
||||||
id = "__timeout__"
|
|
||||||
|
|
||||||
left = 28%
|
|
||||||
top = 100%-95
|
|
||||||
height = 20
|
|
||||||
width = 40%
|
|
||||||
|
|
||||||
font = "Raleway Regular 14"
|
|
||||||
|
|
||||||
text_color = "#000"
|
|
||||||
fg_color = "#236ee0"
|
|
||||||
|
|
||||||
bg_color = "#fff"
|
|
||||||
border_color = "#fff"
|
|
||||||
|
|
||||||
# instead of the above colors, use pixmaps
|
|
||||||
# bar_style = "progress_bar_*.png"
|
|
||||||
# highlight_style = "progress_highlight_*.png"
|
|
||||||
|
|
||||||
text = "@TIMEOUT_NOTIFICATION_LONG@"
|
|
||||||
}
|
|
||||||
# Show an informational message.
|
|
||||||
+ hbox {
|
|
||||||
top = 100%-60
|
|
||||||
left = 31%
|
|
||||||
height = 20
|
|
||||||
+ label {text = "Enter: Boot Selection E: Edit Selection C: GRUB Commandline" font = "Raleway Regular 14" color = "#FFFFFF" align = "center"}
|
|
||||||
}
|
|
||||||
+ hbox {
|
|
||||||
top = 100%-30
|
|
||||||
left = 24%
|
|
||||||
+ label {text = "For Non-Graphical Boot: Add systemd.unit=multi-user.target to the kernel command line." font = "Raleway Regular 14" color = "#FFFFFF" align = "center"}
|
|
||||||
}
|
|
|
@ -1,2 +1,5 @@
|
||||||
# grub2-theme-antergos
|
# grub2-theme-lain
|
||||||
Antergos default Grub2 theme
|
|
||||||
|
Serial Experiments Lain theme for grub based on [grub2-theme-antergos][]
|
||||||
|
|
||||||
|
[grub2-theme-antergos]: https://github.com/Antergos/grub2-theme-antergos
|
||||||
|
|
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 287 B After Width: | Height: | Size: 287 B |
Before Width: | Height: | Size: 197 B After Width: | Height: | Size: 197 B |
Before Width: | Height: | Size: 265 B After Width: | Height: | Size: 265 B |
Before Width: | Height: | Size: 269 B After Width: | Height: | Size: 269 B |
Before Width: | Height: | Size: 178 B After Width: | Height: | Size: 178 B |
Before Width: | Height: | Size: 94 B After Width: | Height: | Size: 94 B |
Before Width: | Height: | Size: 194 B After Width: | Height: | Size: 194 B |
Before Width: | Height: | Size: 128 B After Width: | Height: | Size: 128 B |
Before Width: | Height: | Size: 210 B After Width: | Height: | Size: 210 B |
Before Width: | Height: | Size: 101 B After Width: | Height: | Size: 101 B |
Before Width: | Height: | Size: 126 B After Width: | Height: | Size: 126 B |
Before Width: | Height: | Size: 123 B After Width: | Height: | Size: 123 B |
Before Width: | Height: | Size: 97 B After Width: | Height: | Size: 97 B |
|
@ -0,0 +1,57 @@
|
||||||
|
# Lain grub2 theme
|
||||||
|
|
||||||
|
desktop-image: "background.png"
|
||||||
|
|
||||||
|
title-text: ""
|
||||||
|
|
||||||
|
terminal-box: "terminal_box_*.png"
|
||||||
|
terminal-font: "Gnu Unifont Mono Regular 16"
|
||||||
|
|
||||||
|
+ boot_menu {
|
||||||
|
left = 25%
|
||||||
|
width = 50%
|
||||||
|
top = 30%
|
||||||
|
height = 50%
|
||||||
|
|
||||||
|
item_color = "#0000a8"
|
||||||
|
item_height = 48
|
||||||
|
item_icon_space = 8
|
||||||
|
item_spacing = 2
|
||||||
|
|
||||||
|
selected_item_color= "#fff"
|
||||||
|
selected_item_pixmap_style = "select_*.png"
|
||||||
|
|
||||||
|
icon_height = 48
|
||||||
|
icon_width = 48
|
||||||
|
|
||||||
|
scrollbar = true
|
||||||
|
scrollbar_width = 20
|
||||||
|
scrollbar_thumb = "slider_*.png"
|
||||||
|
}
|
||||||
|
|
||||||
|
+ progress_bar {
|
||||||
|
id = "__timeout__"
|
||||||
|
|
||||||
|
left = 28%
|
||||||
|
top = 100%-95
|
||||||
|
height = 20
|
||||||
|
width = 40%
|
||||||
|
|
||||||
|
text_color = "#000"
|
||||||
|
fg_color = "#236ee0"
|
||||||
|
|
||||||
|
bg_color = "#fff"
|
||||||
|
border_color = "#fff"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Show an informational message.
|
||||||
|
+ hbox {
|
||||||
|
top = 100%-60
|
||||||
|
left = 28%
|
||||||
|
height = 20
|
||||||
|
+ label {
|
||||||
|
text = "Enter: Boot Selection E: Edit Selection C: GRUB Console"
|
||||||
|
color = "#FFF"
|
||||||
|
align = "center"
|
||||||
|
}
|
||||||
|
}
|