From da2b3e18a3981f9cd9cc1af180a02d4d005f9796 Mon Sep 17 00:00:00 2001 From: Ryan Kes Date: Sun, 17 Mar 2019 17:47:32 +0100 Subject: [PATCH] added script to generate lock image --- xorg/.bin/generateLockImage.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 xorg/.bin/generateLockImage.sh diff --git a/xorg/.bin/generateLockImage.sh b/xorg/.bin/generateLockImage.sh new file mode 100755 index 0000000..bf1708d --- /dev/null +++ b/xorg/.bin/generateLockImage.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +WIDTH=$(xrandr | grep '\*' | awk -F 'x' '{print $1}' | sed 's/ //g') +convert "$1" ~/.config/lock.png +convert ~/.config/lock.png -resize "${WIDTH}"x ~/.config/lock.png