mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
6 lines
178 B
Bash
6 lines
178 B
Bash
|
#!/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
|