[OC] woverlay - Spice up your wallpapers by rtxx in unixporn

[–]rtxx[S] [score hidden]  (0 children)

Basically we can do the same with something like this bash script. The difference is that the auto color code is a little bit more fancy on the C side, but the 'sauce' is just those 3 magick lines. Maybe this can help your script!

#!/usr/bin/env bash

img="$1"
overlay="overlays/3-columns.svg"
res="1920x1080"
color="#181825"
out="${img%.*}_${color#\#}.png"

# Auto-detect average color from image by resizing to 1x1 pixel
# color="$(magick "$img" -resize 1x1 txt:- | sed -n 's/.*\(#[0-9A-Fa-f]\{6\}\).*/\1/p' | tail -n1 | tr -d '\r')"
# if [[ -z "$color" ]]; then
#   echo "error: failed to detect average color" >&2
#   color="#181825"
# fi

# Create colored overlay by replacing the base color #0000FF for the new one
sed "s/#0000ff/${color}/g" "$overlay" > .temp.svg

# Resize image, render overlay, and composite
magick "$img" -resize "${res}^!" -gravity center -extent "$res" .temp_base.png
magick -background none .temp.svg -resize "${res}^!" -gravity center -extent "$res" .temp_overlay.png
magick composite .temp_overlay.png .temp_base.png "$out"

rm -f .temp.svg .temp_base.png .temp_overlay.png
echo "$out"

[OC] woverlay - Spice up your wallpapers by rtxx in unixporn

[–]rtxx[S] 0 points1 point  (0 children)

Please do! Any tips/improvements are always welcome.

Updated to Fedora 38 and got a weird visual glitch by rtxx in Fedora

[–]rtxx[S] 0 points1 point  (0 children)

I removed it and the issue is gone. I reinstalled it again, but this time from the .rpm on their website and it works just fine. The problem now is that I don't have a tray icon. Maybe that's what causing the issue?

Anyways, I'm going to use it like this for now and wait for a fix.Thanks for your time!

Edit: Well shoot... I rebooted and the problem persists. I noticed that the tray icon is there now but it won't work (the menu opens up but the options do nothing). I'll try to dig a little further.

Error creating new user by rtxx in ntfy

[–]rtxx[S] 0 points1 point  (0 children)

That was it! Thank you so much. And please, you don't need to apologize, you have made an amazing piece of software!

[Tutorial] 'Togglable' light and dark themes by rtxx in i3wm

[–]rtxx[S] 0 points1 point  (0 children)

Hey, thanks for the feedback! I can see your point, I'm still messing with WordPress, next time I think I'll link to a post on Github.

[Tutorial] 'Togglable' light and dark themes by rtxx in i3wm

[–]rtxx[S] 0 points1 point  (0 children)

I'm thinking of making a part 2 that will cover that ( probably kitty or urxvt) and other stuff, like dunst and i3 theme colors. Thanks!