From 77cab473ce5d57b0ddb487dc920e02cce82af4c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 9 Aug 2018 12:59:47 +0200 Subject: x11-themes/background-lnxpcs: Extend path where we look for i3 sockets --- .../background-lnxpcs-0.1.1.ebuild | 33 ---------------------- .../background-lnxpcs-0.1.2.ebuild | 33 ++++++++++++++++++++++ x11-themes/background-lnxpcs/files/i3background | 2 +- 3 files changed, 34 insertions(+), 34 deletions(-) delete mode 100644 x11-themes/background-lnxpcs/background-lnxpcs-0.1.1.ebuild create mode 100644 x11-themes/background-lnxpcs/background-lnxpcs-0.1.2.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 deleted file mode 100644 index 405e187..0000000 --- a/x11-themes/background-lnxpcs/background-lnxpcs-0.1.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/background-lnxpcs-0.1.2.ebuild b/x11-themes/background-lnxpcs/background-lnxpcs-0.1.2.ebuild new file mode 100644 index 0000000..405e187 --- /dev/null +++ b/x11-themes/background-lnxpcs/background-lnxpcs-0.1.2.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/files/i3background b/x11-themes/background-lnxpcs/files/i3background index 0f8e7d6..c63424e 100755 --- a/x11-themes/background-lnxpcs/files/i3background +++ b/x11-themes/background-lnxpcs/files/i3background @@ -6,7 +6,7 @@ if [ -n "$DISPLAY" ]; then feh --randomize --no-fehbg --bg-center "$BACKS" else # All instances - for socket in `find /tmp/i3-* -name ipc-socket\*`; do + for socket in $(find /run/user/$(id -u)/i3 /tmp/i3-$(id -un).* -name ipc-socket\* 2>/dev/null); do i3-msg -s $socket "exec feh --randomize --no-fehbg --bg-center '$BACKS'" done fi -- cgit v1.2.3