summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorboredpasta <boredpasta@tutanota.com>2023-09-03 23:37:42 +0300
committerboredpasta <boredpasta@tutanota.com>2023-09-03 23:37:42 +0300
commit77a633099677020c6c265e58a945fd7e57dee59c (patch)
treedc890fcb07ffa7b0a1fcdfd439aaeebb64299ac4
parent84b15a791a13bb048566afe8c0ef8c9114d8fa24 (diff)
Get rid of superfluous unsets
-rwxr-xr-xmpc-notify7
1 files changed, 0 insertions, 7 deletions
diff --git a/mpc-notify b/mpc-notify
index 5320d5c..2ed025f 100755
--- a/mpc-notify
+++ b/mpc-notify
@@ -149,16 +149,9 @@ if [ "$use_preview" -eq 1 ]; then
song_icon="$default_song_icon"
fi
fi
- unset song_dirname
fi
- unset preview_path
fi
-unset xdg_music_dir song_filename song_album_name
# now send the actual notification
song_body="$(mpc --format '[%title%[ \n%artist% - %album%]]|[%file%]' current)"
notify-replace 'mpc-notify' "$song_head" "$song_body" -i "$song_icon" -u low
-
-# cleanup
-unset command preview_dir preview_width preview_height default_song_icon \
- use_preview song_head song_body song_icon