From de5791ddb42d5b609b6b2d2e0c03f6524f12647c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 8 Oct 2018 11:16:26 +0200 Subject: Reimplement i3lock script handling Now there is central package for my specific i3lock script and pm trigger. Package background-lnxpcs is not solely for images and background. --- .../background-lnxpcs-0.3-r1.ebuild | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 x11-themes/background-lnxpcs/background-lnxpcs-0.3-r1.ebuild (limited to 'x11-themes/background-lnxpcs/background-lnxpcs-0.3-r1.ebuild') diff --git a/x11-themes/background-lnxpcs/background-lnxpcs-0.3-r1.ebuild b/x11-themes/background-lnxpcs/background-lnxpcs-0.3-r1.ebuild new file mode 100644 index 0000000..78c334a --- /dev/null +++ b/x11-themes/background-lnxpcs/background-lnxpcs-0.3-r1.ebuild @@ -0,0 +1,38 @@ +EAPI=7 + +DESCRIPTION="Background pictures from lnxpcs and relevant scripts" +HOMEPAGE="https://gitlab.com/jstpcs/lnxpcs" + +HASH="99cf0bdafe6d9c6e0554c422eddc3f7b7adf25c8" +SRC_URI="https://gitlab.com/jstpcs/lnxpcs/-/archive/${HASH}/lnxpcs-${HASH}.tar.gz -> ${PN}.tar.gz" +S="${WORKDIR}/lnxpcs-${HASH}" + +KEYWORDS="amd64" +LICENSE="GPL-3.0+" +SLOT="0" +IUSE="1440p" + +RDEPEND="media-gfx/feh[xinerama]" +BDEPEND="media-gfx/imagemagick[png]" + +WALLPAPERS="bash cron gcc gnu gnu-linux iptables kernel kill python root su sudo vim" + +src_compile() { + local resolution="1920 1080" + use 1440p && resolution="2560 1440" + + for img in $WALLPAPERS; do + ./makemywall $resolution "cards/black/$img-card-black.png" + done +} + +src_install() { + local resolution="1920x1080" + use 1440p && resolution="2560x1440" + + insinto "/usr/share/backgrounds" + for img in $WALLPAPERS; do + doins "$img-card-black-$resolution.png" + done + dobin "${FILESDIR}/i3background" +} -- cgit v1.2.3