Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use BGRT Plymouth theme #4

Merged
merged 17 commits into from
Jan 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
142 changes: 142 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
# Plymouth Theme

elementary Plymouth theme using the ACPI BGRT graphics as background

## Building and installing

You'll need the following dependencies:
* plymouth
* plymouth-theme-spinner

Verify that this theme is set as default:

```bash
$ sudo update-alternatives --config default.plymouth
There are 2 choices for the alternative default.plymouth (providing /usr/share/plymouth/themes/default.plymouth).

Selection Path Priority Status
------------------------------------------------------------
0 /usr/share/plymouth/themes/bgrt/bgrt.plymouth 110 auto mode
1 /usr/share/plymouth/themes/bgrt/bgrt.plymouth 110 manual mode
* 2 /usr/share/plymouth/themes/elementary/elementary.plymouth 100 manual mode
```

Copy the latest theme

```bash
sudo cp -r elementary/* /usr/share/plymouth/themes/elementary/
```

and build a new initramfs to apply the changes

```bash
sudo update-initramfs -u -k all
```

If you want to test this is theme in your running X11 session, you'll need the following dependencies:
* plymouth-x11

## Testing

⚠️ Plymouth draws over your desktop. Please note that you will need Terminal 2 on a different workspace to close Plymouth. ⚠️

If you want to take screenshots, you should quit Wingpanel before

```bash
killall wingpanel
```

### Terminal 1

#### Tab 1

Start Plymouth daemon

```bash
sudo plymouthd --no-daemon --debug
```

#### Tab 2

Show splash

```bash
sudo plymouth show-splash
```

### Terminal 2

With this terminal you can test the following modes and user interactions.
When you're done, you can close Plymouth

```bash
sudo plymouth quit
```

### Modes

#### Boot up

<details><summary><code>sudo plymouth change-mode --boot-up</code></summary>

![Boot up](data/screenshots/boot-up.png "Boot up")

</details>

#### Shutdown

<details><summary><code>sudo plymouth change-mode --shutdown</code></summary>

![Shutdown](data/screenshots/shutdown.png "Shutdown")

</details>

#### Reboot

<details><summary><code>sudo plymouth change-mode --reboot</code></summary>

![Reboot](data/screenshots/reboot.png "Reboot")

</details>

#### Updates

<details><summary><code>sudo plymouth change-mode --updates</code></summary>

![Updates](data/screenshots/updates.png "Updates")

</details>

#### Firmware upgrade

<details><summary><code>sudo plymouth change-mode --firmware-upgrade</code></summary>

![Firmware upgrade](data/screenshots/firmware-upgrade.png "Firmware upgrade")

</details>

#### System upgrade

<details><summary><code>sudo plymouth change-mode --system-upgrade</code></summary>

![System upgrade](data/screenshots/system-upgrade.png "System upgrade")

</details>

### User interaction

#### Message

<details><summary><code>sudo plymouth message --text="The quick brown fox jumps over the lazy dog"</code></summary>

![Message](data/screenshots/message.png "Message")

</details>

#### Password prompt

<details><summary><code>sudo plymouth --ask-for-password</code></summary>

![Password prompt](data/screenshots/password-prompt.png "Password prompt")

</details>
Binary file added data/screenshots/boot-up.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/screenshots/firmware-upgrade.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/screenshots/message.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/screenshots/password-prompt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/screenshots/reboot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/screenshots/shutdown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/screenshots/system-upgrade.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/screenshots/updates.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion debian/compat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7
9
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Standards-Version: 4.5.0

Package: plymouth-theme-elementary
Architecture: all
Depends: ${misc:Depends}, plymouth, plymouth-label
Depends: ${misc:Depends}, plymouth, plymouth-label, plymouth-theme-spinner
Provides: plymouth-theme
Breaks: elementary-default-settings (<<5.9.0)
Replaces: elementary-default-settings (<<5.9.0), plymouth (<< 0.8.1-1~)
Expand Down
Binary file added elementary/animation-0001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added elementary/animation-0002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added elementary/animation-0003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added elementary/animation-0004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added elementary/animation-0005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added elementary/animation-0006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added elementary/animation-0007.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added elementary/animation-0008.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added elementary/animation-0009.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added elementary/animation-0010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added elementary/animation-0011.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added elementary/animation-0012.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions elementary/animation-0013.png
1 change: 1 addition & 0 deletions elementary/animation-0014.png
1 change: 1 addition & 0 deletions elementary/animation-0015.png
1 change: 1 addition & 0 deletions elementary/animation-0016.png
1 change: 1 addition & 0 deletions elementary/animation-0017.png
1 change: 1 addition & 0 deletions elementary/animation-0018.png
1 change: 1 addition & 0 deletions elementary/animation-0019.png
1 change: 1 addition & 0 deletions elementary/animation-0020.png
1 change: 1 addition & 0 deletions elementary/animation-0021.png
1 change: 1 addition & 0 deletions elementary/animation-0022.png
1 change: 1 addition & 0 deletions elementary/animation-0023.png
1 change: 1 addition & 0 deletions elementary/animation-0024.png
1 change: 1 addition & 0 deletions elementary/animation-0025.png
1 change: 1 addition & 0 deletions elementary/animation-0026.png
1 change: 1 addition & 0 deletions elementary/animation-0027.png
1 change: 1 addition & 0 deletions elementary/animation-0028.png
1 change: 1 addition & 0 deletions elementary/animation-0029.png
1 change: 1 addition & 0 deletions elementary/animation-0030.png
1 change: 1 addition & 0 deletions elementary/animation-0031.png
1 change: 1 addition & 0 deletions elementary/animation-0032.png
1 change: 1 addition & 0 deletions elementary/animation-0033.png
1 change: 1 addition & 0 deletions elementary/animation-0034.png
1 change: 1 addition & 0 deletions elementary/animation-0035.png
1 change: 1 addition & 0 deletions elementary/animation-0036.png
File renamed without changes
Binary file added elementary/bullet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added elementary/capslock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions elementary/create-frames.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

# Remove any extra symlinks/frames
for i in {0013..9999}; do rm -f animation-${i}.png; done
rm -f throbber-*.png

# Duplicate frames
for i in {0001..0024}
do
ln -s animation-"$i".png animation-00$(( 10#$i + 12 )).png
done

# Create throbber symlinks
for frame in animation-*.png
do
ln -s "$frame" "${frame/animation/throbber}"
done

56 changes: 52 additions & 4 deletions elementary/elementary.plymouth
Original file line number Diff line number Diff line change
@@ -1,8 +1,56 @@
[Plymouth Theme]
Name=elementary
Description=A theme that features a blank background with a logo.
ModuleName=script
Description=elementary theme using the ACPI BGRT graphics as background
ModuleName=two-step

[script]
[two-step]
Font=Inter 12
TitleFont=Inter Bold 32
ImageDir=/usr/share/plymouth/themes/elementary
ScriptFile=/usr/share/plymouth/themes/elementary/elementary.script
DialogHorizontalAlignment=.5
DialogVerticalAlignment=.7
TitleHorizontalAlignment=.5
TitleVerticalAlignment=.382
HorizontalAlignment=.5
VerticalAlignment=.7
Transition=none
TransitionDuration=0.0
BackgroundStartColor=0x000000
BackgroundEndColor=0x000000
ProgressBarBackgroundColor=0x606060
ProgressBarForegroundColor=0xffffff
DialogClearsFirmwareBackground=false
MessageBelowAnimation=true

[boot-up]
UseEndAnimation=false
UseFirmwareBackground=true

[shutdown]
UseEndAnimation=false
UseFirmwareBackground=true

[reboot]
UseEndAnimation=false
UseFirmwareBackground=true

[updates]
SuppressMessages=true
ProgressBarShowPercentComplete=true
UseProgressBar=true
_Title=Installing Updates...
_SubTitle=Do not turn off your computer

[system-upgrade]
SuppressMessages=true
ProgressBarShowPercentComplete=true
UseProgressBar=true
_Title=Upgrading System...
_SubTitle=Do not turn off your computer

[firmware-upgrade]
SuppressMessages=true
ProgressBarShowPercentComplete=true
UseProgressBar=true
_Title=Upgrading Firmware...
_SubTitle=Do not turn off your computer
Loading