409 |
if [ "$color" != "" ]; then |
if [ "$color" != "" ]; then |
410 |
xsetroot -solid "$color" |
xsetroot -solid "$color" |
411 |
fi |
fi |
412 |
|
# This allows the background color to be persistant across |
413 |
|
# sessions. |
414 |
|
grep -v ~/.antirightrc xsetroot > /tmp/antirightrc.$$ |
415 |
|
echo 'xsetroot -solid "$color"' >> /tmp/antirightrc.$$ |
416 |
|
mv /tmp/antirightrc.$$ ~/.antirightrc |
417 |
} |
} |
418 |
Mount_File_System() |
Mount_File_System() |
419 |
{ |
{ |
568 |
} |
} |
569 |
|
|
570 |
if [ $# -gt 0 ]; then # This runs a command configured in ~/.antiright |
if [ $# -gt 0 ]; then # This runs a command configured in ~/.antiright |
571 |
TMP=${TMPDIR:-/tmp}/ACE.$$ |
if grep theme <<EOF |
572 |
echo $1 > $TMP |
$1 |
573 |
if grep theme $TMP; then |
EOF |
574 |
ACE_set_theme $1 |
then |
575 |
else |
ACE_set_theme $1 |
576 |
command=$(ACE_read_configuration_value $1) |
else |
577 |
shift |
# This allows parameters to be passed to a configured command. |
578 |
$command $@ & |
command="$(ACE_read_configuration_value $1)" |
579 |
fi |
shift |
580 |
trap "rm $TMP* 2>/dev/null" 0 |
$command $@ & |
581 |
|
fi |
582 |
else |
else |
583 |
ACE_Panel |
ACE_Panel |
584 |
fi |
fi |