Fix loginbox position for vertical arrangements (#123)

This commit is contained in:
Jeff M. Hubbard 2019-05-28 12:48:39 -05:00 committed by Sebastian Sellmeier
parent 49ce9ae7fa
commit dcc9166703
No known key found for this signature in database
GPG key ID: 51E2BE0CCC826F98

View file

@ -64,14 +64,14 @@ lock() {
i3lock \
-i "$1" \
--screen "$display_on" \
--timepos='x+110:h-70' \
--datepos='x+43:h-45' \
--screen "$display_on" \
--timepos='ix-170:iy-0' \
--datepos='ix-240:iy+25' \
--clock --date-align 1 --datestr "$locktext" \
--insidecolor=$insidecolor --ringcolor=$ringcolor --line-uses-inside \
--keyhlcolor=$keyhlcolor --bshlcolor=$bshlcolor --separatorcolor=$separatorcolor \
--insidevercolor=$insidevercolor --insidewrongcolor=$insidewrongcolor \
--ringvercolor=$ringvercolor --ringwrongcolor=$ringwrongcolor --indpos='x+280:h-70' \
--ringvercolor=$ringvercolor --ringwrongcolor=$ringwrongcolor --indpos='x+280:y+h-70' \
--radius=20 --ring-width=4 --veriftext='' --wrongtext='' \
--verifcolor="$verifcolor" --timecolor="$timecolor" --datecolor="$datecolor" \
--time-font="$font" --date-font="$font" --layout-font="$font" --verif-font="$font" --wrong-font="$font" \
@ -255,7 +255,7 @@ update () {
if [[ $DNUM -eq "$display_on" ]] || [[ "$display_on" -eq 0 ]]; then
SRA=(${DGEO//[x+]/ })
CX=$((${SRA[2]} + $(logical_px 25)))
CY=$((${SRA[1]} - $(logical_px 30)))
CY=$((${SRA[3]} + ${SRA[1]} - $(logical_px 30)))
rectangles+="rectangle $CX,$CY $((CX+$(logical_px 300))),$((CY-$(logical_px 80))) "
fi