i3lock-custom: Code quality brushups
This commit is contained in:
parent
95ba4a45d2
commit
cc2ca23837
@ -56,7 +56,7 @@ step_produce_image() {
|
|||||||
# Really wanna make damn sure that we handle this well
|
# Really wanna make damn sure that we handle this well
|
||||||
set +e
|
set +e
|
||||||
umask 077
|
umask 077
|
||||||
cd "$tmpdir"
|
cd "$tmpdir" || exit
|
||||||
# Grab a screenshot and perform some calculations to make our black bar
|
# Grab a screenshot and perform some calculations to make our black bar
|
||||||
import -window root scrot.bmp
|
import -window root scrot.bmp
|
||||||
lockimg_gz | base64 -d | gunzip > lock.png
|
lockimg_gz | base64 -d | gunzip > lock.png
|
||||||
@ -82,7 +82,7 @@ step_start_i3lock() {
|
|||||||
step_start_conky() {
|
step_start_conky() {
|
||||||
i=0
|
i=0
|
||||||
while ! xprop -name "i3lock" > /dev/null 2>&1; do
|
while ! xprop -name "i3lock" > /dev/null 2>&1; do
|
||||||
i=$(( $i + 1 ))
|
i=$(( i + 1 ))
|
||||||
if [ "$i" -eq "100" ]; then
|
if [ "$i" -eq "100" ]; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@ -105,5 +105,5 @@ main() {
|
|||||||
step_wait
|
step_wait
|
||||||
}
|
}
|
||||||
|
|
||||||
main $@
|
main "$@"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user