reorganize processes on fluxbox startup finally
parent
3cea731b77
commit
f0e7e31732
|
|
@ -43,23 +43,35 @@ fi
|
||||||
# which is created by fluxbox at the phase when it sets background.
|
# which is created by fluxbox at the phase when it sets background.
|
||||||
# Once the file exist, fluxbox-toolbar is already started
|
# Once the file exist, fluxbox-toolbar is already started
|
||||||
|
|
||||||
SIGNALFILE=~/.fehbg
|
SIGNAL1=~/.fehbg
|
||||||
rm -f $SIGNALFILE
|
SIGNAL2=~/.fehbg2
|
||||||
|
|
||||||
|
rm -f $SIGNAL1 2>/dev/null
|
||||||
|
rm -f $SIGNAL2 2>/dev/null
|
||||||
|
|
||||||
(
|
(
|
||||||
while [ ! -e $SIGNALFILE ]; do
|
while [ ! -e $SIGNAL1 ]; do
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
done
|
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' &
|
touch $SIGNAL2
|
||||||
|
exec 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'
|
||||||
|
) &
|
||||||
|
|
||||||
# We want to run systrayicon only after the volumeicon is started
|
# We want to run systrayicon only after the volumeicon is started
|
||||||
# So we have to wait until it is visible to xwinfo
|
# So we have to wait until it is visible to xwinfo
|
||||||
|
# We also wait after background is set and compton is started
|
||||||
|
(
|
||||||
|
while [ ! -e $SIGNAL2 ]; do
|
||||||
|
sleep 0.1
|
||||||
|
done
|
||||||
|
|
||||||
|
rm -f $SIGNAL2
|
||||||
|
|
||||||
while ! xwininfo -name volumeicon >/dev/null 2>&1 && pgrep volumeicon >/dev/null 2>&1; do
|
while ! xwininfo -name volumeicon >/dev/null 2>&1 && pgrep volumeicon >/dev/null 2>&1; do
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
done
|
done
|
||||||
# volume icon has launched, give it some time to init
|
|
||||||
sleep 1
|
exec systrayicon --command fblogout --iconfile /usr/share/icons/locolor/16x16/actions/system-shutdown-symbolic.png
|
||||||
# system shutdown/logout icon in system tray
|
|
||||||
systrayicon --command fblogout --iconfile /usr/share/icons/locolor/16x16/actions/system-shutdown-symbolic.png &
|
|
||||||
) &
|
) &
|
||||||
|
|
||||||
# In all cases, wait for the sound sleeper.
|
# In all cases, wait for the sound sleeper.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue