1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

added script to generate lock image

This commit is contained in:
Ryan Kes 2019-03-17 17:47:32 +01:00
parent 171307bb92
commit da2b3e18a3

5
xorg/.bin/generateLockImage.sh Executable file
View File

@ -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