From 6203f3833aedf858f98f5c418a586d03ccc40429 Mon Sep 17 00:00:00 2001 From: cho Date: Sun, 18 Jun 2023 20:27:20 +0700 Subject: [PATCH] update change-background --- home/default/.local/bin/change-background | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/default/.local/bin/change-background b/home/default/.local/bin/change-background index 63ba200..9f52398 100755 --- a/home/default/.local/bin/change-background +++ b/home/default/.local/bin/change-background @@ -7,8 +7,8 @@ bgaloc="${XDG_DATA_HOME:-$HOME/.local/share}/bga" trueloc="$(readlink -f "$1")" && case "$(file --mime-type -b "$trueloc")" in - video/* ) ifinstalled mpvpaper && ln -sf "$trueloc" "$bgaloc" && notify-send -i "$bgaloc" "Changing wallpaper..." ;; - image/gif ) ifinstalled mpvpaper && ln -sf "$trueloc" "$bgaloc" && ln -sf "$trueloc" "$bgloc" && notify-send -i "$bgaloc" "Changing wallpaper..." ;; + video/* ) mpvpaper && ln -sf "$trueloc" "$bgaloc" && notify-send -i "$bgaloc" "Changing wallpaper..." ;; + image/gif ) mpvpaper && ln -sf "$trueloc" "$bgaloc" && ln -sf "$trueloc" "$bgloc" && notify-send -i "$bgaloc" "Changing wallpaper..." ;; image/* ) ln -sf "$trueloc" "$bgloc" && notify-send -i "$bgloc" "Changing wallpaper..." if [[ -f "$bgaloc" ]]; then rm $bgaloc