all repos — dotfiles @ 04145ab9ba39f28c8c283b85b5f0f254d9ffb322

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'