mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2024-11-25 16:23:24 +01:00
11 lines
265 B
Bash
11 lines
265 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 -u -i "$tmpbg"
|