From 44587d9e49cd619104e0076998f130637816b6fa Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Fri, 28 Jan 2022 11:05:54 -0500 Subject: [PATCH] wip!themes: Add example twincam theme This probably shouldn't go to plymouth upstream, but be a separate project? --- configure.ac | 1 + themes/Makefile.am | 2 +- themes/twincam/Makefile.am | 13 +++++++++++++ themes/twincam/twincam.plymouth.desktop | 7 +++++++ 4 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 themes/twincam/Makefile.am create mode 100644 themes/twincam/twincam.plymouth.desktop diff --git a/configure.ac b/configure.ac index 71d1282f..31e2b7bf 100644 --- a/configure.ac +++ b/configure.ac @@ -331,6 +331,7 @@ AC_CONFIG_FILES([Makefile po/Makefile.in themes/spinner/Makefile themes/script/Makefile themes/bgrt/Makefile + themes/twincam/Makefile images/Makefile scripts/plymouth-generate-initrd scripts/plymouth-populate-initrd diff --git a/themes/Makefile.am b/themes/Makefile.am index 8e4566e9..df907b3a 100644 --- a/themes/Makefile.am +++ b/themes/Makefile.am @@ -1,2 +1,2 @@ -SUBDIRS = spinfinity fade-in text details solar glow script spinner tribar bgrt +SUBDIRS = spinfinity fade-in text details solar glow script spinner tribar bgrt twincam MAINTAINERCLEANFILES = Makefile.in diff --git a/themes/twincam/Makefile.am b/themes/twincam/Makefile.am new file mode 100644 index 00000000..8afdf3cd --- /dev/null +++ b/themes/twincam/Makefile.am @@ -0,0 +1,13 @@ +themedir = $(datadir)/plymouth/themes/twincam +nodist_theme_DATA = twincam.plymouth + +MAINTAINERCLEANFILES = Makefile.in twincam.plymouth +CLEANFILES = twincam.plymouth + +twincam.plymouth: $(srcdir)/twincam.plymouth.desktop + $(AM_V_GEN) \ + sed -e 's,[@]PLYMOUTH_THEME_PATH[@],$(PLYMOUTH_THEME_PATH),g' \ + $(srcdir)/twincam.plymouth.desktop | \ + $(MSGFMT) --desktop --template /proc/self/fd/0 -d $(top_srcdir)/po -o $@ + +EXTRA_DIST = twincam.plymouth.desktop diff --git a/themes/twincam/twincam.plymouth.desktop b/themes/twincam/twincam.plymouth.desktop new file mode 100644 index 00000000..4d40cf7a --- /dev/null +++ b/themes/twincam/twincam.plymouth.desktop @@ -0,0 +1,7 @@ +[Plymouth Theme] +Name=Twincam +Description=Plugin that shows the system cameras as the splash +ModuleName=external-command + +[external-command] +Command=/usr/bin/twincam -- 2.47.2