From d2e9bd33dd19f987773726dc141122e2daa6fe07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 3 Aug 2020 16:41:18 +0200 Subject: x11-misc/myi3lock: improve and remove nohup Nohup might no longer be necessary as different approach is now chosen. We can block execution now. --- x11-misc/myi3lock/files/myi3lock | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'x11-misc/myi3lock/files') 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' -- cgit v1.2.3