all repos — dotfiles @ e677a1c721e1a88613ef324fd022574d0c8a53ce

my *nix dotfiles

scripts/scripts/lock.sh (view raw)

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