ensure logoff icon is after volume icon

pull/40/head
TomasM 2017-11-12 11:31:30 -05:00
parent 3ccd071367
commit 46cecc778a
1 changed files with 8 additions and 5 deletions

View File

@ -46,7 +46,6 @@ if [ $? -eq 0 ]; then
fbautostart
fi
# Slax-local change:
# We need to postpone compton after fluxbox starts, else it won't set
# the transparency of toolbar properly... So we check the fehbg file,
# which is created by fluxbox at the phase when it sets background.
@ -56,21 +55,25 @@ SIGNALFILE=~/.fehbg
rm -f $SIGNALFILE
(
while [ ! -e $SIGNALFILE ]; do
sleep 0.05
sleep 0.1
done
compton --sw-opti -e 0.9 --fade-exclude 'role*="fluxbox-toolbar"' --opacity-rule '70:role*="fluxbox-toolbar"' --no-fading-destroyed-argb -D 5 -c -f -l -2 -t -2 -r 0 -o 1 -z --shadow-exclude 'bounding_shaped' &
) &
# Use sleep to enforce icon order
# We want to run systrayicon only after the volumeicon is started
# So we have to wait until it is visible to xwinfo
(
# volume icon in system tray
volumeicon &
sleep 1
while ! xwininfo -name volumeicon >/dev/null 2>/dev/null; do
sleep 0.1
done
# system shutdown/logout icon in system tray
systrayicon --command fblogout --iconfile /usr/share/icons/locolor/16x16/actions/system-shutdown-symbolic.png &
) &
# wait for the sound
# In all cases, wait for the sound sleeper.
# If startup took longer (sound completed already), no extra wait
wait $SOUNDPID
# And last but not least we start fluxbox.