forked from Shinonome/dots-hyprland
Merge branch 'end-4:main' into main
This commit is contained in:
@@ -175,10 +175,8 @@ switch() {
|
|||||||
cursorposy=$(bc <<< "scale=0; ($cursorposy - $screeny) * $scale / 1")
|
cursorposy=$(bc <<< "scale=0; ($cursorposy - $screeny) * $scale / 1")
|
||||||
cursorposy_inverted=$((screensizey - cursorposy))
|
cursorposy_inverted=$((screensizey - cursorposy))
|
||||||
|
|
||||||
matugen_args=(--source-color-index 0)
|
|
||||||
|
|
||||||
if [[ "$color_flag" == "1" ]]; then
|
if [[ "$color_flag" == "1" ]]; then
|
||||||
matugen_args+=(color hex "$color")
|
matugen_args=(color hex "$color")
|
||||||
generate_colors_material_args=(--color "$color")
|
generate_colors_material_args=(--color "$color")
|
||||||
else
|
else
|
||||||
if [[ -z "$imgpath" ]]; then
|
if [[ -z "$imgpath" ]]; then
|
||||||
@@ -236,7 +234,7 @@ switch() {
|
|||||||
set_thumbnail_path "$thumbnail"
|
set_thumbnail_path "$thumbnail"
|
||||||
|
|
||||||
if [ -f "$thumbnail" ]; then
|
if [ -f "$thumbnail" ]; then
|
||||||
matugen_args+=(image "$thumbnail")
|
matugen_args=(image "$thumbnail")
|
||||||
generate_colors_material_args=(--path "$thumbnail")
|
generate_colors_material_args=(--path "$thumbnail")
|
||||||
create_restore_script "$video_path"
|
create_restore_script "$video_path"
|
||||||
else
|
else
|
||||||
@@ -245,7 +243,7 @@ switch() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
matugen_args+=(image "$imgpath")
|
matugen_args=(image "$imgpath")
|
||||||
generate_colors_material_args=(--path "$imgpath")
|
generate_colors_material_args=(--path "$imgpath")
|
||||||
# Update wallpaper path in config
|
# Update wallpaper path in config
|
||||||
set_wallpaper_path "$imgpath"
|
set_wallpaper_path "$imgpath"
|
||||||
|
|||||||
Reference in New Issue
Block a user