antiright-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Antiright-devel] antiright/src ACE


From: Jeffrey Bedard
Subject: [Antiright-devel] antiright/src ACE
Date: Fri, 22 Oct 2004 13:14:14 -0400

CVSROOT:        /cvsroot/antiright
Module name:    antiright
Branch:         
Changes by:     Jeffrey Bedard <address@hidden> 04/10/22 17:08:48

Modified files:
        src            : ACE 

Log message:
        Added persistancy of background colors through the use of 
~/.antirightrc.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/antiright/antiright/src/ACE.diff?tr1=1.21&tr2=1.22&r1=text&r2=text

Patches:
Index: antiright/src/ACE
diff -u antiright/src/ACE:1.21 antiright/src/ACE:1.22
--- antiright/src/ACE:1.21      Mon Aug 30 00:02:27 2004
+++ antiright/src/ACE   Fri Oct 22 17:08:47 2004
@@ -409,6 +409,11 @@
     if [ "$color" != "" ]; then
        xsetroot -solid "$color"
     fi
+    # This allows the background color to be persistant across
+    # sessions.
+    grep -v ~/.antirightrc xsetroot > /tmp/antirightrc.$$
+    echo 'xsetroot -solid "$color"' >> /tmp/antirightrc.$$
+    mv /tmp/antirightrc.$$ ~/.antirightrc
 }
 Mount_File_System()
 {
@@ -563,16 +568,17 @@
 }
 
 if [ $# -gt 0 ]; then # This runs a command configured in ~/.antiright
-       TMP=${TMPDIR:-/tmp}/ACE.$$
-       echo $1 > $TMP
-       if grep theme $TMP; then
-           ACE_set_theme $1
-       else
-           command=$(ACE_read_configuration_value $1)
-           shift
-           $command $@ &
-       fi
-       trap "rm $TMP* 2>/dev/null" 0
+    if grep theme <<EOF
+$1
+EOF
+       then
+       ACE_set_theme $1
+    else
+        # This allows parameters to be passed to a configured command.
+       command="$(ACE_read_configuration_value $1)"
+       shift
+       $command $@ &
+    fi
 else
     ACE_Panel
 fi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]