head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.54 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.52 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.50 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.4.0.48 pkgsrc-2011Q2-base:1.4 pkgsrc-2009Q4:1.4.0.46 pkgsrc-2009Q4-base:1.4 pkgsrc-2008Q4:1.4.0.44 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.42 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.40 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.38 pkgsrc-2008Q2-base:1.4 pkgsrc-2008Q1:1.4.0.36 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.34 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.32 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.30 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.28 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.26 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.24 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.22 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.4.0.20 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.4.0.18 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.4.0.16 pkgsrc-2005Q3-base:1.4 pkgsrc-2005Q2:1.4.0.14 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.4.0.12 pkgsrc-2005Q1-base:1.4 pkgsrc-2004Q4:1.4.0.10 pkgsrc-2004Q4-base:1.4 pkgsrc-2004Q3:1.4.0.8 pkgsrc-2004Q3-base:1.4 pkgsrc-2004Q2:1.4.0.6 pkgsrc-2004Q2-base:1.4 pkgsrc-2004Q1:1.4.0.4 pkgsrc-2004Q1-base:1.4 pkgsrc-2003Q4:1.4.0.2 pkgsrc-2003Q4-base:1.4 buildlink2-base:1.4 netbsd-1-5-RELEASE:1.3 netbsd-1-4-PATCH003:1.3 netbsd-1-4-PATCH002:1.3 comdex-fall-1999:1.2 netbsd-1-4-PATCH001:1.1 netbsd-1-4-RELEASE:1.1; locks; strict; comment @# @; 1.4 date 2000.12.17.23.41.08; author wiz; state dead; branches; next 1.3; 1.3 date 99.10.28.19.04.57; author jlam; state Exp; branches; next 1.2; 1.2 date 99.10.07.17.23.01; author jlam; state Exp; branches; next 1.1; 1.1 date 99.01.19.00.59.33; author hubertf; state Exp; branches; next ; desc @@ 1.4 log @Move lots of packages to new time category; fix links; add time subcategory to main Makefile. @ text @$NetBSD: patch-ab,v 1.3 1999/10/28 19:04:57 jlam Exp $ --- asclock.c.orig Sat Sep 26 17:05:03 1998 +++ asclock.c Thu Oct 28 13:12:29 1999 @@@@ -19,6 +19,7 @@@@ int ONLYSHAPE=0; /* default value is noshape */ int ITBLINKS=1; /* default is blinking */ int ICONIFIED=0; /* default is not iconified */ +int ITDOCKS=0; /* default is not Docking mode */ int YEAR=0; /* default is to show time, not year */ /* led positions *************************************************************/ int twelve[5] = {5, 14, 24, 28, 37}; @@@@ -85,14 +86,15 @@@@ " -24 24 hour format", " -exe program to start on click", " -led color of the led", -" -monthxpm month xpm", " -clockxpm clock xpm", +" -monthxpm month xpm", " -weekdayxpm weekday xpm", +" -year show year instead of time", " -position [+|-]x[+|-]y position of asclock", " -shape without groundplate", " -noblink don't blink", " -iconic start up as icon", -" -year show year instead of time", +" -dock Window Maker docking", NULL }; @@@@ -173,6 +175,9 @@@@ case 'n': ITBLINKS = 0; continue; + case 'd': + ITDOCKS = 1; + continue; case 'y': YEAR = 1; continue; @@@@ -256,13 +261,17 @@@@ XShapeCombineMask(dpy, iconwin, ShapeBounding, 0, 0, pixmask, ShapeSet); } - mywmhints.initial_state = (ICONIFIED ? IconicState : NormalState); + mywmhints.initial_state = ITDOCKS ? WithdrawnState : + (ICONIFIED ? IconicState : NormalState); mywmhints.icon_window = iconwin; mywmhints.icon_x = mysizehints.x; mywmhints.icon_y = mysizehints.y; - mywmhints.flags = StateHint | IconWindowHint | IconPositionHint; + mywmhints.window_group = win; + mywmhints.flags = StateHint | IconWindowHint | IconPositionHint + | WindowGroupHint; XSetWMHints(dpy, win, &mywmhints); + XSetCommand(dpy, win, argv, argc); XMapWindow(dpy,win); InsertTime(); @ 1.3 log @Internationalize asclock (hi, Hubert!). Asclock now respects the environment setting LANG= or can be started with the option "-lang ", where is a two-letter country abbreviation as found in /usr/share/misc/language. Also, change MAINTAINER to jlam@@netbsd.org. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @* fetch aslock from the One True Source http://www.asclock.org/ * modify our local patches to add new -dock option to asclock. This used to be called "-withdrawn" before, but was changed to match the options of the other "official" asclock distributions. * install the month and day XPMs for other languages in the name of internationalization @ text @d3 58 a60 92 --- asclock.man.orig Wed Sep 16 11:56:00 1998 +++ asclock.man Thu Oct 7 03:04:28 1999 @@@@ -1,14 +1,17 @@@@ -.TH asclock 0.99 "23 July 1996" asclock +.TH asclock 1.0 "11 April 1998" asclock .UC .SH NAME \fBasclock\fP \- the AfterStep clock .SH SYNOPSIS .B asclock -[ -help] [-12 | -24] [-shape] - [-position \fI[+|-]x[+|-]y\fP] +[ -help] [-12 | -24] [-shape] [-exe \fIprogram\fP] [-led \fIcolor\fP] - [-noblink] [-iconic] + [-monthxpm \fIxpm\fP] [-clockxpm \fIxpm\fP] + [-weekdayxpm \fIxpm\fP] + [-year] + [-position \fI[+|-]x[+|-]y\fP] + [-noblink] [-iconic] [-dock] .SH DESCRIPTION The \fBasclock\fP is a clock written to emulate the date/time application on the NEXTSTEP(tm) operating system. \fBasclock\fP supports multiple languages, @@@@ -23,12 +26,17 @@@@ where options include: -12 12 hour format -24 24 hour format + -shape without groundplate -exe program to start on click -led color of the led + -monthxpm month xpm + -clockxpm clock xpm + -weekdayxpm weekday xpm + -year show year instead of time -position [+|-]x[+|-]y position of asclock - -shape without groundplate -noblink don't blink -iconic start up as icon + -dock Window Maker docking .fi .RE .IP "-12 or -24" @@@@ -50,6 +58,22 @@@@ .I showrgb .P (part of X11). .RE +.IP "-monthxpm " +.RS +specifies the XPM file for the month pages. +.RE +.IP "-clockxpm " +.RS +specifies the XPM file for the clock and calendar display. +.RE +.IP "-weekdayxpm " +.RS +specifies the XPM file for the weekday pages. +.RE +.IP "-year" +.RS +shows the current the year in the display instead of the current time. +.RE .IP "-position [+|-]x[+|-]y " .RS specifies the starting position of \fBasclock\fP. The [+|-] works like the standard X-Windows x/y geometry option. @@@@ -66,6 +90,10 @@@@ .RS This gives weird output with AfterStep, so don't bother. It's for mwm and other wm's with no hint functionality. .RE +.IP "-dock" +.RS +starts \fBasclock\fP in docking mode. This option is necessary to dock \fBasclock\fP in the Window Maker dock. \fBasclock\fP ignores the -iconic option when started in docking mode. +.RE .SH INVOCATION \fBasclock\fP can be called from one of many ways. The most common invocation is the command line: @@@@ -86,6 +114,14 @@@@ will cause \fBasclock\fP to use the shape extensions so that it will be a button on the \fBWharf (1)\fP button bar under the \fBafterstep (1)\fP window manager. + +If you run Window Maker then you should use the "-dock" option: +.nf + + [user@@host] ~% asclock -shape -12 -dock & + +.fi +and then drag the icon to the dock. .SH BUGS we don't have bugs :) .SH COPYRIGHTS @ 1.1 log @Add some patches to make asclock usable with Window Maker by adding some "-withdrawn" option. Submitted by Johnny C. Lam in PR 6510 @ text @d3 3 a5 3 --- asclock.man.orig Sun Aug 25 17:35:49 1996 +++ asclock.man Sat Dec 5 03:21:54 1998 @@@@ -1,4 +1,4 @@@@ d7 1 a7 1 +.TH asclock 1.1 "11 April 1998" asclock d11 5 a15 2 @@@@ -8,7 +8,9 @@@@ [-position \fI[+|-]x[+|-]y\fP] d21 3 a23 1 + [-noblink] [-iconic] [-withdrawn] d27 3 a29 1 @@@@ -25,10 +27,14 @@@@ d31 1 d37 1 d39 1 a39 1 -shape without groundplate d42 1 a42 1 + -withdrawn start up in withdrawn mode d46 1 a46 1 @@@@ -50,6 +56,18 @@@@ d62 4 d69 1 a69 1 @@@@ -66,6 +84,10 @@@@ d73 1 a73 1 +.IP "-withdrawn" d75 1 a75 1 +starts \fBasclock\fP in withdrawn mode. This option is necessary to dock \fBasclock\fP in the Window Maker dock. \fBasclock\fP ignores the -iconic option when started in withdrawn mode. d80 1 a80 1 @@@@ -86,6 +108,14 @@@@ d85 1 a85 1 +If you run Window Maker then you should use the "-withdrawn" option: d88 1 a88 1 + [user@@host] ~% asclock -shape -12 -withdrawn & @