all repos — dotfiles @ 132998af8625888303ba5b7997d1c64349e9b0c2

my *nix dotfiles

bin/lock.sh (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
#!/bin/bash

image_file=/tmp/screen_lock.png
resolution=$(xdpyinfo | grep dimensions | awk '{print $2}')
filters='gblur=sigma=15'
ffmpeg -y -loglevel 0 -s "$resolution" -f x11grab -i $DISPLAY -vframes 1 \
  -vf "$filters" "$image_file" 
i3lock -i $image_file -l '#222222' -o '#99C794' -w '#EC5f67'