all repos — dotfiles @ ecbbff5a215a337ea000a2cc2a9755f5a6365e87

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'