all repos — dotfiles @ 981312f64287d0c66194885be36cff07ea871744

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'