Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion kunst
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ main() {
FIRST_RUN=false

# Display the album art using sxiv
sxiv -g "$SIZE$POSITION" -b "$COVER" -N "Kunst" &
# If sxiv is closed, kill the script as well with the trap at the and of
# the script (see issue #48).
(sxiv -g "$SIZE$POSITION" -b "$COVER" -N "Kunst"; kill -USR1 0) &

# Save the process ID so that we can kill
# sxiv when the user exits the script
Expand All @@ -251,4 +253,6 @@ main() {
trap "" SIGTSTP

trap pre_exit EXIT
trap 'exit 1' TERM HUP INT
trap 'exit 0' USR1
main