summaryrefslogtreecommitdiff
path: root/scripts/lock
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lock')
-rwxr-xr-xscripts/lock4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lock b/scripts/lock
index 4046b49..aea1a7d 100755
--- a/scripts/lock
+++ b/scripts/lock
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/mksh
bg=/tmp/screen.png
lock_png=${HOME}/scripts/lock.png
@@ -12,7 +12,7 @@ convert ${bg} -blur 0x2 -sharpen 1x4 ${bg}
[[ -f ${lock_png} ]] && convert ${bg} ${lock_png} \
-gravity center -composite -matte \
${bg}
-xbacklight -set 10
+xbacklight -set 5
i3lock -u -n -i ${bg}
rm ${bg}
xbacklight -set $backlight