[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Antiright-devel] antiright/ACE-desktop ACE
From: |
Jeffrey Bedard |
Subject: |
[Antiright-devel] antiright/ACE-desktop ACE |
Date: |
Sat, 17 Feb 2007 23:10:28 +0000 |
CVSROOT: /sources/antiright
Module name: antiright
Changes by: Jeffrey Bedard <jefbed> 07/02/17 23:10:28
Modified files:
ACE-desktop : ACE
Log message:
Added another Deskbar syle.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/antiright/ACE-desktop/ACE?cvsroot=antiright&r1=1.1&r2=1.2
Patches:
Index: ACE
===================================================================
RCS file: /sources/antiright/antiright/ACE-desktop/ACE,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- ACE 3 Feb 2007 20:11:14 -0000 1.1
+++ ACE 17 Feb 2007 23:10:27 -0000 1.2
@@ -131,22 +131,48 @@
'ACE'\
-at env
else
+ local STYLE="$(ACE deskbar_style)"
+ if [ "$STYLE" = "2" ]; then
+ local OPTIONS="-or 16 -oh"
+ else
+ local OPTIONS="-or 1"
+ fi
+
+ local UPDATER=$(ACE deskbar_updater)
+
+ local ACE_STRING=" -aI ACE $icon/ACE.png"
+
+ if [ "$TMPDIR" = "" ]; then
+ local TMPDIR=/tmp
+ fi
+ local TMP=$TMPDIR/ACE.panel.$$
- TMP=/tmp/ACE.panel.$$
trap "rm -f $TMP" 2
+
echo '#!/bin/sh' > $TMP
- echo "$ARSHELL -os -on -or 1 \\" >> $TMP
+ echo "$ARSHELL -os -on $OPTIONS \\" >> $TMP
echo " -og +$(ACE Deskbar_X)+$(ACE Deskbar_Y)\\" >> $TMP
- echo " -aI ACE $icon/ACE.png\\" >> $TMP
+
+ if [ "$UPDATER" = "TRUE" ]; then
+ echo " $ACE_STRING\\" >> $TMP
+ fi
+
echo " -at env\\" >> $TMP
+
for item in $(ACE Panel_Items); do
echo ' -aI '"'"ACE $item"'" $icon/$item.png "\\" >> $TMP
done
+
+ if [ "$UPDATER" = "TRUE" ]; then
echo " -aul 'ACE -A taskbar_update'" >> $TMP
+ else
+ echo " $ACE_STRING" >> $TMP
+ fi
+
chmod +x $TMP
+ cat $TMP
$TMP
rm -f $TMP
-
fi
}
ARO()
@@ -320,7 +346,7 @@
{
# Ensure the existance of a configuration file.
ACE_Check_Configuration_File
- TMP=${TMPDIR:-/tmp}/ACE.$$
+ local TMP=${TMPDIR:-/tmp}/ACE.$$
echo "$ARSHELL -or 9"\\ > $TMP
for title in $(ACE_record_titles)
do
- [Antiright-devel] antiright/ACE-desktop ACE,
Jeffrey Bedard <=