mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2024-11-23 07:14:30 +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"
|