parent
6befb284ad
commit
409556a4aa
@ -0,0 +1 @@
|
|||||||
|
{% calculate append = 'skip' %}
|
@ -0,0 +1 @@
|
|||||||
|
{% calcualte path='/boot', name='grub', package='sys-boot/grub:2' %}
|
@ -0,0 +1 @@
|
|||||||
|
{% calculate append=skip, main.cl.chroot_status %}
|
@ -0,0 +1,2 @@
|
|||||||
|
{% calculate format='backgrounds', convert='png', stretch, path='/boot/grub', name='grub-calculate.png', source=custom.theme.grub.background, pkg('media-gfx/imagemagick) or pkg(media-gfx/graphicsmagick), mirror %}
|
||||||
|
1920x1080
|
@ -0,0 +1,12 @@
|
|||||||
|
{% calculate format='openrc', path='/etc/default', name='grub' %}
|
||||||
|
GRUB_DISABLE_RECOVERY=true
|
||||||
|
GRUB_DEFAULT=saved
|
||||||
|
GRUB_TIMEOUT=2
|
||||||
|
!GRUB_TERMINAL=del
|
||||||
|
GRUB_GFXMODE="1024x768"
|
||||||
|
GRUB_BACKGROUND="/boot/grub/grub-calculate.png"
|
||||||
|
GRUB_COLOR_NORMAL="white/black"
|
||||||
|
GRUB_COLOR_HIGHLIGHT="magenta/black"
|
||||||
|
!GRUB_VIDEO_BACKEND=del
|
||||||
|
GRUB_GFXPAYLOAD_LINUX=keep
|
||||||
|
GRUB_FONT="/usr/share/grub/unicode.pf2"
|
@ -0,0 +1 @@
|
|||||||
|
{% calculate path='/etc' %}
|
@ -0,0 +1 @@
|
|||||||
|
{% calculate format='regex', chmod='755', comment='#', autoupdate %}
|
@ -0,0 +1,21 @@
|
|||||||
|
{% calculate comment='#', chmod='755' %}
|
||||||
|
# grub-mkconfig helper script.
|
||||||
|
# Copyright 2016 Calculate Ltd. http://www.calculate-linux.org
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
if [ "x$GRUB_TERMINAL_OUTPUT" != xconsole ]; then
|
||||||
|
cat <<EOF
|
||||||
|
{% if custom.theme.grub.background and exists(custom.theme.grub.background) %}
|
||||||
|
set color_normal={{ custom.theme.grub.gfx.text.color }}
|
||||||
|
set color_highlight={{ custom.theme.grub.gfx.text.highlight.color }}
|
||||||
|
{% else %}
|
||||||
|
set color_normal={{ custom.theme.grub.text.color }}
|
||||||
|
set color_highlight={{ custom.theme.grub.text.highlight.color }}
|
||||||
|
{% endif %}
|
||||||
|
EOF
|
||||||
|
fi
|
@ -0,0 +1,16 @@
|
|||||||
|
{% calculate comment='#', chmod='700', not main.cl.chroot_status and install.cl.grub.pwd, unbound %}
|
||||||
|
#!/bin/sh
|
||||||
|
# grub-mkconfig helper script.
|
||||||
|
# Copyright 2016 Calculate Ltd. http://www.calculate-linux.org
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
cat <<EOF
|
||||||
|
set superusers="root"
|
||||||
|
password_pbkdf2 root {{ install.cl.grub.pwd }}
|
||||||
|
export superusers
|
||||||
|
EOF
|
@ -0,0 +1 @@
|
|||||||
|
{% calculate append='remove', name='07_passwd', not install.cl.grub.pwd or main.cl.chroot_status %}
|
@ -0,0 +1,10 @@
|
|||||||
|
{% calculate chmod='755', format='regex', multiline, comment='#', autoupdate %}
|
||||||
|
<reg>(replacement_title=.*?Advanced options.*?)g'\)"</reg>
|
||||||
|
<text>\1g') ..."</text>
|
||||||
|
<reg>("submenu '.*?Advanced options for.*?grub_quote\))'</reg>
|
||||||
|
<text>\1 ...'</text>
|
||||||
|
<reg>(menuentry .*?\)') (\$\{CLASS\})</reg>
|
||||||
|
<text>\1 --unrestricted \2</text>
|
||||||
|
<reg>(submenu.*? ...') (\\\$menu)</reg>
|
||||||
|
<text>\1 --unrestricted \2</text>
|
||||||
|
|
@ -0,0 +1,9 @@
|
|||||||
|
{% calculate chmod='755', format='regex', multiline, comment='#', autoupdate %}
|
||||||
|
<reg>(replacement_title=.*?Advanced options.*?)g'\)"</reg>
|
||||||
|
<text>\1g') ..."</text>
|
||||||
|
<reg>("submenu '.*?Advanced options for.*?grub_quote\))'</reg>
|
||||||
|
<text>\1 ...'</text>
|
||||||
|
<reg>(menuentry .*?\)') (\$CLASS|--class)</reg>
|
||||||
|
<text>\1 --unrestricted \2</text>
|
||||||
|
<reg>(submenu .*?...') (\\\$menuentry)</reg>
|
||||||
|
<text>\1 --unrestricted \2</text>
|
@ -0,0 +1 @@
|
|||||||
|
{% calculate path='/usr/share/plymouth/themes', name='calculate', package='sys-boot/plymouth-calculate-plugin' %}
|
@ -0,0 +1,2 @@
|
|||||||
|
{% calculate append='remove', name='.shutdown.md5', not(custom.theme.splash.shutdown.type == 'logo' and custom.theme.splash.shutdown.picture and exists(custom.theme.splash.shutdown.picture) and (pkg('media-gfx/imagemagick') or pkg('media-gfx/graphicsmagick'))) %}
|
||||||
|
|
@ -0,0 +1,2 @@
|
|||||||
|
{% calculate format='backgrounds', stretch, convert='png', custom.theme.splash.shutdown.type == 'logo' and custom.theme.splash.shutdown.picture and exists(custom.theme.splash.shutdown.picture) and (pkg('media-gfx/imagemagick') or pkg('media-gfx/graphicsmagick')), source=custom.theme.splash.shutdown.picture, mirror %}
|
||||||
|
original
|
@ -0,0 +1 @@
|
|||||||
|
{% calculate append='remove', name='.shutdown.png', not(custom.theme.splash.shutdown.type == 'logo' and custom.theme.splash.shutdown.picture and exists(custom.theme.splash.shutdown.picture) and (pkg('media-gfx/imagemagick') or pkg('media-gfx/graphicsmagick'))) %}
|
@ -0,0 +1 @@
|
|||||||
|
{% calculate not (custom.theme.splash.shutdown.type == 'background' and custom.theme.splash.shutdown.picture and exists(custom.theme.splash.shutdown.picture)) %}
|
@ -0,0 +1 @@
|
|||||||
|
{% calculate custom.theme.splash.shutdown.type == 'background' and custom.theme.splash.shutdown.picture and exists(custom.theme.splash.shutdown.picture) %}
|
@ -0,0 +1,33 @@
|
|||||||
|
{% calculate format='background', convert='png', stretch, name='', source=custom.theme.splash.shutdown.picture mirror exists(custom.theme.splash.shutdown.picture) %}
|
||||||
|
{% main.cl.chroot_status %}
|
||||||
|
1024x768
|
||||||
|
640x480
|
||||||
|
800x480
|
||||||
|
800x600
|
||||||
|
1024x576
|
||||||
|
1024x600
|
||||||
|
1200x800
|
||||||
|
1280x800
|
||||||
|
1280x720
|
||||||
|
1280x768
|
||||||
|
1280x1024
|
||||||
|
1360x768
|
||||||
|
1366x768
|
||||||
|
1368x768
|
||||||
|
1400x1050
|
||||||
|
1440x900
|
||||||
|
1680x945
|
||||||
|
1680x1050
|
||||||
|
1920x1080
|
||||||
|
1920x1200
|
||||||
|
1600x768
|
||||||
|
1600x900
|
||||||
|
1600x1200
|
||||||
|
2048x1152
|
||||||
|
2560x1440
|
||||||
|
2560x1600
|
||||||
|
{% else %}
|
||||||
|
{{ install.os.resolution.framebuffer|cut(0,'-') }}
|
||||||
|
{{ install.os.resolution.x11 }}
|
||||||
|
1024x768
|
||||||
|
{% endif %}
|
@ -0,0 +1 @@
|
|||||||
|
{% calculate append='remove', name='boot.md5', custom.theme.splash.silent.type != 'logo' or not custom.theme.splash.silent.picture or not exists(custom.theme.splash.silent.picture) or not (pkg('media-gfx/imagemagick') or pkg('media-gfx/graphicsmagick')) %}
|
@ -0,0 +1,2 @@
|
|||||||
|
{% calculate format='backgrounds', stretch, convert='png', custom.theme.splash.silent.type == 'logo' and custom.theme.splash.silent.picture and exists(custom.theme.splash.silent.picture) and (pkg('media-gfx/imagemagick') or pkg('media-gfx/graphicsmagick')), source=custom.theme.splash.silent.picture, mirror %}
|
||||||
|
original
|
@ -0,0 +1 @@
|
|||||||
|
{% calculate append='remove', name='boot.png', custom.theme.splash.silent.type != 'logo' or not custom.theme.splash.silent.picture or not exists(custom.theme.splash.silent.picture) or not (pkg('media-gfx/imagemagick') or pkg('media-gfx/graphicsmagick')) %}
|
@ -0,0 +1 @@
|
|||||||
|
{% calculate append='remove', name='boot', custom.theme.splash.silent.type != 'background' or custom.theme.splash.silent.picture or not exists(custom.theme.splash.silent.picture) %}
|
@ -0,0 +1 @@
|
|||||||
|
{% calculate custom.theme.splash.silent.type == 'background' and custom.theme.splash.silent.picture and exists(custom.theme.splash.silent.picture) %}
|
@ -0,0 +1,33 @@
|
|||||||
|
{% calculate format='backgrounds', convert='png', stretch, name='', source=custom.theme.splash.silent.picture, mirror, exists(custom.theme.splash.silent.picture) %}
|
||||||
|
{% if main.cl.chroot_status %}
|
||||||
|
1024x768
|
||||||
|
640x480
|
||||||
|
800x480
|
||||||
|
800x600
|
||||||
|
1024x576
|
||||||
|
1024x600
|
||||||
|
1200x800
|
||||||
|
1280x800
|
||||||
|
1280x720
|
||||||
|
1280x768
|
||||||
|
1280x1024
|
||||||
|
1360x768
|
||||||
|
1366x768
|
||||||
|
1368x768
|
||||||
|
1400x1050
|
||||||
|
1440x900
|
||||||
|
1680x945
|
||||||
|
1680x1050
|
||||||
|
1920x1080
|
||||||
|
1920x1200
|
||||||
|
1600x768
|
||||||
|
1600x900
|
||||||
|
1600x1200
|
||||||
|
2048x1152
|
||||||
|
2560x1440
|
||||||
|
2560x1600
|
||||||
|
{% else %}
|
||||||
|
{{ install.os.resolution.framebuffer|cut(0,'-') }}
|
||||||
|
{{ install.os.resolution.x11 }}
|
||||||
|
1024x768
|
||||||
|
{% endif %}
|
@ -0,0 +1,45 @@
|
|||||||
|
{% calculate format='kde', path='/usr/share/plymouth/themes/calculate', pkg('sys-boot/plymouth-calculate-plugin') >= '0.9.5' %}
|
||||||
|
[Plymouth Theme]
|
||||||
|
Name=Calculate
|
||||||
|
Description=Calculate spinner theme
|
||||||
|
ModuleName=calculate
|
||||||
|
|
||||||
|
[calculate]
|
||||||
|
ImageDir=/usr/share/plymouth/themes/calculate
|
||||||
|
|
||||||
|
[boot-up]
|
||||||
|
BackgroundStartColor=0x{{ custom.theme.splash.silent.background.color.begin }}
|
||||||
|
BackgroundEndColor=0x{{ custom.theme.splash.silent.background.color.end }}
|
||||||
|
{% if custom.theme.splash.silent.picture and custom.theme.splash.silent.type == 'background' %}
|
||||||
|
WatermarkImage=/usr/share/plymouth/themes/calculate/boot
|
||||||
|
{% elif custom.theme.splash.silent.picture and custom.theme.splash.silent.type == 'logo' %}
|
||||||
|
WatermarkImage=/usr/share/plymouth/themes/calculate/boot.png
|
||||||
|
{% else %}
|
||||||
|
!WatermarkImage
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
[shutdown]
|
||||||
|
BackgroundStartColor=0x{{ custom.theme.splash.shutdown.background.color.begin }}
|
||||||
|
BackgroundEndColor=0x{{ custom.theme.splash.shutdown.background.color.begin }}
|
||||||
|
{% if custom.theme.splash.shutdown.picture and custom.theme.splash.shutdown.type == 'background' %}
|
||||||
|
WatermarkImage=/usr/share/plymouth/themes/calculate/.shutdown
|
||||||
|
{% elif custom.theme.splash.shutdown.picture and custom.theme.splash.shutdown.type == 'logo' %}
|
||||||
|
WatermarkImage=/usr/share/plymouth/themes/calculate/.shutdown.png
|
||||||
|
{% else %}
|
||||||
|
!WatermarkImage=
|
||||||
|
{% endif %}
|
||||||
|
TitleColor=0x{{ custom.theme.splash.shutdown.text.color }}
|
||||||
|
Title=S h u t t i n g d o w n
|
||||||
|
|
||||||
|
[reboot]
|
||||||
|
BackgroundStartColor=0x{{ custom.theme.splash.shutdown.background.color.begin }}
|
||||||
|
BackgroundEndColor=0x{{ custom.theme.splash.shutdown.background.color.begin }}
|
||||||
|
{% if custom.theme.splash.shutdown.picture and custom.theme.splash.shutdown.type == 'background' %}
|
||||||
|
WatermarkImage=/usr/share/plymouth/themes/calculate/.shutdown
|
||||||
|
{% elif custom.theme.splash.shutdown.picture and custom.theme.splash.shutdown.type == 'logo' %}
|
||||||
|
WatermarkImage=/usr/share/plymouth/themes/calculate/.shutdown.png
|
||||||
|
{% else %}
|
||||||
|
!WatermarkImage=
|
||||||
|
{% endif %}
|
||||||
|
TitleColor=0x{{ custom.theme.splash.shutdown.text.color }}
|
||||||
|
Title=S h u t t i n g d o w n
|
@ -0,0 +1 @@
|
|||||||
|
{% calculate append='skip', package='sys-boot/plymouth' %}
|
@ -0,0 +1,10 @@
|
|||||||
|
{% calculate format='kde', path='/usr/share/plymouth' %}
|
||||||
|
[Daemon]
|
||||||
|
{% if pkg('sys-boot/plymouth-calculate-plugin') %}
|
||||||
|
Theme=calculate
|
||||||
|
{% else %}
|
||||||
|
Theme=spinner
|
||||||
|
{% endif %}
|
||||||
|
ShowDelay=1
|
||||||
|
FBDeviceTimeout=3
|
||||||
|
DeviceTimeout=20
|
Loading…
Reference in new issue