wait for feh to signal its completed

pull/40/head
TomasM 2017-11-14 15:15:04 -05:00
parent 4954b169f1
commit 0af58652d2
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ rm -f $SIGNAL2 2>/dev/null
# gen screen resolutions to fluxbox menu
xrandr 2>/dev/null | fgrep x | fgrep . | sort -n | tr -s " " | cut -d " " -f 2 \
| sed -r "s:(.*):[exec] (\\1) {xrandr -s \\1; killall -SIGUSR1 compton}:" > ~/.fluxbox/menu_resolution
| sed -r "s:(.*):[exec] (\\1) {rm -f $SIGNAL1; xrandr -s \\1; while [ -e $SIGNAL1 ]; do sleep 0.1; done; killall -SIGUSR1 compton}:" > ~/.fluxbox/menu_resolution
# In all cases, wait for the sound sleeper.
# If startup took longer (sound completed already), no extra wait