diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..62da8ba --- /dev/null +++ b/.gitattributes @@ -0,0 +1,6 @@ +theme.txt text=auto + +*.pf2 binary +*.png binary + +background.png filter=lfs diff=lfs merge=lfs diff --git a/Antergos-Default/antergoslogo.png b/Antergos-Default/antergoslogo.png deleted file mode 100644 index 38d2eea..0000000 Binary files a/Antergos-Default/antergoslogo.png and /dev/null differ diff --git a/Antergos-Default/background.png b/Antergos-Default/background.png deleted file mode 100644 index be54dab..0000000 Binary files a/Antergos-Default/background.png and /dev/null differ diff --git a/Antergos-Default/icons/antergos.png b/Antergos-Default/icons/antergos.png deleted file mode 100644 index 1e941fd..0000000 Binary files a/Antergos-Default/icons/antergos.png and /dev/null differ diff --git a/Antergos-Default/icons/debian.png b/Antergos-Default/icons/debian.png deleted file mode 100644 index f0fc948..0000000 Binary files a/Antergos-Default/icons/debian.png and /dev/null differ diff --git a/Antergos-Default/icons/gentoo.png b/Antergos-Default/icons/gentoo.png deleted file mode 100644 index 74afd5e..0000000 Binary files a/Antergos-Default/icons/gentoo.png and /dev/null differ diff --git a/Antergos-Default/icons/kubuntu.png b/Antergos-Default/icons/kubuntu.png deleted file mode 100644 index f66bdba..0000000 Binary files a/Antergos-Default/icons/kubuntu.png and /dev/null differ diff --git a/Antergos-Default/icons/linuxmint.png b/Antergos-Default/icons/linuxmint.png deleted file mode 100644 index e146149..0000000 Binary files a/Antergos-Default/icons/linuxmint.png and /dev/null differ diff --git a/Antergos-Default/icons/opensuse.png b/Antergos-Default/icons/opensuse.png deleted file mode 100644 index f07c0e3..0000000 Binary files a/Antergos-Default/icons/opensuse.png and /dev/null differ diff --git a/Antergos-Default/icons/recovery.png b/Antergos-Default/icons/recovery.png deleted file mode 100644 index 2e97815..0000000 Binary files a/Antergos-Default/icons/recovery.png and /dev/null differ diff --git a/Antergos-Default/icons/sabayon.png b/Antergos-Default/icons/sabayon.png deleted file mode 100644 index cfe69e1..0000000 Binary files a/Antergos-Default/icons/sabayon.png and /dev/null differ diff --git a/Antergos-Default/install.sh b/Antergos-Default/install.sh deleted file mode 100755 index 9890036..0000000 --- a/Antergos-Default/install.sh +++ /dev/null @@ -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_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 diff --git a/Antergos-Default/rlwy14.pf2 b/Antergos-Default/rlwy14.pf2 deleted file mode 100644 index 7544815..0000000 Binary files a/Antergos-Default/rlwy14.pf2 and /dev/null differ diff --git a/Antergos-Default/rlwy16.pf2 b/Antergos-Default/rlwy16.pf2 deleted file mode 100644 index dd6e817..0000000 Binary files a/Antergos-Default/rlwy16.pf2 and /dev/null differ diff --git a/Antergos-Default/theme.txt b/Antergos-Default/theme.txt deleted file mode 100644 index ee3088d..0000000 --- a/Antergos-Default/theme.txt +++ /dev/null @@ -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"} -} diff --git a/README.md b/README.md index d6feb04..656d23c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ -# grub2-theme-antergos -Antergos default Grub2 theme +# grub2-theme-lain + +Serial Experiments Lain theme for grub based on [grub2-theme-antergos][] + +[grub2-theme-antergos]: https://github.com/Antergos/grub2-theme-antergos diff --git a/Antergos-Default/ascii.pf2 b/ascii.pf2 similarity index 100% rename from Antergos-Default/ascii.pf2 rename to ascii.pf2 diff --git a/background.png b/background.png new file mode 100644 index 0000000..8a6df2c --- /dev/null +++ b/background.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e096c15b6ad3b5fb98f4fd283ba0154c70bd1040aec180098d3492ebc9fbce28 +size 3560300 diff --git a/icons/anarchy.png b/icons/anarchy.png new file mode 100644 index 0000000..498f67e Binary files /dev/null and b/icons/anarchy.png differ diff --git a/icons/antergos.png b/icons/antergos.png new file mode 100644 index 0000000..0e13a49 Binary files /dev/null and b/icons/antergos.png differ diff --git a/icons/arch.png b/icons/arch.png new file mode 100644 index 0000000..c1c8056 Binary files /dev/null and b/icons/arch.png differ diff --git a/Antergos-Default/icons/fedora.png b/icons/fedora.png similarity index 55% rename from Antergos-Default/icons/fedora.png rename to icons/fedora.png index 62393d6..4ffbba9 100644 Binary files a/Antergos-Default/icons/fedora.png and b/icons/fedora.png differ diff --git a/Antergos-Default/icons/macosx.png b/icons/macosx.png similarity index 84% rename from Antergos-Default/icons/macosx.png rename to icons/macosx.png index bf1a265..6c93161 100644 Binary files a/Antergos-Default/icons/macosx.png and b/icons/macosx.png differ diff --git a/icons/rebornos.png b/icons/rebornos.png new file mode 100644 index 0000000..796dc1f Binary files /dev/null and b/icons/rebornos.png differ diff --git a/icons/recovery.png b/icons/recovery.png new file mode 100644 index 0000000..44b5f08 Binary files /dev/null and b/icons/recovery.png differ diff --git a/Antergos-Default/icons/ubuntu.png b/icons/ubuntu.png similarity index 85% rename from Antergos-Default/icons/ubuntu.png rename to icons/ubuntu.png index 7926e9f..b78979e 100644 Binary files a/Antergos-Default/icons/ubuntu.png and b/icons/ubuntu.png differ diff --git a/Antergos-Default/icons/windows.png b/icons/windows.png similarity index 87% rename from Antergos-Default/icons/windows.png rename to icons/windows.png index fdfeb0a..ae32118 100644 Binary files a/Antergos-Default/icons/windows.png and b/icons/windows.png differ diff --git a/Antergos-Default/select_c.png b/select_c.png similarity index 100% rename from Antergos-Default/select_c.png rename to select_c.png diff --git a/Antergos-Default/slider_c.png b/slider_c.png similarity index 100% rename from Antergos-Default/slider_c.png rename to slider_c.png diff --git a/Antergos-Default/slider_n.png b/slider_n.png similarity index 100% rename from Antergos-Default/slider_n.png rename to slider_n.png diff --git a/Antergos-Default/slider_s.png b/slider_s.png similarity index 100% rename from Antergos-Default/slider_s.png rename to slider_s.png diff --git a/Antergos-Default/terminal_box_c.png b/terminal_box_c.png similarity index 100% rename from Antergos-Default/terminal_box_c.png rename to terminal_box_c.png diff --git a/Antergos-Default/terminal_box_e.png b/terminal_box_e.png similarity index 100% rename from Antergos-Default/terminal_box_e.png rename to terminal_box_e.png diff --git a/Antergos-Default/terminal_box_n.png b/terminal_box_n.png similarity index 100% rename from Antergos-Default/terminal_box_n.png rename to terminal_box_n.png diff --git a/Antergos-Default/terminal_box_ne.png b/terminal_box_ne.png similarity index 100% rename from Antergos-Default/terminal_box_ne.png rename to terminal_box_ne.png diff --git a/Antergos-Default/terminal_box_nw.png b/terminal_box_nw.png similarity index 100% rename from Antergos-Default/terminal_box_nw.png rename to terminal_box_nw.png diff --git a/Antergos-Default/terminal_box_s.png b/terminal_box_s.png similarity index 100% rename from Antergos-Default/terminal_box_s.png rename to terminal_box_s.png diff --git a/Antergos-Default/terminal_box_se.png b/terminal_box_se.png similarity index 100% rename from Antergos-Default/terminal_box_se.png rename to terminal_box_se.png diff --git a/Antergos-Default/terminal_box_sw.png b/terminal_box_sw.png similarity index 100% rename from Antergos-Default/terminal_box_sw.png rename to terminal_box_sw.png diff --git a/Antergos-Default/terminal_box_w.png b/terminal_box_w.png similarity index 100% rename from Antergos-Default/terminal_box_w.png rename to terminal_box_w.png diff --git a/theme.txt b/theme.txt new file mode 100644 index 0000000..55743ff --- /dev/null +++ b/theme.txt @@ -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" + } +}