Configure i3lock and xautlock Signed-off-by: Anirudh <icyph0x@pm.me>
Anirudh icyph0x@pm.me
Wed, 12 Jun 2019 16:22:54 +0530
2 files changed,
3 insertions(+),
5 deletions(-)
M
bin/lock.sh
→
bin/lock.sh
@@ -1,10 +1,8 @@
-#!/bin/bash +#!/usr/bin/env bash image_file=/tmp/screen_lock.png resolution=$(xdpyinfo | grep dimensions | awk '{print $2}') filters='gblur=sigma=15' ffmpeg -y -loglevel 0 -s "$resolution" -f x11grab -i $DISPLAY -vframes 1 \ -vf "$filters" "$image_file" -i3lock -i $image_file -l '#222222' -o '#99C794' -w '#EC5f67' - - +i3lock -i $image_file -l '#ffffff' -o '#99C794' -w '#EC5f67'
M
i3/config
→
i3/config
@@ -191,7 +191,7 @@ exec_always --no-startup-id ~/bin/bar.sh
exec feh --bg-fill ~/.wall exec_always --no-startup-id ~/.local/bin/flashfocus exec_always dunst -# exec xautolock -time 5 -locker ~/scripts/lock.sh +exec xautolock -time 5 -locker ~/scripts/lock.sh # exec urxvtd & # exec xset -b