all repos — dotfiles @ f5ecdce0de8cfd894c15eb50de438a185a0098f5

my *nix dotfiles

bin/lock.sh (view raw)

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