script: refactor change-colortheme
This commit is contained in:
@@ -80,13 +80,13 @@ if [ "$XDG_CURRENT_DESKTOP" = "Hyprland" ]; then
|
||||
|
||||
notify-send -a "change-wallpaper" "Wallpaper Changed" "$image" -i "$image_copied"
|
||||
|
||||
change-colortheme -i "$image_copied" !quickshell !nwg-look || exit 1
|
||||
change-colortheme -i "$image_copied" || exit 1
|
||||
elif [ "$XDG_CURRENT_DESKTOP" = "niri" ]; then
|
||||
swww img -n background "$image_copied" --transition-type fade --transition-duration 2 > /dev/null 2> /dev/null
|
||||
|
||||
notify-send -a "change-wallpaper" "Wallpaper Changed" "$image" -i "$image_copied"
|
||||
|
||||
change-colortheme -i "$image_copied" !waybar !eww !mako !nwg-look || exit 1
|
||||
change-colortheme -i "$image_copied" || exit 1
|
||||
else
|
||||
echo "Unsupported desktop environment: $XDG_CURRENT_DESKTOP"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user