Compare commits

..

3 commits

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
albums_dir="$HOME/Images/Wallpapers/Desktop"
@ -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
@ -136,6 +136,7 @@ function set_theme_variables {
function set_gtk_css_file {
mkdir -p "$HOME/.config/gtk-3.0" &> /dev/null
echo -n '' > "$HOME/.config/gtk-3.0/colors.css"
for key in "${!colors[@]}"; do
@ -282,8 +283,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
}