Skip to content

Commit

Permalink
Add splashscreens and backup/restore on changescreen install/remove (#…
Browse files Browse the repository at this point in the history
…724)

* Add splashscreens and backup/restore on changescreen install/remove

* Only backup if splashscreens are missing

* update docs
  • Loading branch information
Eeems committed Nov 22, 2023
1 parent 7820db0 commit b1744e4
Show file tree
Hide file tree
Showing 5 changed files with 885 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/package.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ math | Apps to assist the user in performing mathematical tasks.
readers | Apps for reading and annotating documents (PDF, EPUB, …).
screensharing | Apps for streaming the display between the PC and tablet.
templates | Templates for xochitl notebooks.
splashscreens | Splashscreens for device startup, poweroff, suspend, etc.
utils | System tools and various apps.

If the package does not fit into one of the existing sections, you are free to create a new one and document it here.
Expand Down
12 changes: 11 additions & 1 deletion package/rmscreens/package → package/changescrn/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(changescrn)
pkgdesc="Change sleep/suspend/poweroff/reboot screens"
url=https://github.com/pr0fsmith/rMscreens/
pkgver=1.0.0-1
pkgver=1.0.0-2
timestamp=2022-03-15T01:28:33Z
section="utils"
maintainer="pr0fsmith <[email protected]>"
Expand All @@ -17,3 +17,13 @@ sha256sums=(3c2e8b0952d848d7326c0a4ce45da625dd7fd0fbc6b564a2d40c3b97015138e3)
package() {
install -Dm755 "$srcdir"/changescrn "$pkgdir/opt/bin/changescrn"
}

configure() {
if [ ! -d /opt/usr/share/backupscrns ] || [ -z "$(ls -A /opt/usr/share/backupscrns)" ]; then
changescrn -b
fi
}

preremove() {
changescrn -r all
}
50 changes: 50 additions & 0 deletions package/splashcreens-wavy-lines/package
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/usr/bin/env bash
# Copyright (c) 2023 The Toltec Contributors
# SPDX-License-Identifier: MIT

pkgnames=(
splashscreen-starting-wavey-lines
splashscreen-suspended-wavey-lines
)
url=https://github.com/EnglishLFC/reMarkable
pkgver=0.0.0-1
timestamp=2021-03-19T18:46:40Z
section="splashscreens"
maintainer="Eeems <[email protected]>"
license=BSD-2-Clause
installdepends=(changescrn)

source=("https://github.com/EnglishLFC/reMarkable/archive/a06b10ea9f28c784e6941085a30944c0489450f4.zip")
sha256sums=(ec5f0321342bf6b48bb1431f4b1cf4416c37681879b3ec6c9375f889077a0b7f)

splashscreen-starting-wavey-lines() {
pkgdesc="Barnsley Fern battery empty splashscreen"
replaces=("splashscreen-starting")
conflicts=("splashscreen-starting")
package() {
install -D -m 755 -T "$srcdir"/splash/splash.png \
"$pkgdir"/opt/share/remarkable/splashscreens/starting.png
}
configure() {
changescrn -c starting /opt/share/remarkable/splashscreens/starting.png
}
postremove() {
changescrn -r starting
}
}

splashscreen-suspended-wavey-lines() {
pkgdesc="Barnsley Fern power off splashscreen"
replaces=("splashscreen-suspended")
conflicts=("splashscreen-suspended")
package() {
install -D -m 755 -t "$pkgdir"/opt/share/remarkable/splashscreens \
"$srcdir"/splash/suspended.png
}
configure() {
changescrn -c suspended /opt/share/remarkable/splashscreens/suspended.png
}
postremove() {
changescrn -r suspended
}
}
118 changes: 118 additions & 0 deletions package/splashscreens-1094/package
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
#!/usr/bin/env bash
# Copyright (c) 2023 The Toltec Contributors
# SPDX-License-Identifier: MIT

pkgnames=(
splashscreen-poweroff-gallifreyan
splashscreen-suspended-gallifreyan
splashscreen-suspended-gallifreyan-dark
splashscreen-starting-gallifreyan
splashscreen-suspended-gallifreyan-2
splashscreen-suspended-flower-pause
)
url=https://github.com/1094/rM-customizations
pkgver=0.0.0-1
timestamp=2023-05-15T11:27:58Z
section="splashscreens"
maintainer="Eeems <[email protected]>"
license=CC-BY-NC-3.0
installdepends=(changescrn)

source=("https://github.com/1094/rM-customizations/archive/623171a1268e9ff45a8669fa36637e3eabd4ca40.zip")
sha256sums=(8cc8d02fe04c12bacfc798c1f6737cb55f581f191e2bf54147256df265318a31)

splashscreen-poweroff-gallifreyan() {
pkgdesc="Gallifreyan poweroff splashscreen"
replaces=("splashscreen-poweroff")
conflicts=("splashscreen-poweroff")
package() {
install -D -m 755 -t "$pkgdir"/opt/share/remarkable/splashscreens \
"$srcdir"/splash-screens/gallifreyan/poweroff.png
}
configure() {
changescrn -c poweroff /opt/share/remarkable/splashscreens/poweroff.png
}
postremove() {
changescrn -r poweroff
}
}

splashscreen-suspended-gallifreyan() {
pkgdesc="Gallifreyan suspended splashscreen"
replaces=("splashscreen-suspended")
conflicts=("splashscreen-suspended")
package() {
install -D -m 755 -T "$srcdir"/splash-screens/gallifreyan/sleeping-v1.png \
"$pkgdir"/opt/share/remarkable/splashscreens/suspended.png
}
configure() {
changescrn -c suspended /opt/share/remarkable/splashscreens/suspended.png
}
postremove() {
changescrn -r suspended
}
}

splashscreen-suspended-gallifreyan-dark() {
pkgdesc="Gallifreyan dark suspended splashscreen"
replaces=("splashscreen-suspended")
conflicts=("splashscreen-suspended")
package() {
install -D -m 755 -T "$srcdir"/splash-screens/gallifreyan/sleeping-v3.png \
"$pkgdir"/opt/share/remarkable/splashscreens/suspended.png
}
configure() {
changescrn -c suspended /opt/share/remarkable/splashscreens/suspended.png
}
postremove() {
changescrn -r suspended
}
}

splashscreen-starting-gallifreyan() {
pkgdesc="Gallifreyan starting splashscreen"
replaces=("splashscreen-starting")
conflicts=("splashscreen-starting")
package() {
install -D -m 755 -t "$pkgdir"/opt/share/remarkable/splashscreens \
"$srcdir"/splash-screens/gallifreyan/starting.png
}
configure() {
changescrn -c starting /opt/share/remarkable/splashscreens/starting.png
}
postremove() {
changescrn -r starting
}
}

splashscreen-suspended-gallifreyan-2() {
pkgdesc="Gallifreyan suspended splashscreen"
replaces=("splashscreen-suspended")
conflicts=("splashscreen-suspended")
package() {
install -D -m 755 -t "$pkgdir"/opt/share/remarkable/splashscreens \
"$srcdir"/splash-screens/gallifreyan/suspended.png
}
configure() {
changescrn -c suspended /opt/share/remarkable/splashscreens/suspended.png
}
postremove() {
changescrn -r suspended
}
}

splashscreen-suspended-flower-pause() {
pkgdesc="Flower suspended splashscreen"
replaces=("splashscreen-suspended")
conflicts=("splashscreen-suspended")
package() {
install -D -m 755 -T "$srcdir"/splash-screens/misc/flower-pause.png \
"$pkgdir"/opt/share/remarkable/splashscreens/suspended.png
}
configure() {
changescrn -c suspended /opt/share/remarkable/splashscreens/suspended.png
}
postremove() {
changescrn -r suspended
}
}
Loading

0 comments on commit b1744e4

Please sign in to comment.