From 240dabc125bf7f0bcb5fef936bcabdef3475c4b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 9 Aug 2018 12:21:13 +0200 Subject: x11-themes/background-lnxpcs: fix i3background --- .../background-lnxpcs-0.1.1.ebuild | 33 ++++++++++++++++++++++ .../background-lnxpcs/background-lnxpcs-0.1.ebuild | 33 ---------------------- x11-themes/background-lnxpcs/files/i3background | 5 ++-- 3 files changed, 35 insertions(+), 36 deletions(-) create mode 100644 x11-themes/background-lnxpcs/background-lnxpcs-0.1.1.ebuild delete mode 100644 x11-themes/background-lnxpcs/background-lnxpcs-0.1.ebuild (limited to 'x11-themes/background-lnxpcs') diff --git a/x11-themes/background-lnxpcs/background-lnxpcs-0.1.1.ebuild b/x11-themes/background-lnxpcs/background-lnxpcs-0.1.1.ebuild new file mode 100644 index 0000000..405e187 --- /dev/null +++ b/x11-themes/background-lnxpcs/background-lnxpcs-0.1.1.ebuild @@ -0,0 +1,33 @@ +EAPI=6 + +DESCRIPTION="Background pictures from lnxpcs and relevant scripts" +HOMEPAGE="https://gitlab.com/jstpcs/lnxpcs" + +HASH="99cf0bdafe6d9c6e0554c422eddc3f7b7adf25c8" +SRC_URI="https://gitlab.com/jstpcs/lnxpcs/-/archive/master/lnxpcs-${HASH}.tar.gz -> ${PN}.tar.gz" +S="${WORKDIR}/lnxpcs-master-${HASH}" + +KEYWORDS="amd64" +LICENSE="GPL-3.0+" +SLOT="0" +IUSE="" + +RDEPEND=" + x11-misc/i3lock + media-gfx/feh[xinerama]" + +WALLPAPERS="cron gcc gnu iptables kernel python root sudo vim" + +src_compile() { + # Nothing to compile + true +} + +src_install() { + insinto "/usr/share/backgrounds" + for IMG in $WALLPAPERS; do + doins "walls/solarized-dark/solarized-wallpaper-$IMG.png" + done + dobin "${FILESDIR}/i3background" + dobin "${FILESDIR}/i3lock-lnxpcs" +} diff --git a/x11-themes/background-lnxpcs/background-lnxpcs-0.1.ebuild b/x11-themes/background-lnxpcs/background-lnxpcs-0.1.ebuild deleted file mode 100644 index 405e187..0000000 --- a/x11-themes/background-lnxpcs/background-lnxpcs-0.1.ebuild +++ /dev/null @@ -1,33 +0,0 @@ -EAPI=6 - -DESCRIPTION="Background pictures from lnxpcs and relevant scripts" -HOMEPAGE="https://gitlab.com/jstpcs/lnxpcs" - -HASH="99cf0bdafe6d9c6e0554c422eddc3f7b7adf25c8" -SRC_URI="https://gitlab.com/jstpcs/lnxpcs/-/archive/master/lnxpcs-${HASH}.tar.gz -> ${PN}.tar.gz" -S="${WORKDIR}/lnxpcs-master-${HASH}" - -KEYWORDS="amd64" -LICENSE="GPL-3.0+" -SLOT="0" -IUSE="" - -RDEPEND=" - x11-misc/i3lock - media-gfx/feh[xinerama]" - -WALLPAPERS="cron gcc gnu iptables kernel python root sudo vim" - -src_compile() { - # Nothing to compile - true -} - -src_install() { - insinto "/usr/share/backgrounds" - for IMG in $WALLPAPERS; do - doins "walls/solarized-dark/solarized-wallpaper-$IMG.png" - done - dobin "${FILESDIR}/i3background" - dobin "${FILESDIR}/i3lock-lnxpcs" -} diff --git a/x11-themes/background-lnxpcs/files/i3background b/x11-themes/background-lnxpcs/files/i3background index faec41e..0f8e7d6 100755 --- a/x11-themes/background-lnxpcs/files/i3background +++ b/x11-themes/background-lnxpcs/files/i3background @@ -1,6 +1,5 @@ #!/bin/sh BACKS="/usr/share/backgrounds" -BACKS="/home/cynerd/src/lnxpcs/walls/solarized-dark" # Set background if [ -n "$DISPLAY" ]; then # Only current one @@ -12,9 +11,9 @@ else done fi # Set cron -if ! crontab -l | grep -q i3background; then +if ! crontab -l 2>/dev/null | grep -q i3background; then TCRN="$(mktemp)" - crontab -l > "$TCRN" + crontab -l 2>/dev/null > "$TCRN" echo "* * * * * i3background" >> "$TCRN" crontab "$TCRN" rm "$TCRN" -- cgit v1.2.3