improve process calling
parent
c912258000
commit
f4083d292b
|
|
@ -58,7 +58,7 @@ rm -f $SIGNALFILE
|
||||||
while [ ! -e $SIGNALFILE ]; do
|
while [ ! -e $SIGNALFILE ]; do
|
||||||
sleep 0.05
|
sleep 0.05
|
||||||
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'
|
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
|
# Use sleep to enforce icon order
|
||||||
|
|
|
||||||
|
|
@ -1,32 +1,32 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
exec xlunch --input /etc/xlunch/entries.dsv \
|
COMMAND=$(
|
||||||
--background /usr/share/wallpapers/slax_wallpaper.jpg --font DejaVuSans/11 \
|
xlunch --input /etc/xlunch/entries.dsv \
|
||||||
--voidclickterminate --iconpadding 30 --textpadding 10 \
|
--background /usr/share/wallpapers/slax_wallpaper.jpg --font DejaVuSans/11 \
|
||||||
--paddingswap --leastmargin 10 --hidemissing --iconsize 128 \
|
--voidclickterminate --iconpadding 30 --textpadding 10 \
|
||||||
--highlight /usr/share/icons/hicolor/128x128/apps/xlunch_highlight.png \
|
--paddingswap --leastmargin 10 --hidemissing --iconsize 128 \
|
||||||
--outputonly | while read LINE; do
|
--highlight /usr/share/icons/hicolor/128x128/apps/xlunch_highlight.png \
|
||||||
|
--outputonly
|
||||||
|
)
|
||||||
|
|
||||||
if [ "$LINE" = "" ]; then
|
if [ "$COMMAND" = "" ]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fbstartupnotify
|
fbstartupnotify
|
||||||
|
|
||||||
cmd="$(echo $LINE | sed -r "s/\\s.*//")"
|
cmd="$(echo $COMMAND | sed -r "s/\\s.*//")"
|
||||||
whi="$(which $cmd | head -n 1)"
|
whi="$(which $cmd | head -n 1)"
|
||||||
Xdep=$(ldd $whi | grep libX11)
|
Xdep=$(ldd $whi | grep libX11)
|
||||||
Ndep=$(ldd $whi | grep libncurses)
|
Ndep=$(ldd $whi | grep libncurses)
|
||||||
|
|
||||||
WAIT='echo "--------------------------------------------------"; read -n 1 -s -r -p "Command finished. Press any key to close window..."'
|
WAIT='echo "--------------------------------------------------"; read -n 1 -s -r -p "Command finished. Press any key to close window..."'
|
||||||
if [ "$Ndep" != "" -o "$cmd" = "man" -o "$cmd" = "mc" ]; then
|
if [ "$Ndep" != "" -o "$cmd" = "man" -o "$cmd" = "mc" ]; then
|
||||||
WAIT=""
|
WAIT=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$Xdep" = "" -a "$cmd" != "chromium" ]; then
|
if [ "$Xdep" = "" -a "$cmd" != "chromium" ]; then
|
||||||
xterm -ls -e bash --login -c -- "echo $USER@$HOSTNAME:$PWD# '$LINE'; $LINE; $WAIT"
|
exec xterm -ls -e bash --login -c -- "echo $USER@$HOSTNAME:$PWD# '$COMMAND'; $COMMAND; $WAIT"
|
||||||
else
|
else
|
||||||
$LINE
|
exec $COMMAND
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue