change music dir and use nsxiv instead of sxiv

This commit is contained in:
mrsu 2023-05-01 19:41:04 +01:00
parent 490a544dd4
commit e9f14b5d79
1 changed files with 4 additions and 4 deletions

8
kunst
View File

@ -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