• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.dependH A D01-May-20130

Makefile.inH A D01-May-2013178 115

README.theme.handlerH A D01-May-20136 KiB140119

Uninstall-Old-AfterStepH A D01-May-20133 KiB8046

Xpm2JpgH A D01-May-2013394 2719

ascommand.plH A D03-May-20227.2 KiB265165

bughintH A D01-May-2013650 2621

cvs2cl.as.plH A D01-May-201376.8 KiB2,4591,645

git-cl.shH A D01-May-2013486 118

importasmenuH A D03-May-20221.4 KiB6644

installastheme.pl.inH A D03-May-202223.8 KiB718477

makeascleanH A D01-May-20131.5 KiB4827

makeaspatchH A D01-May-20132 KiB6138

makeastheme.pl.inH A D03-May-202218.2 KiB602425

makeasversionH A D01-May-20131.7 KiB7653

postcard.sh.inH A D01-May-20132 KiB13097

testcompile.shH A D01-May-20133 KiB12995

unexpand.shH A D01-May-2013241 1713

README.theme.handler

1AfterStep Themes Pack 0.4.2 by Lathi, Semyaza
2
3This version is the same version that ships with AfterStep 1.6.10 patch 02
4(or AfterStep 1.6.12).
5
6/*
7 *
8 * Copyright (c) 1998 Lathi <alcornd@earthlink.net>
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.   See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 *
24 */
25
26This bundle of two Perl scripts is used to implement themes in the
27Afterstep window manager for X (http://www.afterstep.org).  While Perl
28is really cool, a better solution would be to implement this natively
29in AfterStep using C code.  I believe the AfterStep maintainers have
30every intention of doing this.  I wrote these scripts to "test the
31waters" and find out what would be involved in implementing themes for
32AfterStep.  When AfterStep supports themes natively, I hope that the
33themes built with these scripts will be compatible (but there is no
34guarantee that will be the case).
35
36At this time, these scripts are becoming solid beta quality.  I would
37still highly recommend you to backup your configuration files in the
38~/GNUstep/Library/Afterstep dir.  The easiest way to undo a theme is
39to simply restore your old files.
40
41This theme pack currently supports the following modules and options:
42
43Wharf:			Pager:
44	BgColor			Align
45	Pixmap			Back
46	TextureColor		BalloonBack
47	TextureType		BalloonBorderColor
48				BalloonBorderWidth
49WinList:			BalloonFore
50	Font			DesktopImage
51	Fore			Font
52	Back			Hilight
53	Justify			Image
54	Pixmap (AS 1.5b6 pl2)	SmallFont
55
56Of course, the look file and desktop background is supported.  Also,
57any images specified in the look file or the module options above are
58also carried with the theme that is built.
59
60This theme pack expects to find the
61~/GNUstep/Library/AfterStep/desktop/themes directory.  Each theme
62should be a subdirectory from there.  When you download a theme, untar
63it in the themes dir.  Also, when you build a theme, if you want to
64bundle any unique icons for use in the database file, put them in the
65specific subir of the themes dir.
66
67Also, the theme pack will only look in ~/GNUstep/Library/AfterStep for
68module configuration files.  That means when building a theme, it only
69takes modifications from that dir.  If the config files aren't there,
70makeastheme.pl will ignore that module.  When installing a theme,
71installastheme.pl will only edit files in ~/GNUstep/Library/Afterstep.
72If it doesn't find any modules there, it will skip that module.  At a
73minimum, you should have 'wharf', 'pager', and 'winlist' files in the
74~/GNUstep/Library/AfterStep dir.
75
76Both installastheme.pl and makeastheme.pl take the same command line
77arguments.  The arguments can be in any order.  The directory from
78which the scripts are called is irrelevant.  All directory paths are
79coded into the scripts and double-checked at runtime.  After running
80installastheme.pl, you will need to manually restart AfterStep for the
81changes to take place.
82
83When making the themes, you simply run 'makeastheme.pl' with the '--theme
84<theme_name>' argument and any any of the other command line arguments you
85might want to use.  This script will grab all the config files necessary
86and all images specified within those config files.  It then creates the
87theme in your '~/GNUstep/Library/AfterStep/desktop/themes' directory in
88both .tar.gz format and in a directory by the same name.
89
90Usage: [make|install]astheme.pl [--theme <theme_name>] [--no_wharf] [--no_pager] [--no_winlist] [--no_background]
91
92--theme:	this option is used to specify the theme to install.
93		With installastheme.pl it is mandatory.  With
94		makeastheme.pl if unspecified, the $USER
95		environmental variable will be used instead.
96
97--no_wharf:
98--no_pager:
99--no_winlist:
100--no_background:	Each of these options tell the scripts to skip
101			processing for each of these modules.  For
102			makeastheme.pl it is similar to saying, "I
103			don't have anything interesting in this
104			module, don't store those options in the
105			theme."	For installastheme.pl it is similar to
106			saying, "I really like my <module>, don't
107			change any settings in there."
108
109When installing the themes, a couple of interesting things take
110place.  First, the look file that comes with the theme is copied to
111the standard looks directory with the name look.<theme_name>.  Second,
112the base.<your_bpp>bpp file is modified so that the PixmapPath has the
113theme dir prepended to it.  This allows any images specified in the
114theme to be used rather than an image of the same name on your system
115already.  Third, if present, the wharf, pager, and winlist config
116files will be edited where ever the above supported options are found.
117Rather than just put the new themeified lines in the config files, a
118comment is inserted with the theme name and the original line is simply
119commented out.  No backups are made of your original config files.  Be
120smart, do this yourself.
121
122BUGS
123
124If you find any, you can email me (mailto:alcornd@earthlink.net) or
125the AfterStep mailing list (mailto:afterstep@linuxcenter.com).
126Alternatively, you can also probably find me on EfNet channel
127#afterstep as Lathi.
128
129And before anyone asks me, Eterm behaves in a funky way with this.  If
130you have Eterms with the --trans option up and running when you reset
131the theme, the background won't get updated.  You can fix this by
132using the -W (-watch-background) option for Eterm so that it will
133notice when you change the background.
134
135TODO
136
137-- Implement uninstallastheme.pl
138-- Add support for sounds
139-- makeastheme.pl needs to be more modular as installastheme.pl
140