File: README.theme.handler

package info (click to toggle)
afterstep 2.2.12-12
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 32,716 kB
  • sloc: ansic: 201,692; sh: 5,840; xml: 3,721; makefile: 2,093; perl: 1,558; cpp: 811
file content (139 lines) | stat: -rw-r--r-- 6,061 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
AfterStep Themes Pack 0.4.2 by Lathi, Semyaza

This version is the same version that ships with AfterStep 1.6.10 patch 02
(or AfterStep 1.6.12).

/*
 *
 * Copyright (c) 1998 Lathi <alcornd@earthlink.net>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.   See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 */

This bundle of two Perl scripts is used to implement themes in the
Afterstep window manager for X (http://www.afterstep.org).  While Perl 
is really cool, a better solution would be to implement this natively
in AfterStep using C code.  I believe the AfterStep maintainers have
every intention of doing this.  I wrote these scripts to "test the
waters" and find out what would be involved in implementing themes for 
AfterStep.  When AfterStep supports themes natively, I hope that the
themes built with these scripts will be compatible (but there is no
guarantee that will be the case).

At this time, these scripts are becoming solid beta quality.  I would
still highly recommend you to backup your configuration files in the
~/GNUstep/Library/Afterstep dir.  The easiest way to undo a theme is
to simply restore your old files.

This theme pack currently supports the following modules and options:

Wharf:			Pager:
	BgColor			Align
	Pixmap			Back
	TextureColor		BalloonBack
	TextureType		BalloonBorderColor
				BalloonBorderWidth
WinList:			BalloonFore
	Font			DesktopImage
	Fore			Font
	Back			Hilight
	Justify			Image
	Pixmap (AS 1.5b6 pl2)	SmallFont

Of course, the look file and desktop background is supported.  Also,
any images specified in the look file or the module options above are
also carried with the theme that is built.

This theme pack expects to find the
~/GNUstep/Library/AfterStep/desktop/themes directory.  Each theme
should be a subdirectory from there.  When you download a theme, untar 
it in the themes dir.  Also, when you build a theme, if you want to
bundle any unique icons for use in the database file, put them in the
specific subir of the themes dir.

Also, the theme pack will only look in ~/GNUstep/Library/AfterStep for 
module configuration files.  That means when building a theme, it only
takes modifications from that dir.  If the config files aren't there, 
makeastheme will ignore that module.  When installing a theme,
installastheme will only edit files in ~/GNUstep/Library/Afterstep.
If it doesn't find any modules there, it will skip that module.  At a
minimum, you should have 'wharf', 'pager', and 'winlist' files in the
~/GNUstep/Library/AfterStep dir.

Both installastheme and makeastheme take the same command line
arguments.  The arguments can be in any order.  The directory from
which the scripts are called is irrelevant.  All directory paths are
coded into the scripts and double-checked at runtime.  After running
installastheme, you will need to manually restart AfterStep for the
changes to take place.

When making the themes, you simply run 'makeastheme' with the '--theme
<theme_name>' argument and any any of the other command line arguments you
might want to use.  This script will grab all the config files necessary
and all images specified within those config files.  It then creates the
theme in your '~/GNUstep/Library/AfterStep/desktop/themes' directory in
both .tar.gz format and in a directory by the same name.

Usage: [make|install]astheme [--theme <theme_name>] [--no_wharf] [--no_pager] [--no_winlist] [--no_background]

--theme:	this option is used to specify the theme to install.
		With installastheme it is mandatory.  With
		makeastheme if unspecified, the $USER
		environmental variable will be used instead.

--no_wharf:
--no_pager:
--no_winlist:
--no_background:	Each of these options tell the scripts to skip 
			processing for each of these modules.  For
			makeastheme it is similar to saying, "I
			don't have anything interesting in this
			module, don't store those options in the
			theme."	For installastheme it is similar to
			saying, "I really like my <module>, don't
			change any settings in there."

When installing the themes, a couple of interesting things take
place.  First, the look file that comes with the theme is copied to
the standard looks directory with the name look.<theme_name>.  Second, 
the base.<your_bpp>bpp file is modified so that the PixmapPath has the 
theme dir prepended to it.  This allows any images specified in the
theme to be used rather than an image of the same name on your system
already.  Third, if present, the wharf, pager, and winlist config
files will be edited where ever the above supported options are found.
Rather than just put the new themeified lines in the config files, a
comment is inserted with the theme name and the original line is simply 
commented out.  No backups are made of your original config files.  Be 
smart, do this yourself.

BUGS

If you find any, you can email me (mailto:alcornd@earthlink.net) or
the AfterStep mailing list (mailto:afterstep@linuxcenter.com).
Alternatively, you can also probably find me on EfNet channel
#afterstep as Lathi.

And before anyone asks me, Eterm behaves in a funky way with this.  If 
you have Eterms with the --trans option up and running when you reset
the theme, the background won't get updated.  You can fix this by
using the -W (-watch-background) option for Eterm so that it will
notice when you change the background.

TODO

-- Implement uninstallastheme
-- Add support for sounds
-- makeastheme needs to be more modular as installastheme