mirror of
https://git.adityakumar.xyz/betterlockscreen-openrc.git
synced 2024-12-27 11:02:52 +00:00
Removed commented code and fix spacing issues
This commit is contained in:
parent
e5e891786e
commit
e74dec7848
1 changed files with 45 additions and 130 deletions
|
@ -46,7 +46,6 @@ init_config () {
|
|||
CUR_L_BLUR="$CUR_DIR/lock_blur.png"
|
||||
CUR_L_DIMBLUR="$CUR_DIR/lock_dimblur.png"
|
||||
|
||||
_RE="([0-9]+)x([0-9]+)\\+([0-9]+)\\+([0-9]+)" # Regex to find display dimensions
|
||||
}
|
||||
init_config
|
||||
|
||||
|
@ -295,91 +294,7 @@ update () {
|
|||
convert "$CUR_W_BLUR" -draw "fill #$loginbox $rectangles" "$CUR_L_BLUR"
|
||||
convert "$CUR_W_DIMBLUR" -draw "fill #$loginbox $rectangles" "$CUR_L_DIMBLUR"
|
||||
}
|
||||
#update () {
|
||||
#
|
||||
# wallpaper=$1
|
||||
# rectangles=" "
|
||||
#
|
||||
# get_user_wall "$wallpaper" # Returns USER_WALL
|
||||
# echo "Original: $USER_WALL"
|
||||
#
|
||||
# get_display_list # Returns DLIST
|
||||
# get_total_size # Return TOTAL_SIZE
|
||||
#
|
||||
# [[ $display_on ]] || display_on=0
|
||||
#
|
||||
# # create base images per display
|
||||
# for DISP in "${DLIST[@]}"; do
|
||||
# DNUM="$(cut -d" " -f1 <<<"${DISP}")"
|
||||
# DDEV="$(cut -d" " -f2 <<<"${DISP}")"
|
||||
# DGEO="$(cut -d" " -f3 <<<"${DISP}")"
|
||||
# DPATH="$CACHE_DIR/$DNUM-$DDEV"
|
||||
#
|
||||
# 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)))
|
||||
# echo "cx $CX"
|
||||
# echo "cy $CY"
|
||||
# rectangles+="rectangle $CX,$CY $((CX+$(logical_px 300))),$((CY-$(logical_px 80))) "
|
||||
# echo "rect $rectangles"
|
||||
# fi
|
||||
#
|
||||
# echo "Found: $DDEV ($DNUM)"
|
||||
# echo "Resolution: $DRES"
|
||||
#
|
||||
# purge_cache $DPATH
|
||||
#
|
||||
# # we only need one set of images when spanning
|
||||
# if [ "$span_image" = true ] && [ $DNUM -gt 1 ]; then
|
||||
# continue
|
||||
# fi
|
||||
#
|
||||
# if [ "$span_image" = true ]; then
|
||||
# # create one image to span across multiple displays
|
||||
# resize_and_render $USER_WALL $DPATH $TOTAL_SIZE
|
||||
# else
|
||||
# # create images for each display to combine later
|
||||
# resize_and_render $USER_WALL $DPATH $DRES
|
||||
# PARAM_RESIZE="$PARAM_RESIZE $RES_RESIZE -geometry +${DGEO[0]}+${DGEO[2]} -composite "
|
||||
# PARAM_DIM="$PARAM_DIM $RES_DIM -geometry +${DGEO[0]}+${DGEO[2]} -composite "
|
||||
# PARAM_BLUR="$PARAM_BLUR $RES_BLUR -geometry +${DGEO[0]}+${DGEO[2]} -composite "
|
||||
# PARAM_DIMBLUR="$PARAM_DIMBLUR $RES_DIMBLUR -geometry +${DGEO[0]}+${DGEO[2]} -composite "
|
||||
# fi
|
||||
#
|
||||
# done
|
||||
#
|
||||
# purge_cache $CUR_DIR
|
||||
#
|
||||
# if [ "$span_image" = true ] && [ ${#DLIST[@]} -lt 2 ]; then
|
||||
# echo "Copying final wallpaper images...xx"
|
||||
# cp $RES_RESIZE $CUR_W_RESIZE
|
||||
# cp $RES_DIM $CUR_W_DIM
|
||||
# cp $RES_BLUR $CUR_W_BLUR
|
||||
# cp $RES_DIMBLUR $CUR_W_DIMBLUR
|
||||
# else
|
||||
# echo "Creating canvas: $TOTAL_SIZE"
|
||||
# convert -size $TOTAL_SIZE 'xc:black' $CUR_W_RESIZE
|
||||
# convert -size $TOTAL_SIZE 'xc:black' $CUR_W_DIM
|
||||
# convert -size $TOTAL_SIZE 'xc:black' $CUR_W_BLUR
|
||||
# convert -size $TOTAL_SIZE 'xc:black' $CUR_W_DIMBLUR
|
||||
#
|
||||
# echo "Rendering final wallpaper images..."
|
||||
# convert $CUR_W_RESIZE $PARAM_RESIZE $CUR_W_RESIZE
|
||||
# convert $CUR_W_DIM $PARAM_DIM $CUR_W_DIM
|
||||
# convert $CUR_W_BLUR $PARAM_BLUR $CUR_W_BLUR
|
||||
# convert $CUR_W_DIMBLUR $PARAM_DIMBLUR $CUR_W_DIMBLUR
|
||||
# fi
|
||||
#
|
||||
# echo "Rendering final locker images..."
|
||||
# echo "$rectangles"
|
||||
# convert $CUR_W_RESIZE -draw "fill #$loginbox $rectangles" $CUR_L_RESIZE
|
||||
# convert $CUR_W_DIM -draw "fill #$loginbox $rectangles" $CUR_L_DIM
|
||||
# convert $CUR_W_BLUR -draw "fill #$loginbox $rectangles" $CUR_L_BLUR
|
||||
# convert $CUR_W_DIMBLUR -draw "fill #$loginbox $rectangles" $CUR_L_DIMBLUR
|
||||
#
|
||||
# echo "... Complete!"
|
||||
#}
|
||||
|
||||
|
||||
wallpaper() {
|
||||
local fopt
|
||||
|
|
Loading…
Reference in a new issue