pager in the wharf....

Graydon (oak@uniserve.com)
Mon, 12 Jan 2004 14:46:36 -0500



--KsGdsel6WgEHnImy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Latest CVS -- from 12 Jan 2004, 12h58 EST -- works, the included spec
file _almost_ works on Fedora (it's missing libAfterStep from the files
section, modified spec file attached).

But I still can't get the pager into the wharf.

If I use:

*Wharf Pager - SwallowModule "Pager" Pager 0 0 

I get two and a bit of what ought to be six viewports in the wharf, and
I can't do anything with them; they don't show any open windows, and if
I click on them I wind up several desktops away, with the background
the paper is using gone to default grey, instead of the mostly black of
the background I am using.

If I use:

*Wharf Pager - MaxSwallowModule "Pager" Pager 0 0

I get an absolutely enormous pager, the whole width of the screen, which
in turn causes a wharf the whole width the screen, with all the other
icons neatly centred.

This appears to be completely independent of any size specifications in
the pager.

Modified .spec file, and autoexec, wharf, and pager files attached.

-- 
oak@uniserve.com | Uton we hycgan    hwaer we ham agen,
                 | ond thonne gedhencan    he we thider cumen.
                 |   -- The Seafarer, ll. 117-118.

--KsGdsel6WgEHnImy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="AfterStep.spec"

%define	name	AfterStep
%define	fver	2.00.beta3
%define	version	2.00.beta3
%define	release	1
%define	serial	1

Summary:	AfterStep Window Manager (NeXTalike)
Name:		%{name}
Version:	%{version}
Release:	%{release}
Serial:		%{serial}
Copyright:	GPL
Group:		User Interface/Desktops
URL:		http://www.afterstep.org
Vendor:		The AfterStep Team (see TEAM in docdir)
Source:		ftp://ftp.afterstep.org/devel/snapshots/%{name}-%{fver}.tar.bz2
#Source1:	AfterStep-redhat.tar.gz
#Patch0:
Distribution:	The AfterStep TEAM
Packager:	David Mihm <webmaster@afterstep.org>
BuildRoot:	%{_tmppath}/%{name}-%{version}-root
Requires: %{name}-libs

%description
  AfterStep is a Window Manager for X which started by emulating the
  NEXTSTEP look and feel, but which has been significantly altered
  according to the requests of various users. Many adepts will tell you
  that NEXTSTEP is not only the most visually pleasant interface, but
  also one of the most functional and intuitive out there. AfterStep
  aims to incorporate the advantages of the NEXTSTEP interface, and add
  additional useful features.

  The developers of AfterStep have also worked very hard to ensure
  stability and a small program footprint. Without giving up too many
  features, AfterStep still works nicely in environments where memory is
  at a premium.

%package libs
summary:	libraries required by afterstep 2.0
version:	%{version}
release:	%{release}
copyright:	GPL
group:		User Interface/Desktops

%description libs
  Libraries neeeded by AfterStep 2.0

%package devel
summary:	AftterStep libs include files
version:	%{version}
release:	%{release}
copyright:	GPL
group:		User Interface/Desktops
Requires: %{name}-libs

%description devel
  AftterStep libs include files

%prep
%setup -q -n %{name}-%{fver}
#%patch0 -p1

# RedHat's version of the startmenu
# rm -rf afterstep/start
# tar xzf $RPM_SOURCE_DIR/AfterStep-redhat.tar.gz

CFLAGS=$RPM_OPT_FLAGS \
./configure --prefix=/usr/X11R6 --datadir=/usr/share \
    --disable-staticlibs --enable-sharedlibs \
	 --with-helpcommand="aterm -e man" \
	 --with-desktops=1 \
	 --with-deskgeometry=2x3 \
	 --with-imageloader="qiv --root"

%build
make

if [ -x /usr/bin/sgml2html ]; then sgml2html doc/afterstep.sgml; fi

%install
if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
mkdir -p $RPM_BUILD_ROOT

make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT/usr/X11R6/bin/{sessreg,xpmroot}
for f in libAfter{Base,Image}; do
   cp -a $f/$f.so* %{buildroot}/usr/X11R6/lib
done

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc ChangeLog NEW README* TEAM UPGRADE doc/languages doc/licences doc/code TODO doc/*.html
/usr/X11R6/bin/*
/usr/X11R6/lib/*
/usr/X11R6/man/*/*
%config /usr/share/afterstep

%files libs
%defattr(-,root,root)
%doc libAfterImage/doc/* libAfterImage/README
/usr/X11R6/lib/*

%files devel
%defattr(-,root,root)
/usr/X11R6/include/libAfterBase/*
/usr/X11R6/include/libAfterImage/*
/usr/X11R6/include/libAfterStep/*

%pre
for i in /usr /usr/local /usr/X11R6 ; do
	if [ -d $i/share/afterstep_old ]; then
		rm -r $i/share/afterstep_old;
	fi
	# %config /usr/share/afterstep should take care of this.
	#if [ -d $i/share/afterstep ]; then
	#	cp -pr $i/share/afterstep $i/share/afterstep_old;
	#	exit;
	#fi
done

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%changelog
* Sun Dec 14 2003 Andre Costa <acosta@ar.microlink.com.br>
- split into three different RPMs
- AfterStep-libs is now required for AfterStep
- use qiv instead of xv for root image
- removed check for buildroot location on %clean
- removed references to RH startmenu

* Mon Dec 6 1999 David Mihm <webmaster@afterstep.org>
  [AfterStep-1.7.149-1]
- Updated to current version

* Wed Jun 9 1999 David Mihm <webmaster@afterstep.org>
  [AfterStep-1.7.111-1]
- Now this spec file is included in the distribution.
- Upgrade to latest snaphost 1.7.111
- Many thanks to Ryan Weaver for this spec file to include!!

* Tue Jun  8 1999 Ryan Weaver <ryanw@infohwy.com>
  [AfterStep-1.7.108-2]
- Made changes to spec to configure and install more like RedHat
  installations.
- Added %config to the /usr/share/afterstep listing to allow rpm to
  backup this dir if needed.

* Tue Jun  8 1999 Ryan Weaver <ryanw@infohwy.com>
  [AfterStep-1.7.108-1]
- Added patches 16-18 to make version 1.7.108

* Fri May 28 1999 Ryan Weaver <ryanw@infohwy.com>
  [AfterStep-1.7.105-1]
- Upgraded to 1.7.90 and added patches 1-15 to make it version 1.7.105.
- Made RPM relocatable.
- Building dynamic libs instead of static.

* Mon Feb  8 1999 Ryan Weaver <ryanw@infohwy.com>
  [AfterStep-1.6.10-1]
- Upgraded to 1.6.10

* Mon Jan  4 1999 Ryan Weaver <ryanw@infohwy.com>
  [AfterStep-1.6.6-3]
- Added a pre-install script to check to see if a previous versions
  share directory exists... If one does, it will copy it to afterstep_old.

* Thu Dec 31 1998 Ryan Weaver <ryanw@infohwy.com>
  [AfterStep-1.6.6-2]
- Configuring with no special settings and installing into
  default dirs as per David Mihm <davemann@ionet.net>


--KsGdsel6WgEHnImy
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: attachment; filename=wharf
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by daphne.lathi.net id i0CK37Ix014163

#########################################################################=
#
# Wharf
#
#------------------------------------------------------------------------=
      =20
# Background
#
#   0 - No texture
#   1 - Wharf-style gradient                            ^-
#   2 - Horizontal one way gradient                     =AF-_
#   3 - Horizontal from top/bottom to center            =3D-=3D
#   4 - Vertical one way gradient from left to right    ||| | |  | |
#   5 - Vertical from left/right to center              >>>>>><<<<<<
# 128 - User defined pixmap

*WharfAnimate
*WharfAnimateMain
*WharfAnimateDelay	0
*WharfAnimateSteps	5
*WharfAnimateStepsMain	5
#*WharfWithdrawStyle	3
*WharfWithdrawStyle	4

*WharfBalloons
#*WharfBalloonFore	snow
#*WharfBalloonBack	blue3
#*WharfBalloonFont	-adobe-helvetica-bold-o-*-*-12-*-*-*-*-*-*-*
#*WharfBalloonBorderWidth 0
#*WharfBalloonBorderColor Grey30
#*WharfBalloonDelay	120
*WharfBalloonYOffset	-1

#------------------------------------------------------------------------
# Buttons
#
*WharfFullPush
#*WharfNoPush
*WharfNoBorder

#------------------------------------------------------------------------
# Geometry
#
#*WharfForceSize
#*WharfRows		1
*WharfColumns		1
*WharfGeometry		+0+0


#------------------------------------------------------------------------
# Entries
#
# NOTE:	as<app-name> programs require the APPS
#	tarball which is separate from the core release.

#
# clock
#
#*Wharf - - MaxSwallow "asclock" /usr/bin/X11/asclock -24 -led blue2 &
*Wharf asclock - Swallow "asclock" asclock -24 -led blue2 -noblink -exe /=
usr/bin/kcontrol &
#*Wharf wmtime - Swallow "wmtime" wmtime &
#
# System load
#
#*Wharf asload - Swallow "asload" asload -shape -led CornflowerBlue &
#*Wharf wmmon - Swallow "wmmon" wmmon &
*Wharf ascpu - Swallow "ascpu" ascpu -standout -sys SteelBlue2 -user ligh=
tslateblue -nice violet &

#
# Pagers
#=20
*Wharf Pager - SwallowModule "Pager" Pager 0 0
#*Wharf Pager - MaxSwallowModule "Pager" Pager 0 0

#
# System memory monitor
#
*Wharf asmem - Swallow "asmem" asmem -mb -fg steelblue2 -buffer seagreen3=
 &

#
# System load monitor
#
#*Wharf asmon - Swallow "asmon" asmon &

#
# Network load monitor
#
*Wharf wmnet - Swallow "wmnet" wmnet -l -r slateblue1 &


#
# Mail
#
*Wharf asmail - Swallow "asmail" asmail &

#
# KDE applications, including a lot of KOffice
#
*Wharf KOffice /usr/share/icons/default.kde/48x48/apps/go.png,3_dots.xpm =
Folder
	*Wharf kcalc /usr/share/icons/default.kde/48x48/apps/kcalc.png Exec "-" =
/usr/bin/kcalc &
	*Wharf konsole /usr/share/icons/default.kde/48x48/apps/konsole.png Exec =
"-" /usr/bin/konsole &
	*Wharf kscd /usr/share/icons/default.kde/48x48/apps/kscd.png Exec "-" /u=
sr/bin/kscd &
	*Wharf noatun /usr/share/icons/default.kde/48x48/apps/noatun.png Exec "-=
" /usr/bin/noatun &
	*Wharf kword /usr/share/icons/default.kde/48x48/apps/kword.png Exec "-" =
/usr/bin/kword &
	*Wharf kspread /usr/share/icons/default.kde/48x48/apps/kspread.png Exec =
"-" /usr/bin/kspread &
	*Wharf kspresenter /usr/share/icons/default.kde/48x48/apps/kpresenter.pn=
g Exec "-" /usr/bin/kpresenter &
	*Wharf quanta /usr/share/icons/hicolor/48x48/apps/quanta.png Exec "-" /u=
sr/bin/quanta &
	*Wharf kmail /usr/share/icons/default.kde/48x48/apps/kmail.png Exec "-" =
/usr/bin/kmail &
#	*Wharf kinkatta /usr/share/apps/kinkatta/pics/kinkatta.png Exec "-" /us=
r/bin/kinkatta &
	*Wharf gaim /usr/share/pixmaps/gaim.png Exec "-" /usr/bin/artsdsp /usr/b=
in/gaim &
	*Wharf kit /usr/share/icons/default.kde/48x48/apps/kit.png Exec "-" /usr=
/bin/kit &
*Wharf ~Folder
#
# lock the screen now, don't wait about
#
#*Wharf lock KeysOnChain.xpm Exec "-" /usr/X11R6/bin/xscreensaver-command=
 -lock

#
# many browsers
#
*Wharf Browsers Netsurfer.xpm,3_dots.xpm Folder
    *Wharf konqueror /usr/share/icons/default.kde/48x48/apps/konqueror.pn=
g Exec "-" /usr/bin/konqueror &
    *Wharf galeon NetworkedGlobe.png Exec "-" /usr/bin/galeon &
    *Wharf opera ximian-opera.png Exec "-" /usr/bin/opera &
    *Wharf mozilla /usr/share/pixmaps/mozilla-icon.png Exec "-" /usr/bin/=
mozilla &
    *Wharf firebird /usr/share/pixmaps/mozilla-firebird.png Exec "-" /usr=
/bin/MozillaFirebird &
    *Wharf xine /usr/share/pixmaps/xine_48x48.png Exec "-" /usr/bin/xine =
&
    *Wharf kaffeine /usr/share/icons/hicolor/48x48/apps/kaffeine.png Exec=
 "-" /usr/bin/kaffeine &=20
    *Wharf realplayer Radio.xpm Exec "-" /usr/bin/artsdsp /usr/bin/realpl=
ay %u &=20
*Wharf ~Folder

# scheduling tools
*Wharf Scheduling Time2.xpm,3_dots.xpm Folder
#    *Wharf aspostit - Swallow "aspostit"  /usr/local/bin/aspostit -fn 10=
x20 &
    *Wharf kjots /usr/share/icons/default.kde/48x48/apps/kjots.png Exec "=
-" /usr/bin/kjots &
    *Wharf plan time.xpm Exec "-" /usr/bin/plan -S &
    *Wharf jpilot ThreePeopleBehindPencilTablet.xpm Exec "-" /usr/bin/jpi=
lot &
    *Wharf sync_plan pov-ballz5.xpm Exec "-" /home/graydon/bin/sync-plan =
/dev/pilot ~/.plan.dir &
    *Wharf Bubble /usr/share/pixmaps/frozen-bubble.png Exec "-" /usr/bin/=
frozen-bubble &
*Wharf ~Folder


#
# Applications
#
*Wharf Applications scribe.xpm,3_dots.xpm Folder
    *Wharf aterm PenguinWithShell.xpm Exec "-"  aterm -geometry 100x30 -s=
r -bg black -fg bisque -sl 1000 -vb -fn 12x24 -transparent &
    *Wharf xfig Draw.xpm Exec "-" /usr/X11R6/bin/xfig &
    *Wharf gimp /usr/share/pixmaps/gimp2.png Exec "-" /usr/bin/gimp-1.3 &
    *Wharf sodipodi /usr/share/pixmaps/sodipodi.png Exec "-" /usr/bin/sod=
ipodi &
    *Wharf Acrobat PDF.xpm Exec "-" /usr/bin/acroread &
    *Wharf Ted clipboard.xpm Exec "-" /usr/local/bin/Ted &
    *Wharf LyX lyx.xpm Exec "-" /usr/bin/lyx &
    *Wharf TeXmacs TeXmacs.xpm Exec "-" /usr/bin/texmacs &
    *Wharf OpenOffice ximian-staroffice.png Exec "-" /usr/bin/ooffice &
*Wharf ~Folder
# APM monitor; only useful for laptop
#
#*Wharf asapm - Swallow "asapm" asapm &

#
# Exit
#
#*Wharf QuitForm neonbtile.xpm Module "QuitForm" Form QuitForm
*Wharf Quit neonbtile.xpm Quit "" afterstep

#
#########################################################################=
###


--KsGdsel6WgEHnImy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=pager

#------------------------------------------------------------------------
# Pager
#

# Generalities
Balloons
BalloonXOffset		10
BalloonYOffset		-15
BalloonDelay		120
BalloonCloseDelay	3000
BalloonStyle		"*PagerBalloon"
BalloonBorderHilite	Right,Bottom

# Pager-executables name specific options
# That will override font specifyed in look. file styles

*PagerStickyIcons
#*PagerSmallFont		5x8

# Use it to decorate Pager to your liking.
# possible decoration parameters are :
#PagerDecoration option - possible values :
#   DeskBorderWidth #      - border width around desks
#   DeskBorderColor <color>- color of the border around desks
#                            (default is style's foreground)
#   NoPageSeparator        - removes lines separating one page from another
#   NoSelection            - removes frame surrounding selected page
#   SelectionColor <color> - color of the frame surrounding selected page
#   GridColor <color>      - defines color of page separating grid and desk
#                            borders
#   NoDeskLabel            - removes label from the desk
#   HideInactiveLabel      - use shaped extensions to hide labels of inactive
#                            desks
#   LabelBelowDesk         - will place label below desk vs. above

*PagerDecoration  DeskBorderWidth 1, DeskBorderColor BaseDark, GridColor Inactive2Dark, SelectionColor HighActiveLight, NoDeskLabel

#*PagerDecoration  DeskBorderWidth 1, DeskBorderColor white, GridColor white, SelectionColor cyan

*PagerGeometry       +0-0
#*PagerGeometry      64x64-1+27

# PagerStyle is used to define look of Pager's desk window.
# Relevant look must be defined in your look file or in this file
# Note that look file's definition will override definition in here

*PagerStyle     0       DeskStyle
*PagerStyle     1       DeskStyle
*PagerStyle     2       DeskStyle
*PagerStyle     3       DeskStyle

# use *PagerDontDrawBg  with xearth, xfishtank, ... to avoid redrawing
# background
#*PagerDontDrawBg
*PagerAlign          0
*PagerLabel          0       Work
*PagerLabel          1       WWW
*PagerLabel          2       Mail
*PagerLabel          3       Games
*PagerRows	     1
*PagerColumns        1
*PagerShadeButton	 default-shade-dark 		 default-shade-dark-pressed
#*PagerIconGeometry	+0-0
#*PagerStartIconic

##########################################################################
########    Unless you know why these entries below	##################
########    are here,  gnore them!	Thank you.	##################
##########################################################################
*WPagerStickyIcons
*WPagerSmallFont      5x8
*WPagerGeometry       -0-1
*WPagerStyle          0       DeskStyle
*WPagerAlign          0
*WPagerLabel          0       Work
#*WPagerDontDrawBg
*WPagerRows           1
*WPagerColumns        1
*XPagerStickyIcons
*XPagerSmallFont      5x8
*XPagerGeometry       -0-1
*XPagerStyle          1       DeskStyle
*XPagerAlign          0
*XPagerLabel          1       WWW
#*XPagerDontDrawBg
*XPagerRows           1
*XPagerColumns        1
*YPagerStickyIcons
*YPagerSmallFont      5x8
*YPagerGeometry       -0-1
*YPagerStyle          2       DeskStyle
*YPagerAlign          0
*YPagerLabel          2       Mail
#*YPagerDontDrawBg
*YPagerRows           1
*YPagerColumns        1
*ZPagerStickyIcons
*ZPagerSmallFont      5x8
*ZPagerGeometry       -0-1
*ZPagerStyle          3       DeskStyle
*ZPagerAlign          0
*ZPagerLabel          3       Games
#*ZPagerDontDrawBg
*ZPagerRows           1
*ZPagerColumns        1

--KsGdsel6WgEHnImy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=autoexec

############################################################################
# Menus
#
#------------------------------------------------------------------------
# Execute on startup :
#

Function "InitFunction"
#	Module  "I"     Animate
#	Module  "I"     MonitorWharf
#	Wait    "I"     MonitorWharf
	Module  "I"     Wharf
	Wait    "I"     Wharf
#	Module  "I"     Pager 0 3
#	Module  "I"     WinList
#	Module  "I"	Banner
#	Wait    "I"     Banner
	Function "WorkspaceState"
# additions to default below:
# want to have the screensaver running
	Exec    "I"	/usr/X11R6/bin/xscreensaver &
# start netplan so sync-plan will behave
	Exec	"I"	/usr/sbin/netplan &
# need these, or a whole lot of kde stuff chokes
	Exec	"I"	/usr/bin/artsd  -F 10 -S 4096 -n -s 60 -m artsmessage -l 3 -f
	Exec	"I"	/usr/bin/kded
	Exec	"I"	/usr/bin/ssh-add


EndFunction

#------------------------------------------------------------------------
# Execute on restart :
#

Function "RestartFunction"
# remove the following line if minimizing memory usage (see above):
#	Module  "I"     Animate
#	Module  "I"     MonitorWharf
#	Wait    "I"     MonitorWharf
	Module  "I"     Wharf
	Wait    "I"     Wharf
#	Module  "I"     Pager 0 3
#	Module  "I"     WinList
EndFunction


--KsGdsel6WgEHnImy--
_______________________________________________
The AfterStep Window Manager for X User's Mailing List
http://mail.afterstep.org/mailman/listinfo/as-users