From b3cf920a0d695ca2ba1cce7c682c38eb74dcdb1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 3 Aug 2020 16:44:12 +0200 Subject: myi3lock: allow disable of most additional features on login --- x11-misc/myi3lock/files/myi3lock | 18 ++++++++++++------ x11-misc/myi3lock/myi3lock-1.2-r1.ebuild | 20 -------------------- x11-misc/myi3lock/myi3lock-1.3-r1.ebuild | 20 ++++++++++++++++++++ 3 files changed, 32 insertions(+), 26 deletions(-) delete mode 100644 x11-misc/myi3lock/myi3lock-1.2-r1.ebuild create mode 100644 x11-misc/myi3lock/myi3lock-1.3-r1.ebuild (limited to 'x11-misc') diff --git a/x11-misc/myi3lock/files/myi3lock b/x11-misc/myi3lock/files/myi3lock index b64abb2..ec0536d 100755 --- a/x11-misc/myi3lock/files/myi3lock +++ b/x11-misc/myi3lock/files/myi3lock @@ -1,11 +1,17 @@ #!/bin/sh BACKS="/usr/share/backgrounds" -# Set pidgin to offline -purple-remote 'setstatus?status=offline' -# Power off screen -xset dpms force off +if [ "$1" != "--login" ]; then + # Set pidgin to offline + purple-remote 'setstatus?status=offline' + # Power off screen + xset dpms force off +fi + # Run lock i3lock -n -c 000000 -i "$(shuf -n1 -e "$BACKS"/*)" -# Set pidgin to available -purple-remote 'setstatus?status=available' + +if [ "$1" != "--login" ]; then + # Set pidgin to available + purple-remote 'setstatus?status=available' +fi diff --git a/x11-misc/myi3lock/myi3lock-1.2-r1.ebuild b/x11-misc/myi3lock/myi3lock-1.2-r1.ebuild deleted file mode 100644 index 9b8caa0..0000000 --- a/x11-misc/myi3lock/myi3lock-1.2-r1.ebuild +++ /dev/null @@ -1,20 +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 - x11-misc/xss-lock - x11-wm/i3" -BDEPEND="" - -src_install() { - dobin "${FILESDIR}/myi3lock" -} diff --git a/x11-misc/myi3lock/myi3lock-1.3-r1.ebuild b/x11-misc/myi3lock/myi3lock-1.3-r1.ebuild new file mode 100644 index 0000000..9b8caa0 --- /dev/null +++ b/x11-misc/myi3lock/myi3lock-1.3-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