Skip to content

Instantly share code, notes, and snippets.

View atelic's full-sized avatar

Eric Barbour atelic

View GitHub Profile
@atelic
atelic / i3prettylock.sh
Last active January 24, 2018 00:44
An i3lock script for a cool overlay blur
#!/bin/bash
LOCKDIR=/home/path/to/lock.png
scrot -e 'convert -blur 0x3 $f ~/lockbg.png;rm $f'
convert -gravity center -composite ~/lockbg.png $LOCKDIR/lock.png ~/lockfinal.png
i3lock -u -i ~/lockfinal.png
rm ~/lockfinal.png ~/lockbg.png
@atelic
atelic / i3exit
Created April 6, 2015 13:00
Lock and logout script for i3wm
#!/bin/sh
lock(){
i3lock
}
case "$1" in
lock)
lock
;;
logout)