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