sisyphus/.OLD/.config/i3/scripts/lock.sh

9 lines
252 B
Bash
Raw Normal View History

2022-03-18 08:07:04 +01:00
img=/tmp/i3lock.png
2022-04-09 21:50:03 +02:00
icon=~/.config/i3/scripts/lock-icon-large.png
2022-03-18 08:07:04 +01:00
scrot -z -o $img
2022-04-09 21:50:03 +02:00
convert \( $img -scale 20% -scale 500% -brightness-contrast -30x-30 \) $icon -gravity Center -geometry +0-125 -composite $img
2022-03-18 08:07:04 +01:00
2022-04-09 21:50:03 +02:00
i3lock -i $img -f #-no-unlock-indicator