all repos — dotfiles @ 0a03c6ddfeeef6e0cb97b1207b9e1a684ae138cb

my *nix dotfiles

bin/lock.sh (view raw)

1#!/usr/bin/env bash
2
3image_file=/tmp/screen_lock.png
4import -window root "$image_file"
5resolution=$(xdpyinfo | grep dimensions | awk '{print $2}')
6filters="gblur=sigma=15,hue=s=0,eq=brightness=-0.09"
7ffmpeg -y -loglevel 0 -s "$resolution" -f x11grab -i $DISPLAY -vframes 1 \
8-vf "$filters" "$image_file"
9i3lock -i $image_file -l '#ffffff' -o '#99C794' -w '#EC5f67'