From 8c1ee931b51faa7c0db7cf571512075490648c27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 16 Jan 2019 10:49:36 +0100 Subject: x11-misc/myi3lock: use elogind This tweaks myi3lock to use elogind. It no longer requires pm-utils and is locked with daemon waiting for logind event. --- x11-misc/myi3lock/files/pm-utils-lock | 13 ------------- x11-misc/myi3lock/myi3lock-1.0-r1.ebuild | 23 ----------------------- x11-misc/myi3lock/myi3lock-1.1-r1.ebuild | 20 ++++++++++++++++++++ 3 files changed, 20 insertions(+), 36 deletions(-) delete mode 100755 x11-misc/myi3lock/files/pm-utils-lock delete mode 100644 x11-misc/myi3lock/myi3lock-1.0-r1.ebuild create mode 100644 x11-misc/myi3lock/myi3lock-1.1-r1.ebuild (limited to 'x11-misc') diff --git a/x11-misc/myi3lock/files/pm-utils-lock b/x11-misc/myi3lock/files/pm-utils-lock deleted file mode 100755 index 901b1b1..0000000 --- a/x11-misc/myi3lock/files/pm-utils-lock +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -# -# 10sleep: lock i3 season before suspend - -case "$1" in - hibernate|suspend) - for socket in $(find /run/user/*/i3 /tmp/i3-* -name ipc-socket\* 2>/dev/null); do - i3-msg -s $socket "exec myi3lock" - done - ;; - *) exit $NA - ;; -esac diff --git a/x11-misc/myi3lock/myi3lock-1.0-r1.ebuild b/x11-misc/myi3lock/myi3lock-1.0-r1.ebuild deleted file mode 100644 index 67fc781..0000000 --- a/x11-misc/myi3lock/myi3lock-1.0-r1.ebuild +++ /dev/null @@ -1,23 +0,0 @@ -EAPI=7 - -DESCRIPTION="Script calling i3lock used to automate some tasks on lock" -HOMEPAGE="https://git.cynerd.cz" -S="${WORKDIR}" - -LICENSE="GPL-3.0+" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND=" - x11-misc/i3lock - x11-themes/background-lnxpcs - sys-power/pm-utils - x11-wm/i3" -BDEPEND="" - -src_install() { - dobin "${FILESDIR}/myi3lock" - - exeinto /etc/pm/sleep.d - newexe "${FILESDIR}/pm-utils-lock" "10lock" -} diff --git a/x11-misc/myi3lock/myi3lock-1.1-r1.ebuild b/x11-misc/myi3lock/myi3lock-1.1-r1.ebuild new file mode 100644 index 0000000..9b8caa0 --- /dev/null +++ b/x11-misc/myi3lock/myi3lock-1.1-r1.ebuild @@ -0,0 +1,20 @@ +EAPI=7 + +DESCRIPTION="Script calling i3lock used to automate some tasks on lock" +HOMEPAGE="https://git.cynerd.cz" +S="${WORKDIR}" + +LICENSE="GPL-3.0+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + x11-misc/i3lock + x11-themes/background-lnxpcs + x11-misc/xss-lock + x11-wm/i3" +BDEPEND="" + +src_install() { + dobin "${FILESDIR}/myi3lock" +} -- cgit v1.2.3