etc/swaylock.sh

10 lines
135 B
Bash
Executable File

#!/bin/sh
bg_img=~/Desktop/background.png
if [ -f $bg_img ]; then
exec swaylock -f -i $bg_img
else
exec swaylock -f -c 777777
fi