summaryrefslogtreecommitdiff
path: root/x11-misc
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2020-08-03 16:44:12 +0200
committerKarel Kočí <karel.koci@nic.cz>2020-08-03 16:44:12 +0200
commitb3cf920a0d695ca2ba1cce7c682c38eb74dcdb1a (patch)
treed0ffd569eae42cf0281d2859c507bf673a4bbe2f /x11-misc
parentd2e9bd33dd19f987773726dc141122e2daa6fe07 (diff)
downloadgentoo-personal-overlay-b3cf920a0d695ca2ba1cce7c682c38eb74dcdb1a.tar.gz
gentoo-personal-overlay-b3cf920a0d695ca2ba1cce7c682c38eb74dcdb1a.tar.bz2
gentoo-personal-overlay-b3cf920a0d695ca2ba1cce7c682c38eb74dcdb1a.zip
myi3lock: allow disable of most additional features on login
Diffstat (limited to 'x11-misc')
-rwxr-xr-xx11-misc/myi3lock/files/myi3lock18
-rw-r--r--x11-misc/myi3lock/myi3lock-1.3-r1.ebuild (renamed from x11-misc/myi3lock/myi3lock-1.2-r1.ebuild)0
2 files changed, 12 insertions, 6 deletions
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.3-r1.ebuild
index 9b8caa0..9b8caa0 100644
--- a/x11-misc/myi3lock/myi3lock-1.2-r1.ebuild
+++ b/x11-misc/myi3lock/myi3lock-1.3-r1.ebuild