mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2024-11-22 06:44:41 +01:00
12 lines
266 B
Bash
12 lines
266 B
Bash
#!/usr/bin/env bash
|
|
|
|
icon="$HOME/.config/i3/icons/lock.png"
|
|
tmpbg='/tmp/screen.png'
|
|
|
|
(( $# )) && { icon=$1; }
|
|
|
|
scrot "$tmpbg"
|
|
convert "$tmpbg" -scale 10% -scale 1000% "$tmpbg"
|
|
convert "$tmpbg" "$icon" -gravity center -composite -matte "$tmpbg"
|
|
i3lock -f -i "$tmpbg"
|