summaryrefslogtreecommitdiff
path: root/x11-misc/myi3lock
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2020-08-03 16:41:18 +0200
committerKarel Kočí <karel.koci@nic.cz>2020-08-03 16:41:18 +0200
commitd2e9bd33dd19f987773726dc141122e2daa6fe07 (patch)
treed3c000df56a22abeeb639af17ad21bb8613c4085 /x11-misc/myi3lock
parentbf07af1a8d2106d034bc32b9dfb6ec0f50a2c0ab (diff)
downloadgentoo-personal-overlay-d2e9bd33dd19f987773726dc141122e2daa6fe07.tar.gz
gentoo-personal-overlay-d2e9bd33dd19f987773726dc141122e2daa6fe07.tar.bz2
gentoo-personal-overlay-d2e9bd33dd19f987773726dc141122e2daa6fe07.zip
x11-misc/myi3lock: improve and remove nohup
Nohup might no longer be necessary as different approach is now chosen. We can block execution now.
Diffstat (limited to 'x11-misc/myi3lock')
-rwxr-xr-xx11-misc/myi3lock/files/myi3lock9
-rw-r--r--x11-misc/myi3lock/myi3lock-1.2-r1.ebuild (renamed from x11-misc/myi3lock/myi3lock-1.1-r1.ebuild)0
2 files changed, 4 insertions, 5 deletions
diff --git a/x11-misc/myi3lock/files/myi3lock b/x11-misc/myi3lock/files/myi3lock
index f466def..b64abb2 100755
--- a/x11-misc/myi3lock/files/myi3lock
+++ b/x11-misc/myi3lock/files/myi3lock
@@ -3,10 +3,9 @@ BACKS="/usr/share/backgrounds"
# Set pidgin to offline
purple-remote 'setstatus?status=offline'
-# Run lock in background and when unlocked switch pidgin back to online
-nohup /bin/sh -ec "
-i3lock -n -c 000000 -i $(shuf -n1 -e "$BACKS"/*)
-purple-remote 'setstatus?status=available'
-" >/dev/null 2>&1 &
# Power off screen
xset dpms force off
+# Run lock
+i3lock -n -c 000000 -i "$(shuf -n1 -e "$BACKS"/*)"
+# Set pidgin to available
+purple-remote 'setstatus?status=available'
diff --git a/x11-misc/myi3lock/myi3lock-1.1-r1.ebuild b/x11-misc/myi3lock/myi3lock-1.2-r1.ebuild
index 9b8caa0..9b8caa0 100644
--- a/x11-misc/myi3lock/myi3lock-1.1-r1.ebuild
+++ b/x11-misc/myi3lock/myi3lock-1.2-r1.ebuild