all repos — dotfiles @ 9ab2d3b5c487aea8b4c5dd139a73f2997ae0b57f

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'