From 0f3b7850e883aeab0ddfd2c7846c82052d2ea541 Mon Sep 17 00:00:00 2001 From: Nate Buttke Date: Mon, 21 Feb 2022 21:31:07 -0800 Subject: scripts repo: initial commit --- locks | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 locks (limited to 'locks') diff --git a/locks b/locks new file mode 100755 index 0000000..c9e8e8d --- /dev/null +++ b/locks @@ -0,0 +1,8 @@ +#!/bin/bash +# locks the screen and shows a random image and suspends the system +imgPath=/home/n8/media/pix/4a5g/Camera/Camera +swaylock --daemonize \ +--scaling fit \ +--color 002B36 \ +--image $imgPath/$(ls $imgPath | grep -i jpg | sort -R | head -n1) +systemctl suspend -- cgit v1.2.3