From e9f14b5d795cf4e8679548dc1e2793691a72b6de Mon Sep 17 00:00:00 2001 From: mrsu Date: Mon, 1 May 2023 19:41:04 +0100 Subject: [PATCH] change music dir and use nsxiv instead of sxiv --- kunst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kunst b/kunst index 9d0a8f4..1ca4676 100755 --- a/kunst +++ b/kunst @@ -4,12 +4,12 @@ # ┴ ┴└─┘┘└┘└─┘ ┴ # Created by Siddharth Dushantha # -# Dependencies: sxiv, imagemagick, bash, ffmpeg, mpc, jq, mpd +# Dependencies: nsxiv, imagemagick, bash, ffmpeg, mpc, jq, mpd VERSION=1.3.4 COVER=/tmp/kunst.jpg -MUSIC_DIR="${KUNST_MUSIC_DIR:-~/Music}" +MUSIC_DIR="${KUNST_MUSIC_DIR:-"$HOME/mus/music/"}" SIZE="${KUNST_SIZE:-250x250}" POSITION="${KUNST_POSITION:-+0+0}" ONLINE_ALBUM_ART="" @@ -206,7 +206,7 @@ pre_exit() { main() { - dependencies=(sxiv convert bash ffmpeg mpc jq mpd) + dependencies=(nsxiv convert bash ffmpeg mpc jq mpd) for dependency in "${dependencies[@]}"; do type -p "$dependency" &>/dev/null || { logError "could not find '${dependency}', is it installed?" @@ -235,7 +235,7 @@ main() { FIRST_RUN=false # Display the album art using sxiv - sxiv -g "$SIZE$POSITION" -b "$COVER" -N "Kunst" & + nsxiv -g "$SIZE$POSITION" -b "$COVER" -N "Kunst" & # Save the process ID so that we can kill # sxiv when the user exits the script