From efb4c4ce73bcfe900873c6f6d92008d34744c462 Mon Sep 17 00:00:00 2001 From: Von Random Date: Sat, 22 Oct 2016 02:40:18 +0300 Subject: [PATCH] lock screen script, requires imagemagick --- lock-screen | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 lock-screen diff --git a/lock-screen b/lock-screen new file mode 100755 index 0000000..06334ed --- /dev/null +++ b/lock-screen @@ -0,0 +1,8 @@ +#!/usr/bin/env zsh +BACKGROUND='/tmp/screen_locked.png' +notify-send DUNST_COMMAND_PAUSE +scrot $BACKGROUND +mogrify -scale 10% -scale 1000% $BACKGROUND +until i3lock -entc 661111 -i $BACKGROUND; do :; done +rm $BACKGROUND +notify-send DUNST_COMMAND_RESUME