Theme changer: Update magick commands

This commit is contained in:
Viyurz 2024-06-29 17:25:52 +02:00
parent 663f0e5db6
commit 9588be73d9
Signed by: Viyurz
SSH key fingerprint: SHA256:IskOHTmhHSJIvAt04N6aaxd5SZCVWW1Guf9tEcxIMj8

View file

@ -30,7 +30,7 @@ EOF
function check_requirements {
req_satisfied=1
for executable in convert hyprctl hyprpaper kitty mako pastel wal waybar wlogout wofi; do
for executable in hyprctl hyprpaper kitty magick mako pastel wal waybar wlogout wofi; do
if ! which "$executable" > /dev/null; then
echo "Executable $executable not found!"
req_satisfied=0
@ -282,8 +282,8 @@ function set_waybar_theme {
function set_wlogout_theme {
for img in lock reboot shutdown logout; do
convert "$HOME/.config/wlogout/$img.png" -fill "${colors[accent1]}" -colorize 100 "$HOME/.config/wlogout/$img.png"
convert "$HOME/.config/wlogout/$img-focus.png" -fill "${colors[accent2]}" -colorize 100 "$HOME/.config/wlogout/$img-focus.png"
magick "$HOME/.config/wlogout/$img.png" -fill "${colors[accent1]}" -colorize 100 "$HOME/.config/wlogout/$img.png"
magick "$HOME/.config/wlogout/$img-focus.png" -fill "${colors[accent2]}" -colorize 100 "$HOME/.config/wlogout/$img-focus.png"
done
}