#!/bin/sh
#set display for performd action
DISPLAY=:0

#######################
#Blured screenshot as lockscreen
#######################
#Make SS for screensaver
scrot /home/a123qwertz567/Bilder/screenshot.png
#blur SS
convert -blur 4x4 /home/a123qwertz567/Bilder/screenshot.png /home/a123qwertz567/Bilder/lockscreen.png
#lock screen instant
#xscreensaver-command -lock
i3lock -i /home/a123qwertz567/Bilder/lockscreen.png

#######################
#Custom Picture as Lockscreen
#######################
#Note: i3lock needs a PNG as picture so you need to convert the jpg to png
#Delete old lockscreen png. Just to save diskspace and avoid unessecary duplicates in the folder.
#rm ~/.dotfiles/sperrbild.png
#Convert the PNG to JPG
#convert -resize 1366x768 ~/Bilder/sperrbild.jpg ~/.dotfiles/sperrbild.png
#lock screen with i3lock
#i3lock -i ~/.dotfiles/sperrbild.png
