Re: [Update] ,s/scrotwm/spectrwm/g

2012-02-27 Thread Lawrence Teo
On Sat, Feb 18, 2012 at 11:48:47AM -0300, Gonzalo L. R. wrote:
> Hi,
> 
> Scrotwm change its name to Spectrwm, but still rocks, so here is a
> new shinny version, with a lot of bugs fixed:
> 
> * Fixed all clang static analyze bugs/issues
> * Remain name and config file compatible with scrotwm
> * Fix OSX version again
> * Print proper version with M-S-v on linux
> * Add flip_layout binding to all keyboard layout examples
> * Fix setting of window property strings
> * Clear status-bar when iconifying the last window
> * Use a red-black tree for key bindings
> 
> I add the diff to Quirks.
> 
> Ok? If is Ok, bye bye x11/scrotwm.

This port works fine for me on i386 (Feb 13 snapshot). spectrwm starts
and loads my settings correctly even with my config file at
~/.scrotwm.conf.

Lawrence



Re: [Update] ,s/scrotwm/spectrwm/g

2012-02-26 Thread Gonzalo L. R.

Anyone interested in this in?

 Original Message 
Subject: [Update] ,s/scrotwm/spectrwm/g
Date: Sat, 18 Feb 2012 11:48:47 -0300
From: "Gonzalo L. R." 
To: ports@openbsd.org, Antoine Jacoutot 

Hi,

Scrotwm change its name to Spectrwm, but still rocks, so here is a new 
shinny version, with a lot of bugs fixed:


* Fixed all clang static analyze bugs/issues
* Fix OSX version again
* Print proper version with M-S-v on linux
* Add flip_layout binding to all keyboard layout examples
* Fix setting of window property strings
* Clear status-bar when iconifying the last window
* Use a red-black tree for key bindings

I add the diff to Quirks.

Ok? If is Ok, bye bye x11/scrotwm.

Cheers

--
Sending from my Computer.

--
Sending from my VCR

--
Sending from my VCR

spectrwm.tgz
Description: Binary data


Quirks.pm.diff
Description: Binary data


Re: [Update] ,s/scrotwm/spectrwm/g

2012-02-22 Thread Juan Francisco Cantero Hurtado
On Thu, 23 Feb 2012 01:37:44 +0100, Gonzalo L. R.   
wrote:



Thanks for the test, the conf file issue would be fixed upstream, and I
add the new diff for Quirks.



The patch is now OK. Thanks.

--
Juan Francisco Cantero Hurtado http://juanfra.info



Re: [Update] ,s/scrotwm/spectrwm/g

2012-02-22 Thread Gonzalo L. R.
Thanks for the test, the conf file issue would be fixed upstream, and I 
add the new diff for Quirks.



El 02/21/12 23:37, Juan Francisco Cantero Hurtado escribió:

On Sat, 18 Feb 2012 15:48:47 +0100, Gonzalo L. R. 
wrote:


Hi,

Scrotwm change its name to Spectrwm, but still rocks, so here is a new
shinny version, with a lot of bugs fixed:

* Fixed all clang static analyze bugs/issues
* Remain name and config file compatible with scrotwm


Not for me. I needed to rename my .scrotwm.conf to spectrwm.conf.


* Fix OSX version again
* Print proper version with M-S-v on linux
* Add flip_layout binding to all keyboard layout examples
* Fix setting of window property strings
* Clear status-bar when iconifying the last window
* Use a red-black tree for key bindings

I add the diff to Quirks.


The Quirks file is outdated with last changes in CVS repo.



Ok? If is Ok, bye bye x11/scrotwm.

Cheers



Tested on i386. All works OK.



--
Sending from my Computer.
Index: Quirks.pm
===
RCS file: /cvs/ports/devel/quirks/files/Quirks.pm,v
retrieving revision 1.67
diff -u -p -r1.67 Quirks.pm
--- Quirks.pm   18 Feb 2012 22:04:23 -  1.67
+++ Quirks.pm   23 Feb 2012 00:35:40 -
@@ -281,6 +281,7 @@ my $stem_extensions = {
'vte-ptyhelper' => 'vte',
 # 5.2
'gpsbabel-gui' => 'gpsbabel-tk',
+   'scrotwm' => 'spectrwm',
 };
 
 # ->is_base_system($handle, $state):


Re: [Update] ,s/scrotwm/spectrwm/g

2012-02-21 Thread Juan Francisco Cantero Hurtado
On Sat, 18 Feb 2012 15:48:47 +0100, Gonzalo L. R.   
wrote:



Hi,

Scrotwm change its name to Spectrwm, but still rocks, so here is a new
shinny version, with a lot of bugs fixed:

* Fixed all clang static analyze bugs/issues
* Remain name and config file compatible with scrotwm


Not for me. I needed to rename my .scrotwm.conf to spectrwm.conf.


* Fix OSX version again
* Print proper version with M-S-v on linux
* Add flip_layout binding to all keyboard layout examples
* Fix setting of window property strings
* Clear status-bar when iconifying the last window
* Use a red-black tree for key bindings

I add the diff to Quirks.


The Quirks file is outdated with last changes in CVS repo.



Ok? If is Ok, bye bye x11/scrotwm.

Cheers



Tested on i386. All works OK.

--
Juan Francisco Cantero Hurtado http://juanfra.info



Re: [Update] ,s/scrotwm/spectrwm/g

2012-02-19 Thread Gonzalo L. R.

yes, you are right

El 02/19/12 11:04, Stuart Henderson escribió:

On 2012/02/19 10:49, Gonzalo L. R. wrote:

Come on, is just the same software with different name :)


You only sent it yesterday, isn't it a little early to be prodding? ;)



--
Sending from my Computer.



Re: [Update] ,s/scrotwm/spectrwm/g

2012-02-19 Thread Stuart Henderson
On 2012/02/19 10:49, Gonzalo L. R. wrote:
> Come on, is just the same software with different name :)

You only sent it yesterday, isn't it a little early to be prodding? ;)



Re: [Update] ,s/scrotwm/spectrwm/g

2012-02-19 Thread Gonzalo L. R.

Come on, is just the same software with different name :)

 Mensaje original 
Asunto: [Update] ,s/scrotwm/spectrwm/g
Fecha: Sat, 18 Feb 2012 11:48:47 -0300
De: Gonzalo L. R. 
A: ports@openbsd.org, Antoine Jacoutot 

Hi,

Scrotwm change its name to Spectrwm, but still rocks, so here is a new
shinny version, with a lot of bugs fixed:

* Fixed all clang static analyze bugs/issues
* Remain name and config file compatible with scrotwm
* Fix OSX version again
* Print proper version with M-S-v on linux
* Add flip_layout binding to all keyboard layout examples
* Fix setting of window property strings
* Clear status-bar when iconifying the last window
* Use a red-black tree for key bindings

I add the diff to Quirks.

Ok? If is Ok, bye bye x11/scrotwm.

Cheers

--
Sending from my Computer.



spectrwm.tgz
Description: Binary data
Index: Quirks.pm
===
RCS file: /cvs/ports/devel/quirks/files/Quirks.pm,v
retrieving revision 1.66
diff -u -p -r1.66 Quirks.pm
--- Quirks.pm   6 Feb 2012 22:07:09 -   1.66
+++ Quirks.pm   17 Feb 2012 18:11:38 -
@@ -279,6 +279,8 @@ my $stem_extensions = {
'aspell5-tn' => 'aspell-tn',
'aspell6-uk' => 'aspell-uk',
'vte-ptyhelper' => 'vte',
+# 5.2
+   'scrotwm' => 'spectrwm',
 };
 
 # ->is_base_system($handle, $state):



[Update] ,s/scrotwm/spectrwm/g

2012-02-18 Thread Gonzalo L. R.

Hi,

Scrotwm change its name to Spectrwm, but still rocks, so here is a new 
shinny version, with a lot of bugs fixed:


* Fixed all clang static analyze bugs/issues
* Remain name and config file compatible with scrotwm
* Fix OSX version again
* Print proper version with M-S-v on linux
* Add flip_layout binding to all keyboard layout examples
* Fix setting of window property strings
* Clear status-bar when iconifying the last window
* Use a red-black tree for key bindings

I add the diff to Quirks.

Ok? If is Ok, bye bye x11/scrotwm.

Cheers

--
Sending from my Computer.


spectrwm.tgz
Description: Binary data
Index: Quirks.pm
===
RCS file: /cvs/ports/devel/quirks/files/Quirks.pm,v
retrieving revision 1.66
diff -u -p -r1.66 Quirks.pm
--- Quirks.pm   6 Feb 2012 22:07:09 -   1.66
+++ Quirks.pm   17 Feb 2012 18:11:38 -
@@ -279,6 +279,8 @@ my $stem_extensions = {
'aspell5-tn' => 'aspell-tn',
'aspell6-uk' => 'aspell-uk',
'vte-ptyhelper' => 'vte',
+# 5.2
+   'scrotwm' => 'spectrwm',
 };
 
 # ->is_base_system($handle, $state):


Re: FIX: x11/scrotwm (recent fixes from upstream)

2012-01-29 Thread Gonzalo L. R.

is ok for me, thanks lteo

El 01/29/12 11:41, Lawrence Teo escribió:

There has been a few bugfixes in upstream shortly after the scrotwm
0.10.0 release. I have created a diff below to include these in the
OpenBSD port. I am really hoping that these fixes can get in before the
final lock, as they will prevent users from encountering these issues
right "out of the box" upon pkg_add'ing scrotwm on OpenBSD 5.1.

The fixes are:

1. Fixed memory and fd leaks when there are invalid options in the
scrotwm config file.

2. Fixed the key binding on the manpage for the search_win action (it
should be M-f instead of M-s. M-s is the key binding for another
action, screenshot_all).

3. Added the ws_prior key binding that was missing from the keyboard
mapping files (config files used for various regional keyboards).

4. The RUN_DEPENDS for dmenu has been changed to 4.4.1 (the current
version in the ports tree); thib@ and I encountered issues using
scrotwm with dmenu 4.2, and earlier versions are probably affected
too.

I could not get in touch with Gonzalo (maintainer) on time since this is
the weekend, but I have CC'ed him. However, he has seen an earlier
version of this diff and he is OK with fixes #2 and #4.

Thank you,
Lawrence



Index: Makefile
===
RCS file: /cvs/ports/x11/scrotwm/Makefile,v
retrieving revision 1.34
diff -u -p -r1.34 Makefile
--- Makefile14 Jan 2012 21:48:13 -  1.34
+++ Makefile28 Jan 2012 04:03:32 -
@@ -5,6 +5,7 @@ COMMENT=small tiling window manager
  SHARED_LIBS=  swmhack 0.0

  DISTNAME= scrotwm-0.10.0
+REVISION=  0
  EXTRACT_SUFX= .tgz
  CATEGORIES=   x11

@@ -23,7 +24,7 @@ MASTER_SITES= http://opensource.conforma

  NO_REGRESS=   Yes

-RUN_DEPENDS=   x11/dmenu>=3.9
+RUN_DEPENDS=   x11/dmenu>=4.4.1

  MAKE_FLAGS=   BINDIR="${TRUEPREFIX}/bin" \
MANDIR="${TRUEPREFIX}/man/man" \
Index: patches/patch-scrotwm_1
===
RCS file: patches/patch-scrotwm_1
diff -N patches/patch-scrotwm_1
--- /dev/null   1 Jan 1970 00:00:00 -
+++ patches/patch-scrotwm_1 28 Jan 2012 04:03:32 -
@@ -0,0 +1,16 @@
+$OpenBSD$
+
+Manpage fix from upstream:
+https://opensource.conformal.com/viewgit/?a=commitdiff&p=scrotwm&h=b4f18a38d0b1cf8c0ee85e0366ab4caa4cc00560
+
+--- scrotwm.1.orig Wed Jan 11 13:42:57 2012
 scrotwm.1  Fri Jan 27 22:40:29 2012
+@@ -450,7 +450,7 @@ move_down
+ name_workspace
+ .It Cm M-/
+ search_workspace
+-.It Cm M-s
++.It Cm M-f
+ search_win
+ .El
+ .Pp
Index: patches/patch-scrotwm_c
=======
RCS file: /cvs/ports/x11/scrotwm/patches/patch-scrotwm_c,v
retrieving revision 1.18
diff -u -p -r1.18 patch-scrotwm_c
--- patches/patch-scrotwm_c 14 Jan 2012 21:48:13 -  1.18
+++ patches/patch-scrotwm_c 28 Jan 2012 04:03:32 -
@@ -1,6 +1,10 @@
  $OpenBSD: patch-scrotwm_c,v 1.18 2012/01/14 21:48:13 sthen Exp $
 scrotwm.c.orig Sat Jan 14 14:15:42 2012
-+++ scrotwm.c  Sat Jan 14 14:16:35 2012
+
+Includes memory and fd leak fixes from upstream:
+https://opensource.conformal.com/viewgit/?a=commitdiff&p=scrotwm&h=1bc1f62c7a0ed3edf41faf0cec49cfad2db794b0
+
+--- scrotwm.c.orig Fri Jan 27 22:39:54 2012
 scrotwm.c  Fri Jan 27 22:48:10 2012
  @@ -169,7 +169,7 @@ u_int32_t swm_debug = 0
   #define SWM_CONF_KEYMAPPING  (1)

@@ -10,3 +14,49 @@ $OpenBSD: patch-scrotwm_c,v 1.18 2012/01
   #endif

   char **start_argv;
+@@ -5399,7 +5399,7 @@ conf_load(char *filename, int keymapping)
+   if (wordlen == 0) {
+   warnx("%s: line %zd: no option found",
+   filename, lineno);
+-  return (1);
++  goto out;
+   }
+   optind = -1;
+   for (i = 0; i<  LENGTH(configopt); i++) {
+@@ -5413,12 +5413,12 @@ conf_load(char *filename, int keymapping)
+   if (optind == -1) {
+   warnx("%s: line %zd: unknown option %.*s",
+   filename, lineno, wordlen, cp);
+-  return (1);
++  goto out;
+   }
+   if (keymapping&&  strcmp(opt->optname, "bind")) {
+   warnx("%s: line %zd: invalid option %.*s",
+   filename, lineno, wordlen, cp);
+-  return (1);
++  goto out;
+   }
+   cp += wordlen;
+   cp += strspn(cp, " \t\n"); /* eat whitespace */
+@@ -5431,7 +5431,7 @@ conf_load(char *filename, int keymapping)
+   if (wordlen == 0) {
+ 

FIX: x11/scrotwm (recent fixes from upstream)

2012-01-29 Thread Lawrence Teo
There has been a few bugfixes in upstream shortly after the scrotwm
0.10.0 release. I have created a diff below to include these in the
OpenBSD port. I am really hoping that these fixes can get in before the
final lock, as they will prevent users from encountering these issues
right "out of the box" upon pkg_add'ing scrotwm on OpenBSD 5.1.

The fixes are:

1. Fixed memory and fd leaks when there are invalid options in the
   scrotwm config file.

2. Fixed the key binding on the manpage for the search_win action (it
   should be M-f instead of M-s. M-s is the key binding for another
   action, screenshot_all).

3. Added the ws_prior key binding that was missing from the keyboard
   mapping files (config files used for various regional keyboards).

4. The RUN_DEPENDS for dmenu has been changed to 4.4.1 (the current
   version in the ports tree); thib@ and I encountered issues using
   scrotwm with dmenu 4.2, and earlier versions are probably affected
   too.

I could not get in touch with Gonzalo (maintainer) on time since this is
the weekend, but I have CC'ed him. However, he has seen an earlier
version of this diff and he is OK with fixes #2 and #4.

Thank you,
Lawrence



Index: Makefile
===
RCS file: /cvs/ports/x11/scrotwm/Makefile,v
retrieving revision 1.34
diff -u -p -r1.34 Makefile
--- Makefile14 Jan 2012 21:48:13 -  1.34
+++ Makefile28 Jan 2012 04:03:32 -
@@ -5,6 +5,7 @@ COMMENT=small tiling window manager
 SHARED_LIBS=   swmhack 0.0
 
 DISTNAME=  scrotwm-0.10.0
+REVISION=  0
 EXTRACT_SUFX=  .tgz
 CATEGORIES=x11
 
@@ -23,7 +24,7 @@ MASTER_SITES= http://opensource.conforma
 
 NO_REGRESS=Yes
 
-RUN_DEPENDS=   x11/dmenu>=3.9
+RUN_DEPENDS=   x11/dmenu>=4.4.1
 
 MAKE_FLAGS=BINDIR="${TRUEPREFIX}/bin" \
MANDIR="${TRUEPREFIX}/man/man" \
Index: patches/patch-scrotwm_1
===
RCS file: patches/patch-scrotwm_1
diff -N patches/patch-scrotwm_1
--- /dev/null   1 Jan 1970 00:00:00 -
+++ patches/patch-scrotwm_1 28 Jan 2012 04:03:32 -
@@ -0,0 +1,16 @@
+$OpenBSD$
+
+Manpage fix from upstream:
+https://opensource.conformal.com/viewgit/?a=commitdiff&p=scrotwm&h=b4f18a38d0b1cf8c0ee85e0366ab4caa4cc00560
+
+--- scrotwm.1.orig Wed Jan 11 13:42:57 2012
 scrotwm.1  Fri Jan 27 22:40:29 2012
+@@ -450,7 +450,7 @@ move_down
+ name_workspace
+ .It Cm M-/
+ search_workspace
+-.It Cm M-s
++.It Cm M-f
+ search_win
+ .El
+ .Pp
Index: patches/patch-scrotwm_c
=======
RCS file: /cvs/ports/x11/scrotwm/patches/patch-scrotwm_c,v
retrieving revision 1.18
diff -u -p -r1.18 patch-scrotwm_c
--- patches/patch-scrotwm_c 14 Jan 2012 21:48:13 -  1.18
+++ patches/patch-scrotwm_c 28 Jan 2012 04:03:32 -
@@ -1,6 +1,10 @@
 $OpenBSD: patch-scrotwm_c,v 1.18 2012/01/14 21:48:13 sthen Exp $
 scrotwm.c.orig Sat Jan 14 14:15:42 2012
-+++ scrotwm.c  Sat Jan 14 14:16:35 2012
+
+Includes memory and fd leak fixes from upstream:
+https://opensource.conformal.com/viewgit/?a=commitdiff&p=scrotwm&h=1bc1f62c7a0ed3edf41faf0cec49cfad2db794b0
+
+--- scrotwm.c.orig Fri Jan 27 22:39:54 2012
 scrotwm.c  Fri Jan 27 22:48:10 2012
 @@ -169,7 +169,7 @@ u_int32_t  swm_debug = 0
  #define SWM_CONF_KEYMAPPING   (1)
  
@@ -10,3 +14,49 @@ $OpenBSD: patch-scrotwm_c,v 1.18 2012/01
  #endif
  
  char  **start_argv;
+@@ -5399,7 +5399,7 @@ conf_load(char *filename, int keymapping)
+   if (wordlen == 0) {
+   warnx("%s: line %zd: no option found",
+   filename, lineno);
+-  return (1);
++  goto out;
+   }
+   optind = -1;
+   for (i = 0; i < LENGTH(configopt); i++) {
+@@ -5413,12 +5413,12 @@ conf_load(char *filename, int keymapping)
+   if (optind == -1) {
+   warnx("%s: line %zd: unknown option %.*s",
+   filename, lineno, wordlen, cp);
+-  return (1);
++  goto out;
+   }
+   if (keymapping && strcmp(opt->optname, "bind")) {
+   warnx("%s: line %zd: invalid option %.*s",
+   filename, lineno, wordlen, cp);
+-  return (1);
++  goto out;
+   }
+   cp += wordlen;
+   cp += strspn(cp, " \t\n"); /* eat whitespace */
+@@ -5431,7 +5431,7 @@ conf_load(char *filename, int keymapping)
+   if (wordlen == 0) {
+   warnx("%s: line %

Re: [UPDATE] Scrotwm-0.10.0

2012-01-14 Thread Stuart Henderson
On 2012-01-13, Ingo Schwarze  wrote:
>>> mandoc will warn you about manpage problems if you build with
>>> 'make WARNINGS=yes' (or add WARNINGS=yes to mk.conf). I would suggest
>>> that porters set this, it gives a good early indication when manpages
>>> need further investigation.
>
> Sure; however, most problems shown by 'WARNINGS=yes', which actually
> runs 'mandoc -Tlint', should be fixed upstream, and only a small
> fraction needs porter action.

Absolutely, the porter is encouraged to use their brain when dealing
with warning output ;) I don't mean suggesting this as "the output has
to be clean", just that it's a good indicator that the produced manpages
need checking over, and suggesting some areas to particularly look at.




Re: [UPDATE] Scrotwm-0.10.0

2012-01-12 Thread Ingo Schwarze
Hi,

Kristaps Dzonsons wrote on Thu, Jan 12, 2012 at 02:55:42PM +0100:
> Stuart Henderson wrote:

>> The non-english manpages are broken, all the non-ascii characters get
>> stripped when you view them. These should either be fixed or disabled.
>> Check output in e.g. "man -m /usr/local/man/es scrotwm".
>>
>> You probably want to build them with nroff for now, as was done with
>> the (commented-out) Russian manpage. Use -c on the nroff command line
>> to avoid the nasty ESC sequences for coloured output which mess up
>> the display in less(1).
>>
>> mandoc will warn you about manpage problems if you build with
>> 'make WARNINGS=yes' (or add WARNINGS=yes to mk.conf). I would suggest
>> that porters set this, it gives a good early indication when manpages
>> need further investigation.

Sure; however, most problems shown by 'WARNINGS=yes', which actually
runs 'mandoc -Tlint', should be fixed upstream, and only a small
fraction needs porter action.

> Note that mandoc(1) actually can render Unicode escapes (\u[N]) with
> -Tutf8 or -Tlocale (assuming you have a UTF-8 shell and the
> appropriate LC stuff set):
> 
> % cat >foo.1 < .TH FOO 1
> .SH NAME
> \[u041F]\[u0440]\[u0438]\[u0432]\[u0435]\[u0442]!
> !
> % mandoc -Tlocale foo.1
> 
> However, scrotwm's manuals would need to be preprocessed to convert
> UTF-8 (or whatever) into the Unicode escape form.  There's an
> upstream utility to do just that,
> <http://mdocml.bsd.lv/preconv.1.html>.  groff has a similarly-named
> utility.  mandoc's isn't in OpenBSD, however.
> 
> In theory the functionality can be pulled directly into mandoc, but
> I haven't do so to avoid bloat.

Eventually, i think that should be included.

> Plus, to date, nobody has complained to me about mandoc's locale
> stuff, so it's not a priority to me.

Well, it does come up now and then.
I think right after unlock would be a good time to work on this.

Yours,
  Ingo



Re: [UPDATE] Scrotwm-0.10.0

2012-01-12 Thread Kristaps Dzonsons

The non-english manpages are broken, all the non-ascii characters get
stripped when you view them. These should either be fixed or disabled.
Check output in e.g. "man -m /usr/local/man/es scrotwm".

You probably want to build them with nroff for now, as was done with
the (commented-out) Russian manpage. Use -c on the nroff command line
to avoid the nasty ESC sequences for coloured output which mess up
the display in less(1).

mandoc will warn you about manpage problems if you build with
'make WARNINGS=yes' (or add WARNINGS=yes to mk.conf). I would suggest
that porters set this, it gives a good early indication when manpages
need further investigation.


Hi,

Note that mandoc(1) actually can render Unicode escapes (\u[N]) with 
-Tutf8 or -Tlocale (assuming you have a UTF-8 shell and the appropriate 
LC stuff set):


% cat >foo.1 <However, scrotwm's manuals would need to be preprocessed to convert 
UTF-8 (or whatever) into the Unicode escape form.  There's an upstream 
utility to do just that, <http://mdocml.bsd.lv/preconv.1.html>.  groff 
has a similarly-named utility.  mandoc's isn't in OpenBSD, however.


In theory the functionality can be pulled directly into mandoc, but I 
haven't do so to avoid bloat.  Plus, to date, nobody has complained to 
me about mandoc's locale stuff, so it's not a priority to me.


Best,

Kristaps



Re: [UPDATE] Scrotwm-0.10.0

2012-01-12 Thread Stuart Henderson
In gmane.os.openbsd.ports, you wrote:
> This is a multi-part message in MIME format.
> --030001020302030605060308
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> Content-Transfer-Encoding: 7bit
>
> Update of scrotwm to 0.10.0 with a lot of bugs fix and new keyboard 
> mapping option.
>
> Ok?

The non-english manpages are broken, all the non-ascii characters get
stripped when you view them. These should either be fixed or disabled.
Check output in e.g. "man -m /usr/local/man/es scrotwm".

You probably want to build them with nroff for now, as was done with
the (commented-out) Russian manpage. Use -c on the nroff command line
to avoid the nasty ESC sequences for coloured output which mess up
the display in less(1).

mandoc will warn you about manpage problems if you build with
'make WARNINGS=yes' (or add WARNINGS=yes to mk.conf). I would suggest
that porters set this, it gives a good early indication when manpages
need further investigation.

Also please regenerate the patches.

===>  Patching for scrotwm-0.10.0
===>   Applying OpenBSD patch patch-scrotwm_c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--
|$OpenBSD: patch-scrotwm_c,v 1.17 2011/06/23 22:58:06 sthen Exp $
|--- scrotwm.c.orig Thu Jun 23 13:13:51 2011
|+++ scrotwm.c  Thu Jun 23 23:54:34 2011
--
Patching file scrotwm.c using Plan A...
Hunk #1 succeeded at 169 with fuzz 1 (offset 7 lines).
done




Re: [UPDATE] Scrotwm-0.10.0

2012-01-12 Thread Daniel Bolgheroni
On Wed, Jan 11, 2012 at 05:53:47PM -0300, Gonzalo L. R. wrote:
> Update of scrotwm to 0.10.0 with a lot of bugs fix and new keyboard
> mapping option.
> 
> Ok?

Nice.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: [UPDATE] Scrotwm-0.10.0

2012-01-11 Thread Anders Langworthy
On Wed, Jan 11, 2012 at 05:53:47PM -0300, Gonzalo L. R. wrote:
> Update of scrotwm to 0.10.0 with a lot of bugs fix and new keyboard
> mapping option.
> 
> Ok?

Works fine for me on i386.



Re: [UPDATE] Scrotwm-0.10.0

2012-01-11 Thread Lawrence Teo
Works for me on i386.

For those who are interested in testing, the full release notes have
been posted here:

https://opensource.conformal.com/fluxbb/viewtopic.php?id=318

Lawrence

On Wed, Jan 11, 2012 at 05:53:47PM -0300, Gonzalo L. R. wrote:
> Update of scrotwm to 0.10.0 with a lot of bugs fix and new keyboard
> mapping option.
> 
> Ok?
> 
> 
> -- 
> Sending from my Computer.

> Index: Makefile
> ===
> RCS file: /cvs/ports/x11/scrotwm/Makefile,v
> retrieving revision 1.33
> diff -u -p -r1.33 Makefile
> --- Makefile  29 Aug 2011 13:21:29 -  1.33
> +++ Makefile  11 Jan 2012 20:51:52 -
> @@ -4,7 +4,7 @@ COMMENT=  small tiling window manager
>  
>  SHARED_LIBS=     swmhack 0.0
>  
> -DISTNAME=scrotwm-0.9.34
> +DISTNAME=scrotwm-0.10.0
>  EXTRACT_SUFX=.tgz
>  CATEGORIES=  x11
>  
> @@ -42,10 +42,15 @@ post-install:
>   ${INSTALL_SCRIPT} ${WRKSRC}/screenshot.sh 
> ${PREFIX}/share/examples/scrotwm
>   ${INSTALL_DATA} ${WRKSRC}/scrotwm.conf ${PREFIX}/share/examples/scrotwm
>  
> -## mans need to be updated
> -#.for i in es it pt ru
> -#${INSTALL_DATA_DIR} ${PREFIX}/man/$i/man1
> -#mv ${PREFIX}/man/man1/scrotwm_$i.1 ${PREFIX}/man/$i/man1/scrotwm.1
> -#.endfor
> +## mans need to be updated: pt ru
> +.for i in es it
> + ${INSTALL_DATA_DIR} ${PREFIX}/man/$i/man1
> + mv ${PREFIX}/man/man1/scrotwm_$i.1 ${PREFIX}/man/$i/man1/scrotwm.1
> +.endfor
> +
> +.for i in es cz fr fr_ch se us
> + ${INSTALL_DATA_DIR} ${WRKSRC}/scrotwm_$i.conf
> + mv ${WRKSRC}/scrotwm_$i.conf ${PREFIX}/share/examples/scrotwm
> +.endfor
>  
>  .include 
> Index: distinfo
> ===
> RCS file: /cvs/ports/x11/scrotwm/distinfo,v
> retrieving revision 1.21
> diff -u -p -r1.21 distinfo
> --- distinfo  29 Aug 2011 13:21:29 -  1.21
> +++ distinfo  11 Jan 2012 20:51:52 -
> @@ -1,5 +1,5 @@
> -MD5 (scrotwm-0.9.34.tgz) = 044pbdC/AUBG6CzUKTLzmA==
> -RMD160 (scrotwm-0.9.34.tgz) = WlzTC2Von0n1U7rDea440aaS3Q0=
> -SHA1 (scrotwm-0.9.34.tgz) = npQ4g+pVBISH/lntCbioRGeoFZM=
> -SHA256 (scrotwm-0.9.34.tgz) = RvBV88G30yvKr5QZP9AacnQi54fop6/PmH2y/97Jrag=
> -SIZE (scrotwm-0.9.34.tgz) = 69755
> +MD5 (scrotwm-0.10.0.tgz) = QHhiaEIposMoLywb5Z7g+g==
> +RMD160 (scrotwm-0.10.0.tgz) = qL9TBOqwMJ2k17zHqoG6ouZzYks=
> +SHA1 (scrotwm-0.10.0.tgz) = HjVq/X+xWk7/o5NMEJhPHxd71e8=
> +SHA256 (scrotwm-0.10.0.tgz) = Qhm+qi8Ny2u46AGA0Du/OtWNqv9ifeGJ8LdkGx+vciI=
> +SIZE (scrotwm-0.10.0.tgz) = 80960
> Index: pkg/PLIST
> ===
> RCS file: /cvs/ports/x11/scrotwm/pkg/PLIST,v
> retrieving revision 1.13
> diff -u -p -r1.13 PLIST
> --- pkg/PLIST 29 Aug 2011 13:21:29 -  1.13
> +++ pkg/PLIST 11 Jan 2012 20:51:52 -
> @@ -1,6 +1,12 @@
>  @comment $OpenBSD: PLIST,v 1.13 2011/08/29 13:21:29 ajacoutot Exp $
>  %%SHARED%%
>  @bin bin/scrotwm
> +man/es/
> +man/es/man1/
> +@man man/es/man1/scrotwm.1
> +man/it/
> +man/it/man1/
> +@man man/it/man1/scrotwm.1
>  @man man/man1/scrotwm.1
>  share/examples/scrotwm/
>  @sample share/scrotwm/
> @@ -14,3 +20,9 @@ share/examples/scrotwm/screenshot.sh
>  @mode
>  share/examples/scrotwm/scrotwm.conf
>  @sample ${SYSCONFDIR}/scrotwm.conf
> +share/examples/scrotwm/scrotwm_cz.conf
> +share/examples/scrotwm/scrotwm_es.conf
> +share/examples/scrotwm/scrotwm_fr.conf
> +share/examples/scrotwm/scrotwm_fr_ch.conf
> +share/examples/scrotwm/scrotwm_se.conf
> +share/examples/scrotwm/scrotwm_us.conf



[UPDATE] Scrotwm-0.10.0

2012-01-11 Thread Gonzalo L. R.
Update of scrotwm to 0.10.0 with a lot of bugs fix and new keyboard 
mapping option.


Ok?


--
Sending from my Computer.
Index: Makefile
===
RCS file: /cvs/ports/x11/scrotwm/Makefile,v
retrieving revision 1.33
diff -u -p -r1.33 Makefile
--- Makefile29 Aug 2011 13:21:29 -  1.33
+++ Makefile11 Jan 2012 20:51:52 -
@@ -4,7 +4,7 @@ COMMENT=small tiling window manager
 
 SHARED_LIBS=   swmhack 0.0
 
-DISTNAME=  scrotwm-0.9.34
+DISTNAME=  scrotwm-0.10.0
 EXTRACT_SUFX=  .tgz
 CATEGORIES=x11
 
@@ -42,10 +42,15 @@ post-install:
${INSTALL_SCRIPT} ${WRKSRC}/screenshot.sh 
${PREFIX}/share/examples/scrotwm
${INSTALL_DATA} ${WRKSRC}/scrotwm.conf ${PREFIX}/share/examples/scrotwm
 
-## mans need to be updated
-#.for i in es it pt ru
-#  ${INSTALL_DATA_DIR} ${PREFIX}/man/$i/man1
-#  mv ${PREFIX}/man/man1/scrotwm_$i.1 ${PREFIX}/man/$i/man1/scrotwm.1
-#.endfor
+## mans need to be updated: pt ru
+.for i in es it
+   ${INSTALL_DATA_DIR} ${PREFIX}/man/$i/man1
+   mv ${PREFIX}/man/man1/scrotwm_$i.1 ${PREFIX}/man/$i/man1/scrotwm.1
+.endfor
+
+.for i in es cz fr fr_ch se us
+   ${INSTALL_DATA_DIR} ${WRKSRC}/scrotwm_$i.conf
+   mv ${WRKSRC}/scrotwm_$i.conf ${PREFIX}/share/examples/scrotwm
+.endfor
 
 .include 
Index: distinfo
===
RCS file: /cvs/ports/x11/scrotwm/distinfo,v
retrieving revision 1.21
diff -u -p -r1.21 distinfo
--- distinfo29 Aug 2011 13:21:29 -  1.21
+++ distinfo11 Jan 2012 20:51:52 -
@@ -1,5 +1,5 @@
-MD5 (scrotwm-0.9.34.tgz) = 044pbdC/AUBG6CzUKTLzmA==
-RMD160 (scrotwm-0.9.34.tgz) = WlzTC2Von0n1U7rDea440aaS3Q0=
-SHA1 (scrotwm-0.9.34.tgz) = npQ4g+pVBISH/lntCbioRGeoFZM=
-SHA256 (scrotwm-0.9.34.tgz) = RvBV88G30yvKr5QZP9AacnQi54fop6/PmH2y/97Jrag=
-SIZE (scrotwm-0.9.34.tgz) = 69755
+MD5 (scrotwm-0.10.0.tgz) = QHhiaEIposMoLywb5Z7g+g==
+RMD160 (scrotwm-0.10.0.tgz) = qL9TBOqwMJ2k17zHqoG6ouZzYks=
+SHA1 (scrotwm-0.10.0.tgz) = HjVq/X+xWk7/o5NMEJhPHxd71e8=
+SHA256 (scrotwm-0.10.0.tgz) = Qhm+qi8Ny2u46AGA0Du/OtWNqv9ifeGJ8LdkGx+vciI=
+SIZE (scrotwm-0.10.0.tgz) = 80960
Index: pkg/PLIST
===
RCS file: /cvs/ports/x11/scrotwm/pkg/PLIST,v
retrieving revision 1.13
diff -u -p -r1.13 PLIST
--- pkg/PLIST   29 Aug 2011 13:21:29 -  1.13
+++ pkg/PLIST   11 Jan 2012 20:51:52 -
@@ -1,6 +1,12 @@
 @comment $OpenBSD: PLIST,v 1.13 2011/08/29 13:21:29 ajacoutot Exp $
 %%SHARED%%
 @bin bin/scrotwm
+man/es/
+man/es/man1/
+@man man/es/man1/scrotwm.1
+man/it/
+man/it/man1/
+@man man/it/man1/scrotwm.1
 @man man/man1/scrotwm.1
 share/examples/scrotwm/
 @sample share/scrotwm/
@@ -14,3 +20,9 @@ share/examples/scrotwm/screenshot.sh
 @mode
 share/examples/scrotwm/scrotwm.conf
 @sample ${SYSCONFDIR}/scrotwm.conf
+share/examples/scrotwm/scrotwm_cz.conf
+share/examples/scrotwm/scrotwm_es.conf
+share/examples/scrotwm/scrotwm_fr.conf
+share/examples/scrotwm/scrotwm_fr_ch.conf
+share/examples/scrotwm/scrotwm_se.conf
+share/examples/scrotwm/scrotwm_us.conf


Re: [Update] Scrotwm

2011-08-24 Thread Gonzalo L. R.

Here is the right diff

Upgrade to 0.9.34.

People who send the translate to man's, need to be updated (I'd start 
with mine {es})


OK?


El 08/24/11 08:06, Marco Peereboom escribió:

0.9.34 is in snaps.

On Wed, Aug 24, 2011 at 01:12:33AM -0300, Gonzalo L. R. wrote:

Update to 0.9.33.

patches/patch-baraction_sh
patches/patch-scrotwm_conf

Are out.

OK?
--
Sending from my Computer.



Index: Makefile
===
RCS file: /cvs/ports/x11/scrotwm/Makefile,v
retrieving revision 1.32
diff -u -p -r1.32 Makefile
--- Makefile3 Aug 2011 15:21:18 -   1.32
+++ Makefile24 Aug 2011 04:06:27 -
@@ -4,11 +4,9 @@ COMMENT=   small tiling window manager

  SHARED_LIBS=  swmhack 0.0

-DISTNAME=      scrotwm-0.9.32
+DISTNAME=      scrotwm-0.9.33
  EXTRACT_SUFX= .tgz
  CATEGORIES=   x11
-
-REVISION=  0

  HOMEPAGE= http://www.scrotwm.org/
  MAINTAINER=   Marco Peereboom
Index: distinfo
===
RCS file: /cvs/ports/x11/scrotwm/distinfo,v
retrieving revision 1.20
diff -u -p -r1.20 distinfo
--- distinfo23 Jun 2011 22:58:06 -  1.20
+++ distinfo24 Aug 2011 04:06:27 -
@@ -1,5 +1,5 @@
-MD5 (scrotwm-0.9.32.tgz) = QwU7gpYvZin/pIe/scMZXQ==
-RMD160 (scrotwm-0.9.32.tgz) = Fx9yvlNV0C0TNtbUdTEEez3FIig=
-SHA1 (scrotwm-0.9.32.tgz) = 9aFmOSYjMtoz9CUaWzPdyFxX60k=
-SHA256 (scrotwm-0.9.32.tgz) = zc1kdISraiZtA3L78gs8IOFDVWrAzDIzV0DAjyJ4mHE=
-SIZE (scrotwm-0.9.32.tgz) = 66951
+MD5 (scrotwm-0.9.33.tgz) = /P0Kuo5IIX4m24IyJmQFRw==
+RMD160 (scrotwm-0.9.33.tgz) = 2bJCumXcY1gVTkd/FO96EC6PY5Q=
+SHA1 (scrotwm-0.9.33.tgz) = x55H1Td/epFphQxzFrXnK1KdOfE=
+SHA256 (scrotwm-0.9.33.tgz) = N9Ca6DgLrFNDbbXlC9D0oGyGW1so8WRm+lIlm3D1VVA=
+SIZE (scrotwm-0.9.33.tgz) = 69314




--
Sending from my Computer.
Index: Makefile
===
RCS file: /cvs/ports/x11/scrotwm/Makefile,v
retrieving revision 1.32
diff -u -p -r1.32 Makefile
--- Makefile3 Aug 2011 15:21:18 -   1.32
+++ Makefile24 Aug 2011 22:09:31 -
@@ -4,14 +4,12 @@ COMMENT=  small tiling window manager
 
 SHARED_LIBS=   swmhack 0.0
 
-DISTNAME=      scrotwm-0.9.32
+DISTNAME=      scrotwm-0.9.34
 EXTRACT_SUFX=  .tgz
 CATEGORIES=x11
 
-REVISION=  0
-
 HOMEPAGE=  http://www.scrotwm.org/
-MAINTAINER=Marco Peereboom 
+MAINTAINER=Gonzalo L. R. 
 
 # BSD
 PERMIT_PACKAGE_CDROM=  Yes
@@ -19,7 +17,7 @@ PERMIT_PACKAGE_FTP=   Yes
 PERMIT_DISTFILES_CDROM=Yes
 PERMIT_DISTFILES_FTP=  Yes
 
-WANTLIB += c X11 Xrandr util
+WANTLIB += c X11 Xrandr Xtst util
 
 MASTER_SITES=  http://opensource.conformal.com/snapshots/scrotwm/
 
@@ -44,9 +42,10 @@ post-install:
${INSTALL_SCRIPT} ${WRKSRC}/screenshot.sh 
${PREFIX}/share/examples/scrotwm
${INSTALL_DATA} ${WRKSRC}/scrotwm.conf ${PREFIX}/share/examples/scrotwm
 
-.for i in es it pt ru
-   ${INSTALL_DATA_DIR} ${PREFIX}/man/$i/man1
-   mv ${PREFIX}/man/man1/scrotwm_$i.1 ${PREFIX}/man/$i/man1/scrotwm.1
-.endfor
+## man's need to be updated
+#.for i in es it pt ru
+#  ${INSTALL_DATA_DIR} ${PREFIX}/man/$i/man1
+#  mv ${PREFIX}/man/man1/scrotwm_$i.1 ${PREFIX}/man/$i/man1/scrotwm.1
+#.endfor
 
 .include 
Index: distinfo
===
RCS file: /cvs/ports/x11/scrotwm/distinfo,v
retrieving revision 1.20
diff -u -p -r1.20 distinfo
--- distinfo23 Jun 2011 22:58:06 -  1.20
+++ distinfo24 Aug 2011 22:09:31 -
@@ -1,5 +1,5 @@
-MD5 (scrotwm-0.9.32.tgz) = QwU7gpYvZin/pIe/scMZXQ==
-RMD160 (scrotwm-0.9.32.tgz) = Fx9yvlNV0C0TNtbUdTEEez3FIig=
-SHA1 (scrotwm-0.9.32.tgz) = 9aFmOSYjMtoz9CUaWzPdyFxX60k=
-SHA256 (scrotwm-0.9.32.tgz) = zc1kdISraiZtA3L78gs8IOFDVWrAzDIzV0DAjyJ4mHE=
-SIZE (scrotwm-0.9.32.tgz) = 66951
+MD5 (scrotwm-0.9.34.tgz) = 044pbdC/AUBG6CzUKTLzmA==
+RMD160 (scrotwm-0.9.34.tgz) = WlzTC2Von0n1U7rDea440aaS3Q0=
+SHA1 (scrotwm-0.9.34.tgz) = npQ4g+pVBISH/lntCbioRGeoFZM=
+SHA256 (scrotwm-0.9.34.tgz) = RvBV88G30yvKr5QZP9AacnQi54fop6/PmH2y/97Jrag=
+SIZE (scrotwm-0.9.34.tgz) = 69755
Index: pkg/PLIST
===
RCS file: /cvs/ports/x11/scrotwm/pkg/PLIST,v
retrieving revision 1.12
diff -u -p -r1.12 PLIST
--- pkg/PLIST   23 Jun 2011 22:50:30 -  1.12
+++ pkg/PLIST   24 Aug 2011 22:09:31 -
@@ -1,19 +1,7 @@
 @comment $OpenBSD: PLIST,v 1.12 2011/06/23 22:50:30 naddy Exp $
 %%SHARED%%
 @bin bin/scrotwm
-man/es/
-man/es/man1/
-@man man/es/man1/scrotwm.1
-man/it/
-man/it/man1/
-@man man/it/man1/scrotwm.1
 @man man/man1/scrotwm.1
-man/pt/
-man/pt/man1/
-@man man/pt/man1/scrotwm.1
-man/ru/
-man/ru/man1/
-@man man/ru/man1/scrotwm.1
 share/examples/scrotwm/
 @sample share/scrotwm/
 share/examples/scrotwm/baraction.sh


Re: [Update] Scrotwm

2011-08-24 Thread Marco Peereboom
0.9.34 is in snaps.

On Wed, Aug 24, 2011 at 01:12:33AM -0300, Gonzalo L. R. wrote:
> Update to 0.9.33.
> 
> patches/patch-baraction_sh
> patches/patch-scrotwm_conf
> 
> Are out.
> 
> OK?
> -- 
> Sending from my Computer.

> Index: Makefile
> =======
> RCS file: /cvs/ports/x11/scrotwm/Makefile,v
> retrieving revision 1.32
> diff -u -p -r1.32 Makefile
> --- Makefile  3 Aug 2011 15:21:18 -   1.32
> +++ Makefile  24 Aug 2011 04:06:27 -
> @@ -4,11 +4,9 @@ COMMENT= small tiling window manager
>  
>  SHARED_LIBS= swmhack 0.0
>  
> -DISTNAME=scrotwm-0.9.32
> +DISTNAME=scrotwm-0.9.33
>  EXTRACT_SUFX=.tgz
>  CATEGORIES=  x11
> -
> -REVISION=0
>  
>  HOMEPAGE=http://www.scrotwm.org/
>  MAINTAINER=  Marco Peereboom 
> Index: distinfo
> ===
> RCS file: /cvs/ports/x11/scrotwm/distinfo,v
> retrieving revision 1.20
> diff -u -p -r1.20 distinfo
> --- distinfo  23 Jun 2011 22:58:06 -  1.20
> +++ distinfo  24 Aug 2011 04:06:27 -
> @@ -1,5 +1,5 @@
> -MD5 (scrotwm-0.9.32.tgz) = QwU7gpYvZin/pIe/scMZXQ==
> -RMD160 (scrotwm-0.9.32.tgz) = Fx9yvlNV0C0TNtbUdTEEez3FIig=
> -SHA1 (scrotwm-0.9.32.tgz) = 9aFmOSYjMtoz9CUaWzPdyFxX60k=
> -SHA256 (scrotwm-0.9.32.tgz) = zc1kdISraiZtA3L78gs8IOFDVWrAzDIzV0DAjyJ4mHE=
> -SIZE (scrotwm-0.9.32.tgz) = 66951
> +MD5 (scrotwm-0.9.33.tgz) = /P0Kuo5IIX4m24IyJmQFRw==
> +RMD160 (scrotwm-0.9.33.tgz) = 2bJCumXcY1gVTkd/FO96EC6PY5Q=
> +SHA1 (scrotwm-0.9.33.tgz) = x55H1Td/epFphQxzFrXnK1KdOfE=
> +SHA256 (scrotwm-0.9.33.tgz) = N9Ca6DgLrFNDbbXlC9D0oGyGW1so8WRm+lIlm3D1VVA=
> +SIZE (scrotwm-0.9.33.tgz) = 69314



[Update] Scrotwm

2011-08-23 Thread Gonzalo L. R.

Update to 0.9.33.

patches/patch-baraction_sh
patches/patch-scrotwm_conf

Are out.

OK?
--
Sending from my Computer.
Index: Makefile
===
RCS file: /cvs/ports/x11/scrotwm/Makefile,v
retrieving revision 1.32
diff -u -p -r1.32 Makefile
--- Makefile3 Aug 2011 15:21:18 -   1.32
+++ Makefile24 Aug 2011 04:06:27 -
@@ -4,11 +4,9 @@ COMMENT=   small tiling window manager
 
 SHARED_LIBS=   swmhack 0.0
 
-DISTNAME=  scrotwm-0.9.32
+DISTNAME=  scrotwm-0.9.33
 EXTRACT_SUFX=  .tgz
 CATEGORIES=x11
-
-REVISION=  0
 
 HOMEPAGE=  http://www.scrotwm.org/
 MAINTAINER=Marco Peereboom 
Index: distinfo
===
RCS file: /cvs/ports/x11/scrotwm/distinfo,v
retrieving revision 1.20
diff -u -p -r1.20 distinfo
--- distinfo23 Jun 2011 22:58:06 -  1.20
+++ distinfo24 Aug 2011 04:06:27 -
@@ -1,5 +1,5 @@
-MD5 (scrotwm-0.9.32.tgz) = QwU7gpYvZin/pIe/scMZXQ==
-RMD160 (scrotwm-0.9.32.tgz) = Fx9yvlNV0C0TNtbUdTEEez3FIig=
-SHA1 (scrotwm-0.9.32.tgz) = 9aFmOSYjMtoz9CUaWzPdyFxX60k=
-SHA256 (scrotwm-0.9.32.tgz) = zc1kdISraiZtA3L78gs8IOFDVWrAzDIzV0DAjyJ4mHE=
-SIZE (scrotwm-0.9.32.tgz) = 66951
+MD5 (scrotwm-0.9.33.tgz) = /P0Kuo5IIX4m24IyJmQFRw==
+RMD160 (scrotwm-0.9.33.tgz) = 2bJCumXcY1gVTkd/FO96EC6PY5Q=
+SHA1 (scrotwm-0.9.33.tgz) = x55H1Td/epFphQxzFrXnK1KdOfE=
+SHA256 (scrotwm-0.9.33.tgz) = N9Ca6DgLrFNDbbXlC9D0oGyGW1so8WRm+lIlm3D1VVA=
+SIZE (scrotwm-0.9.33.tgz) = 69314


Re: scrotwm

2011-06-23 Thread Marco Peereboom
Fix a crash when apps don't set _NET_WM_PID and also work around that to
find out the pid anyway. This is a critical fix and users should upgrade
ASAP.

Snap:
http://opensource.conformal.com/snapshots/scrotwm/scrotwm-0.9.32.tgz

Sorry about that folks...

On Thu, Jun 23, 2011 at 06:24:14AM -0500, Marco Peereboom wrote:
> gah I found a critical issue with this; please don't use this snap.  A
> new one will be rolled shortly.
> 
> On Wed, Jun 22, 2011 at 10:19:14PM -0500, Marco Peereboom wrote:
> > 0.9.31 snap is up
> > http://opensource.conformal.com/snapshots/scrotwm/scrotwm-0.9.31.tgz
> > 
> > * add autorun option to start application in certain work spaces
> > * fix a crash seen on linux and potentially other OS'
> > * re-add scrotwm.desktop
> > * realloc fixes
> > * cleanup
> > 
> > enjoy
> > 
> 



Re: scrotwm

2011-06-23 Thread Marco Peereboom
gah I found a critical issue with this; please don't use this snap.  A
new one will be rolled shortly.

On Wed, Jun 22, 2011 at 10:19:14PM -0500, Marco Peereboom wrote:
> 0.9.31 snap is up
> http://opensource.conformal.com/snapshots/scrotwm/scrotwm-0.9.31.tgz
> 
> * add autorun option to start application in certain work spaces
> * fix a crash seen on linux and potentially other OS'
> * re-add scrotwm.desktop
> * realloc fixes
> * cleanup
> 
> enjoy
> 



Re: scrotwm

2011-06-23 Thread LEVAI Daniel
On Wed, Jun 22, 2011 at 22:19:14 -0500, Marco Peereboom wrote:
> 0.9.31 snap is up
> http://opensource.conformal.com/snapshots/scrotwm/scrotwm-0.9.31.tgz
> 
> * add autorun option to start application in certain work spaces
> * fix a crash seen on linux and potentially other OS'
> * re-add scrotwm.desktop
> * realloc fixes
> * cleanup

Autorun is awesome!

Thanks,
Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



scrotwm

2011-06-22 Thread Marco Peereboom
0.9.31 snap is up
http://opensource.conformal.com/snapshots/scrotwm/scrotwm-0.9.31.tgz

* add autorun option to start application in certain work spaces
* fix a crash seen on linux and potentially other OS'
* re-add scrotwm.desktop
* realloc fixes
* cleanup

enjoy



Re: scrotwm

2011-06-14 Thread Marco Peereboom
On Tue, Jun 14, 2011 at 09:16:44PM +0200, Christopher Zimmermann wrote:
> Hi!
> 
> good work. some of these anoyed me in the past, too.
> 
> Still, one new problem quickly surfaced. Gkrellm can now be resized,
> but it is supposed to have a fixed size. In the past it had the
> problem, that it would only update its size after being dragged or
> resized. Now it can actually be resized. One other problem is, that
> floating windows will not stay above all tiled windows when switching
> focus. Is this a new "feature" or a bug?

The intent was to have floating windows to be not always on top.  I did
find a bug right after I dropped the release where transients don't work
always as expected.  I am debating adding a "classic mode" or always on
top quirk or something along those lines for these types of issues.

I'd appreciate a bug report in flyspray so that I don't lose track of
it.

> 
> 
> Thanks,
> 
> Christopher
> 
> 
> On 06/14/11 18:18, Marco Peereboom wrote:
> > It was a labor of hate^Wlove but here it is.
> > http://opensource.conformal.com/snapshots/scrotwm/scrotwm-0.9.30.tgz
> > 
> > Changes:
> > * FS#24 show window title in status bar
> > * add border_width for bar and windows
> > * fix applications like xemacs that would endlessly redraw themselves
> > * FS#92 add feature to iconize applications
> > * fix launch library to not crash with new X
> > * rewrite most of the focus code in order to fix a bunch of nits that
> >   were becoming pretty bothersome
> > * fix bug where the border on full screen apps were off by one
> > * no longer allow one to next or previous into a parent window
> > * when moving a transient to another workspace move the parent as well
> > * sort windowlist in order to simplify the "focus next" code
> > * remove logic from enternotify by preventing those events from ever
> >   making it there
> > * work around transients that lie about their parent window; this fixes
> >   a ton of little nits that were not obvious
> > * add FOCUSPREV quirk to force application on exit to focus on the
> >   application that launched them (e.g. focus on xxxterm that launched
> >   mplayer)
> > * prevent double red bordering when an app crashed
> > * fix drag-to-float
> 



Re: scrotwm

2011-06-14 Thread Christopher Zimmermann
Hi!

good work. some of these anoyed me in the past, too.

Still, one new problem quickly surfaced. Gkrellm can now be resized,
but it is supposed to have a fixed size. In the past it had the
problem, that it would only update its size after being dragged or
resized. Now it can actually be resized. One other problem is, that
floating windows will not stay above all tiled windows when switching
focus. Is this a new "feature" or a bug?


Thanks,

Christopher


On 06/14/11 18:18, Marco Peereboom wrote:
> It was a labor of hate^Wlove but here it is.
> http://opensource.conformal.com/snapshots/scrotwm/scrotwm-0.9.30.tgz
> 
> Changes:
> * FS#24 show window title in status bar
> * add border_width for bar and windows
> * fix applications like xemacs that would endlessly redraw themselves
> * FS#92 add feature to iconize applications
> * fix launch library to not crash with new X
> * rewrite most of the focus code in order to fix a bunch of nits that
>   were becoming pretty bothersome
> * fix bug where the border on full screen apps were off by one
> * no longer allow one to next or previous into a parent window
> * when moving a transient to another workspace move the parent as well
> * sort windowlist in order to simplify the "focus next" code
> * remove logic from enternotify by preventing those events from ever
>   making it there
> * work around transients that lie about their parent window; this fixes
>   a ton of little nits that were not obvious
> * add FOCUSPREV quirk to force application on exit to focus on the
>   application that launched them (e.g. focus on xxxterm that launched
>   mplayer)
> * prevent double red bordering when an app crashed
> * fix drag-to-float



Re: scrotwm

2011-06-14 Thread Marco Peereboom
It was a labor of hate^Wlove but here it is.
http://opensource.conformal.com/snapshots/scrotwm/scrotwm-0.9.30.tgz

Changes:
* FS#24 show window title in status bar
* add border_width for bar and windows
* fix applications like xemacs that would endlessly redraw themselves
* FS#92 add feature to iconize applications
* fix launch library to not crash with new X
* rewrite most of the focus code in order to fix a bunch of nits that
  were becoming pretty bothersome
* fix bug where the border on full screen apps were off by one
* no longer allow one to next or previous into a parent window
* when moving a transient to another workspace move the parent as well
* sort windowlist in order to simplify the "focus next" code
* remove logic from enternotify by preventing those events from ever
  making it there
* work around transients that lie about their parent window; this fixes
  a ton of little nits that were not obvious
* add FOCUSPREV quirk to force application on exit to focus on the
  application that launched them (e.g. focus on xxxterm that launched
  mplayer)
* prevent double red bordering when an app crashed
* fix drag-to-float

On Sat, Jun 11, 2011 at 08:48:03AM -0500, Marco Peereboom wrote:
> I have been able to spend time on scrotwm after it started to show some
> issues with the latest X.  I rewrote the focus code yet again and it is
> much simpler now that I am tossing a whole bunch of events.  It should
> also be a little faster.
> 
> What prompted this was a contribution from jason@ to add an iconic
> state.  This works by hitting M-w to icon a window and M-S-w to get a
> list of currently iconed windows (using dmenu).
> 
> I am still working out a few kinks but I really could use some test
> results from heavy users.  Don't want to run a snapshot just yet until I
> fix some border coloring issues.
> 
> It also contains the fix from mcbride@ to make windows appear in the
> correct workspace.
> 
> So get the code at: anon...@opensource.conformal.com:/anoncvs/scrotwm
> and run it like this:
> make obj
> make depend
> make
> sudo make install
> 
> Make sure you have the xenocara directory (sudo mkdir -p /usr/xenocara)
> to ensure the code compiles.  Source isn't needed.
> 



Re: scrotwm

2011-06-14 Thread Ryan McBride
On Tue, Jun 14, 2011 at 09:34:33AM +0200, LEVAI Daniel wrote:
> Great fix for libswmhack, thanks. Now libreoffice or cssh does not dump
> core.

No, it was a nasty fix. Ugly ugly ugly.

> > What prompted this was a contribution from jason@ to add an iconic
> > state.  This works by hitting M-w to icon a window and M-S-w to get a
> > list of currently iconed windows (using dmenu).
> 
> Nice feature! For me, a bit risky to place the hotkey on 'w', because
> I accidentally close scrotwm with MOD+Shift+q :)

This is why you should use a Dvorak keyboard layout; the most dangerous
mistake you can make in this case is MOD+Shift+v, which results in the
version number showing up in the banner.



Re: scrotwm

2011-06-14 Thread LEVAI Daniel
On Sat, Jun 11, 2011 at 08:48:03 -0500, Marco Peereboom wrote:
> I have been able to spend time on scrotwm after it started to show some
> issues with the latest X.  I rewrote the focus code yet again and it is
> much simpler now that I am tossing a whole bunch of events.  It should
> also be a little faster.

Great fix for libswmhack, thanks. Now libreoffice or cssh does not dump
core.

> What prompted this was a contribution from jason@ to add an iconic
> state.  This works by hitting M-w to icon a window and M-S-w to get a
> list of currently iconed windows (using dmenu).

Nice feature! For me, a bit risky to place the hotkey on 'w', because
I accidentally close scrotwm with MOD+Shift+q :)

> I am still working out a few kinks but I really could use some test
> results from heavy users.  Don't want to run a snapshot just yet until I
> fix some border coloring issues.
[...]

So far so good! Thanks!


Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: scrotwm

2011-06-12 Thread Matthieu Herrb
On Sun, Jun 12, 2011 at 11:03:10AM -0500, Marco Peereboom wrote:
> On Sun, Jun 12, 2011 at 08:56:58AM -0700, Barbier, Jason wrote:
> > He says the source is not needed just the xenocara directory.
> >  On Jun 12, 2011 5:33 AM, "Stuart Henderson"  wrote:
> > > On 2011-06-11, Marco Peereboom  wrote:
> > >> Make sure you have the xenocara directory (sudo mkdir -p /usr/xenocara)
> > >> to ensure the code compiles. Source isn't needed.
> > >
> > > ugh, is there a way around this? nothing else in the ports
> > > tree needs xenocara source.
> 
> Right.
> 
This is because  you're (ab)using bsd.xorg.mk and the _xenocara_obj
target to do make obj there does a cd ${XSRCDIR}; `pwd` to figure out
the correct path to XSRCDIR, like obj in bsd.obj.mk does for
BSDSRCDIR. 

If there's a better way to achieve this, both in bsd.obj.mk and
bsd.xorg.mk, then I'll be happy to patch bsd.xorg.mk.

More generally /usr/share/mk/*.mk lacked enough configurability to
handle X libs and application builds, so I had to duplicate and modify
stuff from  /usr/share/mk/bsd.*.mk in bsd.xorg.mk. It would be nice if
someone with make skill could try to merge those back at some
point

-- 
Matthieu Herrb



Re: scrotwm

2011-06-12 Thread Marco Peereboom
On Sun, Jun 12, 2011 at 08:56:58AM -0700, Barbier, Jason wrote:
> He says the source is not needed just the xenocara directory.
>  On Jun 12, 2011 5:33 AM, "Stuart Henderson"  wrote:
> > On 2011-06-11, Marco Peereboom  wrote:
> >> Make sure you have the xenocara directory (sudo mkdir -p /usr/xenocara)
> >> to ensure the code compiles. Source isn't needed.
> >
> > ugh, is there a way around this? nothing else in the ports
> > tree needs xenocara source.

Right.



Re: scrotwm

2011-06-12 Thread Barbier, Jason
He says the source is not needed just the xenocara directory.
 On Jun 12, 2011 5:33 AM, "Stuart Henderson"  wrote:
> On 2011-06-11, Marco Peereboom  wrote:
>> Make sure you have the xenocara directory (sudo mkdir -p /usr/xenocara)
>> to ensure the code compiles. Source isn't needed.
>
> ugh, is there a way around this? nothing else in the ports
> tree needs xenocara source.
>
>


Re: scrotwm

2011-06-12 Thread Stuart Henderson
On 2011-06-11, Marco Peereboom  wrote:
> Make sure you have the xenocara directory (sudo mkdir -p /usr/xenocara)
> to ensure the code compiles.  Source isn't needed.

ugh, is there a way around this? nothing else in the ports
tree needs xenocara source.




scrotwm

2011-06-11 Thread Marco Peereboom
I have been able to spend time on scrotwm after it started to show some
issues with the latest X.  I rewrote the focus code yet again and it is
much simpler now that I am tossing a whole bunch of events.  It should
also be a little faster.

What prompted this was a contribution from jason@ to add an iconic
state.  This works by hitting M-w to icon a window and M-S-w to get a
list of currently iconed windows (using dmenu).

I am still working out a few kinks but I really could use some test
results from heavy users.  Don't want to run a snapshot just yet until I
fix some border coloring issues.

It also contains the fix from mcbride@ to make windows appear in the
correct workspace.

So get the code at: anon...@opensource.conformal.com:/anoncvs/scrotwm
and run it like this:
make obj
make depend
make
sudo make install

Make sure you have the xenocara directory (sudo mkdir -p /usr/xenocara)
to ensure the code compiles.  Source isn't needed.



Re: scrotwm (libswmhack) broken (was Re: clusterssh/scrotwm? broken in -current)

2011-05-30 Thread LEVAI Daniel
On Mon, May 30, 2011 at 17:54:19 +0100, Owain Ainsworth wrote:
> On Mon, May 30, 2011 at 11:07:26AM +0200, LEVAI Daniel wrote:
> > [...]
> > 
> > So, am I the only one experiencing this? I have to "unset LD_PRELOAD"
> > before executing cssh or libreoffice when using scrotwm in -current,
> > because libswmhack barfs me:
> > --- # ---
> > /usr/bin/perl:/usr/local/lib/libswmhack.so.0.0: undefined symbol 
> > 'XInternAtom'
> > lazy binding failed!
> > Segmentation fault (core dumped)
> > --- # ---
> > /usr/local/lib/libreoffice/program/soffice.bin:/usr/local/lib/libswmhack.so.0.0:
> >  undefined symbol 'XInternAtom'
> > lazy binding failed!
> > Segmentation fault (core dumped)
> > --- # ---
> 
> As a guess this is because perl doesn't immediately link in the libX11
> stuff (it'll dlopen it when it loads the module that needs it). try also
> LD_PRELOADing libX11 to test this theory.

This is the case exactly!

`LD_PRELOAD=/usr/X11R6/lib/libX11.so.14.0 cssh`
and
`LD_PRELOAD=/usr/X11R6/lib/libX11.so.14.0 libreoffice`
works.


But I can't imagine since when this had been broken.


Thanks,
Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: scrotwm (libswmhack) broken (was Re: clusterssh/scrotwm? broken in -current)

2011-05-30 Thread Owain Ainsworth
On Mon, May 30, 2011 at 11:07:26AM +0200, LEVAI Daniel wrote:
> [...]
> 
> So, am I the only one experiencing this? I have to "unset LD_PRELOAD"
> before executing cssh or libreoffice when using scrotwm in -current,
> because libswmhack barfs me:
> --- # ---
> /usr/bin/perl:/usr/local/lib/libswmhack.so.0.0: undefined symbol 'XInternAtom'
> lazy binding failed!
> Segmentation fault (core dumped)
> --- # ---
> /usr/local/lib/libreoffice/program/soffice.bin:/usr/local/lib/libswmhack.so.0.0:
>  undefined symbol 'XInternAtom'
> lazy binding failed!
> Segmentation fault (core dumped)
> --- # ---

As a guess this is because perl doesn't immediately link in the libX11
stuff (it'll dlopen it when it loads the module that needs it). try also
LD_PRELOADing libX11 to test this theory.

Cheers,

-0-
-- 
Furious activity is no substitute for understanding.
-- H. H. Williams



scrotwm (libswmhack) broken (was Re: clusterssh/scrotwm? broken in -current)

2011-05-30 Thread LEVAI Daniel
[...]

So, am I the only one experiencing this? I have to "unset LD_PRELOAD"
before executing cssh or libreoffice when using scrotwm in -current,
because libswmhack barfs me:
--- # ---
/usr/bin/perl:/usr/local/lib/libswmhack.so.0.0: undefined symbol 'XInternAtom'
lazy binding failed!
Segmentation fault (core dumped)
--- # ---
/usr/local/lib/libreoffice/program/soffice.bin:/usr/local/lib/libswmhack.so.0.0:
 undefined symbol 'XInternAtom'
lazy binding failed!
Segmentation fault (core dumped)
--- # ---


Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



Re: clusterssh/scrotwm? broken in -current

2011-05-26 Thread LEVAI Daniel
On Wed, May 25, 2011 at 12:33:03 +0200, LEVAI Daniel wrote:
> Hi!
> 
> 
> After today's -current upgrade:
> 
> $ cssh
> /usr/bin/perl:/usr/local/lib/libswmhack.so.0.0: undefined symbol 'XInternAtom'
> lazy binding failed!
> Segmentation fault (core dumped) 
> 
> 
> I realize that that lib is in scrotwm, but other perl
> scripts/applications do not crash.

Yep, sorry, now it's certain that scrotwm is borked. This happens now
with libreoffice too.


Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



clusterssh/scrotwm? broken in -current

2011-05-25 Thread LEVAI Daniel
Hi!


After today's -current upgrade:

$ cssh
/usr/bin/perl:/usr/local/lib/libswmhack.so.0.0: undefined symbol 'XInternAtom'
lazy binding failed!
Segmentation fault (core dumped) 


I realize that that lib is in scrotwm, but other perl
scripts/applications do not crash.


(The perl.core file doesn't contain useful bt)


Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F



scrotwm 0.9.28

2011-01-18 Thread Marco Peereboom
Fixes 2 crashes and adds window titles to status bar.

ok?

diff -ruNp -x CVS ports/x11/scrotwm/Makefile scrotwm-0.9.28-port/Makefile
--- ports/x11/scrotwm/Makefile  Mon Nov 22 02:37:04 2010
+++ scrotwm-0.9.28-port/MakefileTue Jan 18 14:00:24 2011
@@ -4,7 +4,7 @@ COMMENT=small tiling window manager
 
 SHARED_LIBS=   swmhack 0.0
 
-DISTNAME=  scrotwm-0.9.27
+DISTNAME=  scrotwm-0.9.28
 EXTRACT_SUFX=  .tgz
 CATEGORIES=x11
 
diff -ruNp -x CVS ports/x11/scrotwm/distinfo scrotwm-0.9.28-port/distinfo
--- ports/x11/scrotwm/distinfo  Tue Oct 19 19:38:58 2010
+++ scrotwm-0.9.28-port/distinfoTue Jan 18 14:00:24 2011
@@ -1,5 +1,5 @@
-MD5 (scrotwm-0.9.27.tgz) = jOr4V8pt6Tbc/V8zG48dFg==
-RMD160 (scrotwm-0.9.27.tgz) = SCCOM9vAFiaLPZaAW3YzUez3m0Q=
-SHA1 (scrotwm-0.9.27.tgz) = vwcDD/bWeHbToJAh/yPC7EU4/3M=
-SHA256 (scrotwm-0.9.27.tgz) = b/WaxactUek7CwVAiCU7XDs82AHjZve2UNqZxRzCU8A=
-SIZE (scrotwm-0.9.27.tgz) = 62671
+MD5 (scrotwm-0.9.28.tgz) = 3ImSDJxukyKPrCIzyOZR3A==
+RMD160 (scrotwm-0.9.28.tgz) = t7QYbQLmVEgRfhXIxL87R6oUbiQ=
+SHA1 (scrotwm-0.9.28.tgz) = JMxz0B/RXnfdODCQLdeRdZN1A3s=
+SHA256 (scrotwm-0.9.28.tgz) = VXmvMogcqpmD+Y0JoO0k85hd3eHQyfMpjAzBAQKadQw=
+SIZE (scrotwm-0.9.28.tgz) = 62837



scrotwm

2010-10-19 Thread Marco Peereboom
Add EWMH support.
Fix a focus bug where the wm no longer accepts keystrokes.
Ad pt man.

ok?

diff -ruNp -x CVS ports/x11/scrotwm/Makefile scrotwm-0.9.27-port/Makefile
--- ports/x11/scrotwm/Makefile  Tue Oct 19 03:13:59 2010
+++ scrotwm-0.9.27-port/MakefileTue Oct 19 12:51:28 2010
@@ -4,7 +4,7 @@ COMMENT=small tiling window manager
 
 SHARED_LIBS=   swmhack 0.0
 
-DISTNAME=  scrotwm-0.9.26
+DISTNAME=  scrotwm-0.9.27
 EXTRACT_SUFX=  .tgz
 CATEGORIES=x11
 
@@ -40,7 +40,7 @@ post-install:
${INSTALL_SCRIPT} ${WRKSRC}/screenshot.sh 
${PREFIX}/share/examples/scrotwm
${INSTALL_DATA} ${WRKSRC}/scrotwm.conf ${PREFIX}/share/examples/scrotwm
 
-.for i in es it ru
+.for i in es it pt ru
${INSTALL_DATA_DIR} ${PREFIX}/man/$i/cat1
mv ${PREFIX}/man/cat1/scrotwm_$i.0 ${PREFIX}/man/$i/cat1/scrotwm.0
 .endfor
diff -ruNp -x CVS ports/x11/scrotwm/distinfo scrotwm-0.9.27-port/distinfo
--- ports/x11/scrotwm/distinfo  Wed Sep 15 20:38:53 2010
+++ scrotwm-0.9.27-port/distinfoTue Oct 19 12:51:28 2010
@@ -1,5 +1,5 @@
-MD5 (scrotwm-0.9.26.tgz) = 3enLoAOvWTeABwhhsMvLhg==
-RMD160 (scrotwm-0.9.26.tgz) = zXX8IyM2FePZ/0N6/buIoM92c0w=
-SHA1 (scrotwm-0.9.26.tgz) = PW28Zkhqm1BzgJCqDs/277PRCUE=
-SHA256 (scrotwm-0.9.26.tgz) = PMRByETTuxb5gcCUzIO7Qoh5k/qKA41ndQq1CNvAUwg=
-SIZE (scrotwm-0.9.26.tgz) = 56674
+MD5 (scrotwm-0.9.27.tgz) = jOr4V8pt6Tbc/V8zG48dFg==
+RMD160 (scrotwm-0.9.27.tgz) = SCCOM9vAFiaLPZaAW3YzUez3m0Q=
+SHA1 (scrotwm-0.9.27.tgz) = vwcDD/bWeHbToJAh/yPC7EU4/3M=
+SHA256 (scrotwm-0.9.27.tgz) = b/WaxactUek7CwVAiCU7XDs82AHjZve2UNqZxRzCU8A=
+SIZE (scrotwm-0.9.27.tgz) = 62671
diff -ruNp -x CVS ports/x11/scrotwm/patches/patch-scrotwm_c 
scrotwm-0.9.27-port/patches/patch-scrotwm_c
--- ports/x11/scrotwm/patches/patch-scrotwm_c   Wed Sep 15 20:38:53 2010
+++ scrotwm-0.9.27-port/patches/patch-scrotwm_c Tue Oct 19 12:51:28 2010
@@ -1,4 +1,4 @@
-$OpenBSD: patch-scrotwm_c,v 1.13 2010/09/16 01:38:53 marco Exp $
+$OpenBSD: patch-scrotwm_c,v 1.7 2009/09/30 00:54:06 sthen Exp $
 --- scrotwm.c.orig Wed Sep 23 06:04:09 2009
 +++ scrotwm.c  Fri Sep 25 17:28:03 2009
 @@ -150,7 +150,7 @@ u_int32_t  swm_debug = 0
diff -ruNp -x CVS ports/x11/scrotwm/pkg/PLIST scrotwm-0.9.27-port/pkg/PLIST
--- ports/x11/scrotwm/pkg/PLIST Wed Sep 15 20:38:53 2010
+++ scrotwm-0.9.27-port/pkg/PLIST   Tue Oct 19 12:51:28 2010
@@ -1,4 +1,4 @@
-...@comment $OpenBSD: PLIST,v 1.10 2010/09/16 01:38:53 marco Exp $
+...@comment $OpenBSD: PLIST,v 1.2 2009/10/13 12:24:42 sthen Exp $
 %%SHARED%%
 @bin bin/scrotwm
 @man man/cat1/scrotwm.0



Re: scrotwm, modkey not working with numlock on

2010-09-19 Thread Marco Peereboom
Sounds like a bug in X.

And yes there are now community resources for scrotwm at:
http://opensource.conformal.com/wiki/Scrotwm

On Sat, Sep 18, 2010 at 10:45:32PM -0700, Aaron Stellman wrote:
> Hello,
> 
> Not sure if there is a better place to contact someone regarding
> scrotwm; but I'll give it a shot here.
> 
> Running scrotwm, built from cvs (scrotwm.c,v 1.302 2010/09/16).
> Using a default modkey, which happens to be left alt. When I start
> scrotwm, and have my numlock on, modkey doesn't work. It works fine with
> numlock off.  Yet, if I restart scrotwm using a sighup signal, modkey
> starts to work with both numlock on and off.  There is no difference in
> xev(1) output from modkey+j with both numlock on and off.
> 
> Is that a feature/bug/sideeffect?
> 



scrotwm, modkey not working with numlock on

2010-09-18 Thread Aaron Stellman
Hello,

Not sure if there is a better place to contact someone regarding
scrotwm; but I'll give it a shot here.

Running scrotwm, built from cvs (scrotwm.c,v 1.302 2010/09/16).
Using a default modkey, which happens to be left alt. When I start
scrotwm, and have my numlock on, modkey doesn't work. It works fine with
numlock off.  Yet, if I restart scrotwm using a sighup signal, modkey
starts to work with both numlock on and off.  There is no difference in
xev(1) output from modkey+j with both numlock on and off.

Is that a feature/bug/sideeffect?



scrotwm resources

2010-09-15 Thread Marco Peereboom
Due to popular demand we put up a server to handle community requests
for scrotwm.  It has a forum, wiki, cvsweb etc etc.  All the goodies one
would expect.  You can check it out at:
http://opensource.conformal.com/wiki/Scrotwm

So next time ask your questions there instead of the OpenBSD mailing
lists.

Note that the CVS server also moved!



Re: Some apps kill/hang X when using scrotwm(1) as wm

2010-08-17 Thread Markus Hennecke

On 08/17/10 16:56, Ted Unangst wrote:

On Tue, Aug 17, 2010 at 3:30 AM, Tomas Bodzar  wrote:

did someone saw similar problem in scrotwm(1)? Eg. when I start
xeyes(1) on empty workspace from menu M-p it simply "shut down" X. If
I start eg. xcalc(1) then everything is ok. Another problem is with
xlock(1). When I want to lock my screen and start xlock(1) eg. this
way 'xlock -mode atlantis' then my computer completely hangs and I
must to turn it off with button on case. Last problem which I
discovered is with warzone game. When I start it on empty workspace
then it says that timing of monitor is not ok for this app and X is
not working anymore and I must kill X from console.


For the record, it would be nice to test with a different window
manager.  Bugs in scrotwm do not count as bugs in OpenBSD.


I can see the same bug regarding xeyes with ctwm-3.8 on a dual screen 
setup, another machine with ctwm-3.6 (single screen) from ports does not 
have that problem.


Kind regards,
  Markus



/usr/local/man/ru/cat1/scrotwm.0

2010-06-05 Thread Emilio Perea
I've just been deleting the file, but wonder if the problem is with the
file itself or with something else that does not recognize its format?

- Forwarded message from r...@hermes.walkereng.com -

Date: 5 Jun 2010 08:32:32 -
From: r...@hermes.walkereng.com
To: r...@hermes.walkereng.com
Subject: hermes.walkereng.com weekly output

Rebuilding whatis databases:
Can't parse /usr/local/man/ru/cat1/scrotwm.0 (not a manpage ?)

- End forwarded message -



Re: scrotwm patch to change wm.

2010-04-03 Thread Edd Barrett
On Thu, Apr 01, 2010 at 03:31:15AM +0100, Edd Barrett wrote:
> Works well here, but the dmenu does not follow colour scheme.

This diff fixes the colour scheme of dmenu by treating the alt_wm feature as a
custom_spawn, meaning it goes through the $some_color expansions just like
normal dmenu does.

So this adds a config variable 'program[alt_wm_menu]' which defaults to dmenu
with colours matching the current scheme :) I updated the manual to reflect
this.

What do you think?

Tested i386.

opencvs server: Diffing inside .
Index: scrotwm.1
===
RCS file: /scrotwm/scrotwm/scrotwm.1,v
retrieving revision 1.28
diff -N -u -p -u scrotwm.1
--- scrotwm.1   7 Oct 2009 03:19:11 -   1.28
+++ scrotwm.1   3 Apr 2010 16:20:47 -
@@ -79,6 +79,12 @@ Enabling or disabling an option is done by using 1 or 
 The file supports the following keywords:
 .Pp
 .Bl -tag -width "title_class_enabledXXX" -offset indent -compact
+.It Cm alt_wms
+A comma separated list of alternative window managers for use with
+exec_alt_wm. The menu program specified by the 'alt_wm_menu' program is
+used to show the specified executables as choices of alternative window
+managers. When one is selected, scrotwm will replace itself with the selected
+executable.
 .It Cm color_focus
 Border color of the currently focussed window.
 .It Cm color_unfocus
@@ -192,6 +198,8 @@ xlock
 initscreen.sh
 .It Cm menu
 dmenu_run \-fn $bar_font \-nb $bar_color \-nf $bar_font_color \-sb $bar_border 
\-sf $bar_color
+.It Cm alt_wm_menu
+dmenu \-fn $bar_font \-nb $bar_color \-nf $bar_font_color \-sb $bar_border 
\-sf $bar_color
 .El
 .Pp
 Custom programs in the configuration file are specified as follows:
@@ -259,6 +267,8 @@ The default key bindings are described below:
 term
 .It Cm M-p
 menu
+.It Cm M-r
+exec_alt_wm
 .It Cm M-S-q
 quit
 .It Cm M-q
@@ -343,6 +353,8 @@ Menu
 (see
 .Sx PROGRAMS
 above)
+.It Cm exec_alt_wm
+Execute an alternative window manager
 .It Cm quit
 Quit
 .Nm
Index: scrotwm.c
===========
RCS file: /scrotwm/scrotwm/scrotwm.c,v
retrieving revision 1.281
diff -N -u -p -u scrotwm.c
--- scrotwm.c   13 Jan 2010 23:22:31 -  1.281
+++ scrotwm.c   3 Apr 2010 16:20:50 -
@@ -179,6 +179,7 @@ int cycle_visible = 0;
 intterm_width = 0;
 intfont_adjusted = 0;
 unsigned int   mod_key = MODKEY;
+intret_status = -1; /* store return status of fork/exec */
 
 /* dialog windows */
 double dialog_ratio = .6;
@@ -385,6 +386,15 @@ struct quirk {
 intquirks_size = 0, quirks_length = 0;
 struct quirk   *quirks = NULL;
 
+/* alternative window managers */
+struct alt_wm {
+   SLIST_ENTRY(alt_wm) entries;
+   char*wm;
+};
+SLIST_HEAD(head, alt_wm)   alt_wms;
+void   exec_alt_wm(struct swm_region *r, char **args);
+void   free_alt_wm_list();
+
 /* events */
 #ifdef SWM_DEBUG
 void
@@ -587,7 +597,7 @@ sighdlr(int sig)
 
switch (sig) {
case SIGCHLD:
-   while ((pid = waitpid(WAIT_ANY, NULL, WNOHANG)) != -1) {
+   while ((pid = waitpid(WAIT_ANY, &ret_status, WNOHANG)) != -1) {
DNPRINTF(SWM_D_MISC, "reaping: %d\n", pid);
if (pid <= 0)
break;
@@ -1135,6 +1145,150 @@ restart(struct swm_region *r, union arg *args)
quit(NULL, NULL);
 }
 
+/* execute a new window manager */
+void
+exec_alt_wm(struct swm_region *r, char **args)
+{
+   int fd[2], fd1[2], pipe_written = 0;
+   int pipe_read = 0, found_choice = 0;
+   int max_wm_len = -1, cur_wm_len;
+   int pipe_in_sz = 0, i, pid;
+   char*new_wm = NULL, *buf = NULL, *pipe_in;
+   struct  alt_wm *wm_node;
+
+   if (SLIST_EMPTY(&alt_wms)) {
+   fprintf(stderr, "exec_alt_wm: no alt_wms specified\n");
+   return;
+   }
+
+   if ((pipe(fd) == -1) || (pipe(fd1) == -1))
+   err(1, "exec_alt_wm: cannot pipe");
+
+   if (signal(SIGPIPE, SIG_IGN) == SIG_ERR)
+   err(1, "exec_alt_wm: cannot disable SIGPIPE");
+
+   /* work out how many wms and the longest name */
+   SLIST_FOREACH(wm_node, &alt_wms, entries) {
+   cur_wm_len = strlen(wm_node->wm);
+   pipe_in_sz = pipe_in_sz + cur_wm_len + 1; /* +1 \n */
+   if (max_wm_len < cur_wm_len)
+   max_wm_len = cur_wm_len;
+   }
+   pipe_in_sz ++; /* \0 */
+
+   pid = fork();
+   switch (pid) {
+   case -1:
+   

Re: scrotwm patch to change wm.

2010-03-31 Thread Edd Barrett
On Thu, Apr 01, 2010 at 03:31:15AM +0100, Edd Barrett wrote:
> This diff:

Every time


opencvs server: Diffing inside .
Index: scrotwm.1
===
RCS file: /scrotwm/scrotwm/scrotwm.1,v
retrieving revision 1.28
diff -N -u -p -u scrotwm.1
--- scrotwm.1   7 Oct 2009 03:19:11 -   1.28
+++ scrotwm.1   1 Apr 2010 01:20:35 -
@@ -79,6 +79,14 @@ Enabling or disabling an option is done by using 1 or 
 The file supports the following keywords:
 .Pp
 .Bl -tag -width "title_class_enabledXXX" -offset indent -compact
+.It Cm alt_wm_menu_program
+The program to use for displaying a list of alternative window managers
+(as specified by the 'alt_wms' configuration). Typically this
+will be set to 'dmenu'.
+.It Cm alt_wms
+A comma separated list of alternative window managers for use with
+exec_alt_wm.  An alt_wm_menu_program configuration must also be
+specified in order to enable window manager switching.
 .It Cm color_focus
 Border color of the currently focussed window.
 .It Cm color_unfocus
@@ -259,6 +267,8 @@ The default key bindings are described below:
 term
 .It Cm M-p
 menu
+.It Cm M-r
+exec_alt_wm
 .It Cm M-S-q
 quit
 .It Cm M-q
@@ -343,6 +353,8 @@ Menu
 (see
 .Sx PROGRAMS
 above)
+.It Cm exec_alt_wm
+Execute an alternative window manager
 .It Cm quit
 Quit
 .Nm
Index: scrotwm.c
===========
RCS file: /scrotwm/scrotwm/scrotwm.c,v
retrieving revision 1.281
diff -N -u -p -u scrotwm.c
--- scrotwm.c   13 Jan 2010 23:22:31 -  1.281
+++ scrotwm.c   1 Apr 2010 01:20:36 -
@@ -179,6 +179,7 @@ int cycle_visible = 0;
 intterm_width = 0;
 intfont_adjusted = 0;
 unsigned int   mod_key = MODKEY;
+intret_status = -1; /* store return status of fork/exec */
 
 /* dialog windows */
 double dialog_ratio = .6;
@@ -385,6 +386,16 @@ struct quirk {
 intquirks_size = 0, quirks_length = 0;
 struct quirk   *quirks = NULL;
 
+/* alternative window managers */
+struct alt_wm {
+   SLIST_ENTRY(alt_wm) entries;
+   char*wm;
+};
+SLIST_HEAD(head, alt_wm)   alt_wms;
+void   exec_alt_wm();
+void   free_alt_wm_list();
+char   *alt_wm_menu_program = NULL;
+
 /* events */
 #ifdef SWM_DEBUG
 void
@@ -587,7 +598,7 @@ sighdlr(int sig)
 
switch (sig) {
case SIGCHLD:
-   while ((pid = waitpid(WAIT_ANY, NULL, WNOHANG)) != -1) {
+   while ((pid = waitpid(WAIT_ANY, &ret_status, WNOHANG)) != -1) {
DNPRINTF(SWM_D_MISC, "reaping: %d\n", pid);
if (pid <= 0)
break;
@@ -1135,6 +1146,156 @@ restart(struct swm_region *r, union arg *args)
quit(NULL, NULL);
 }
 
+/* execute a new window manager */
+void
+exec_alt_wm(struct swm_region *r, union arg *args)
+{
+   int fd[2], fd1[2], pipe_written = 0;
+   int pipe_read = 0, found_choice = 0;
+   int max_wm_len = -1, cur_wm_len;
+   int pipe_in_sz = 0, i, pid;
+   char*new_wm = NULL, *buf = NULL, *pipe_in;
+   struct  alt_wm *wm_node;
+
+   if (alt_wm_menu_program == NULL) {
+   fprintf(stderr, "exec_alt_wm: no alt_wm_menu_program set\n");
+   return;
+   }
+
+   if (SLIST_EMPTY(&alt_wms)) {
+   fprintf(stderr, "exec_alt_wm: no alt_wms specified\n");
+   return;
+   }
+
+   if ((pipe(fd) == -1) || (pipe(fd1) == -1))
+   err(1, "exec_alt_wm: cannot pipe");
+
+   if (signal(SIGPIPE, SIG_IGN) == SIG_ERR)
+   err(1, "exec_alt_wm: cannot disable SIGPIPE");
+
+   /* work out how many wms and the longest name */
+   SLIST_FOREACH(wm_node, &alt_wms, entries) {
+   cur_wm_len = strlen(wm_node->wm);
+   pipe_in_sz = pipe_in_sz + cur_wm_len + 1; /* +1 \n */
+   if (max_wm_len < cur_wm_len)
+   max_wm_len = cur_wm_len;
+   }
+   pipe_in_sz ++; /* \0 */
+
+   pid = fork();
+   switch (pid) {
+   case -1:
+   err(1, "exec_alt_wm: cannot fork");
+   break;
+   case 0: /* we are the child */
+   close(fd1[0]);
+
+   /* build \n delimited records for dmenu */
+   pipe_in = malloc(pipe_in_sz);
+   if (pipe_in == NULL)
+   err(1, "exec_alt_wm: cannot malloc\n");
+
+   memset(pipe_in, 0, pipe_in_sz);
+
+   SLIST_FOREACH(wm_node, &alt_wms, entries)
+ 

Re: scrotwm patch to change wm.

2010-03-31 Thread Edd Barrett
On Mon, Mar 08, 2010 at 08:05:04AM -0600, Marco Peereboom wrote:
> Just use program[menu] just like M-P does.

So a while back I realized that I can't use program[menu] because I would want
to run (assuming we want dmenu), "dmenu" and not "dmenu_run". Also I need to do
special magic with pipes etc. It's a special cases to it is treated as such.

This diff:
  * Makes all of this work with 'S' malloc.conf (a small memory mistake was in
there).
  * Adds a config option "alt_wm_menu_program" to specify which menu you want to
use for this. If you don't specify one atall, the whole feature is disabled.
  * Update manual to reflect changes.

An example usage:
alt_wms = fvwm,cwm,openbox
alt_wm_menu_program = dmenu

Works well here, but the dmenu does not follow colour scheme. If this is
required we should put the $blah_color replacement code in its own
function and re-use that in exec_alt_wm(). May I reccommend we get this
code in first before I look at that?

Tested i386.

-- 
Best Regards
Edd Barrett

http://www.theunixzoo.co.uk



Re: scrotwm patch to change wm.

2010-03-08 Thread Marco Peereboom
Just use program[menu] just like M-P does.

On Mon, Mar 08, 2010 at 01:31:05PM +, Edd Barrett wrote:
> On Sun, Mar 07, 2010 at 07:15:13PM -0600, Marco Peereboom wrote:
> > I agree with dwc's assesment. You need to make sure dmenu is the
> > magical tool.
> 
> And if it is not, do what? Just carry on I expect.
> 
> -- 
> Best Regards
> Edd Barrett
> 
> http://www.theunixzoo.co.uk



Re: scrotwm patch to change wm.

2010-03-08 Thread Edd Barrett
On Sun, Mar 07, 2010 at 07:15:13PM -0600, Marco Peereboom wrote:
> I agree with dwc's assesment. You need to make sure dmenu is the
> magical tool.

And if it is not, do what? Just carry on I expect.

-- 
Best Regards
Edd Barrett

http://www.theunixzoo.co.uk



Re: scrotwm patch to change wm.

2010-03-07 Thread Marco Peereboom
I agree with dwc's assesment. You need to make sure dmenu is the  
magical tool.


On Mar 7, 2010, at 5:54 PM, Darrin Chandler   
wrote:



On Sun, Mar 07, 2010 at 10:21:39PM +, Edd Barrett wrote:

Hi guys,

I have had this patch sitting around in my $HOME for a while. It  
allows the user
to exit scrotwm to another window manager (one of the ones they  
define in

~/.scrotwm.conf) via a dmenu. The idea was taken from cwm.

What do you think?

OK to put into scrotwm?


What happens if you are using a different menu program, or have no  
menu

program installed at all?

I don't like harcoding to dmenu. Aside from that it's a nice idea.



--
Best Regards
Edd Barrett

http://www.theunixzoo.co.uk



opencvs server: Diffing inside .
Index: scrotwm.1
===
RCS file: /scrotwm/scrotwm/scrotwm.1,v
retrieving revision 1.28
diff -N -u -p -u scrotwm.1
--- scrotwm.17 Oct 2009 03:19:11 -00001.28
+++ scrotwm.121 Feb 2010 20:19:12 -
@@ -79,6 +79,8 @@ Enabling or disabling an option is done by using  
1 or

The file supports the following keywords:
.Pp
.Bl -tag -width "title_class_enabledXXX" -offset indent -compact
+.It Cm alt_wms
+A comma separated list of alternative window managers for use with  
exec_alt_wm.

.It Cm color_focus
Border color of the currently focussed window.
.It Cm color_unfocus
@@ -259,6 +261,8 @@ The default key bindings are described below:
term
.It Cm M-p
menu
+.It Cm M-r
+exec_alt_wm
.It Cm M-S-q
quit
.It Cm M-q
@@ -343,6 +347,8 @@ Menu
(see
.Sx PROGRAMS
above)
+.It Cm exec_alt_wm
+Execute an alternative window manager
.It Cm quit
Quit
.Nm
Index: scrotwm.c
=======
RCS file: /scrotwm/scrotwm/scrotwm.c,v
retrieving revision 1.281
diff -N -u -p -u scrotwm.c
--- scrotwm.c13 Jan 2010 23:22:31 -1.281
+++ scrotwm.c21 Feb 2010 20:19:13 -
@@ -179,6 +179,7 @@ intcycle_visible = 0;
intterm_width = 0;
intfont_adjusted = 0;
unsigned intmod_key = MODKEY;
+intret_status = -1; /* store return status of fork/ 
exec */


/* dialog windows */
doubledialog_ratio = .6;
@@ -385,6 +386,15 @@ struct quirk {
intquirks_size = 0, quirks_length = 0;
struct quirk*quirks = NULL;

+/* alternative window managers */
+struct alt_wm {
+SLIST_ENTRY(alt_wm)entries;
+char*wm;
+};
+SLIST_HEAD(head, alt_wm)alt_wms;
+voidexec_alt_wm();
+voidfree_alt_wm_list();
+
/* events */
#ifdef SWM_DEBUG
void
@@ -587,7 +597,7 @@ sighdlr(int sig)

   switch (sig) {
   case SIGCHLD:
-while ((pid = waitpid(WAIT_ANY, NULL, WNOHANG)) != -1) {
+while ((pid = waitpid(WAIT_ANY, &ret_status, WNOHANG)) !=  
-1) {

   DNPRINTF(SWM_D_MISC, "reaping: %d\n", pid);
   if (pid <= 0)
   break;
@@ -1135,6 +1145,148 @@ restart(struct swm_region *r, union arg  
*args)

   quit(NULL, NULL);
}

+/* execute a new window manager */
+void
+exec_alt_wm(struct swm_region *r, union arg *args)
+{
+intfd[2], fd1[2], pipe_written = 0;
+intpipe_read = 0, found_choice = 0;
+intmax_wm_len = -1, cur_wm_len;
+intpipe_in_sz = 0, i, pid;
+char*new_wm = NULL, *buf = NULL, *pipe_in;
+structalt_wm *wm_node;
+
+if (SLIST_EMPTY(&alt_wms))
+return;
+
+if ((pipe(fd) == -1) || (pipe(fd1) == -1))
+err(1, "exec_alt_wm: pipe fail");
+
+if (signal(SIGPIPE, SIG_IGN) == SIG_ERR)
+err(1, "exec_alt_wm: could not disable SIGPIPE");
+
+/* work out how many wms and the longest name */
+SLIST_FOREACH(wm_node, &alt_wms, entries) {
+cur_wm_len = strlen(wm_node->wm);
+pipe_in_sz = pipe_in_sz + cur_wm_len + 1; /* +1 \n */
+if (max_wm_len < cur_wm_len)
+max_wm_len = cur_wm_len;
+}
+pipe_in_sz ++; /* \0 */
+
+pid = fork();
+switch (pid) {
+case -1:
+err(1, "exec_alt_wm: can't fork");
+break;
+case 0: /* we are the child */
+close(fd1[0]);
+
+/* build \n delimited records for dmenu */
+pipe_in = malloc(pipe_in_sz);
+if (pipe_in == NULL)
+err(1, "exec_alt_wm: malloc failed\n");
+
+memset(pipe_in, 0, pipe_in_sz);
+
+SLIST_FOREACH(wm_node, &alt_wms, entries)
+snprintf(pipe_in, pipe_in_sz, "%s%s\n",
+pipe_in, wm_node->wm);
+
+while (pipe_written != pipe_in_sz) {
+i = write(fd[1], pipe_in + pipe_written,
+pipe_in_sz - pipe_written);
+
+if (i == -1) {
+err(1, "alt_wm: can't write");
+i = 0; /* try again */
+}
+pipe_written += i;

Re: scrotwm patch to change wm.

2010-03-07 Thread Darrin Chandler
On Sun, Mar 07, 2010 at 10:21:39PM +, Edd Barrett wrote:
> Hi guys,
> 
> I have had this patch sitting around in my $HOME for a while. It allows the 
> user
> to exit scrotwm to another window manager (one of the ones they define in
> ~/.scrotwm.conf) via a dmenu. The idea was taken from cwm.
> 
> What do you think?
> 
> OK to put into scrotwm?

What happens if you are using a different menu program, or have no menu
program installed at all?

I don't like harcoding to dmenu. Aside from that it's a nice idea.


> -- 
> Best Regards
> Edd Barrett
> 
> http://www.theunixzoo.co.uk

> opencvs server: Diffing inside .
> Index: scrotwm.1
> ===============
> RCS file: /scrotwm/scrotwm/scrotwm.1,v
> retrieving revision 1.28
> diff -N -u -p -u scrotwm.1
> --- scrotwm.1 7 Oct 2009 03:19:11 -   1.28
> +++ scrotwm.1 21 Feb 2010 20:19:12 -
> @@ -79,6 +79,8 @@ Enabling or disabling an option is done by using 1 or 
>  The file supports the following keywords:
>  .Pp
>  .Bl -tag -width "title_class_enabledXXX" -offset indent -compact
> +.It Cm alt_wms
> +A comma separated list of alternative window managers for use with 
> exec_alt_wm.
>  .It Cm color_focus
>  Border color of the currently focussed window.
>  .It Cm color_unfocus
> @@ -259,6 +261,8 @@ The default key bindings are described below:
>  term
>  .It Cm M-p
>  menu
> +.It Cm M-r
> +exec_alt_wm
>  .It Cm M-S-q
>  quit
>  .It Cm M-q
> @@ -343,6 +347,8 @@ Menu
>  (see
>  .Sx PROGRAMS
>  above)
> +.It Cm exec_alt_wm
> +Execute an alternative window manager
>  .It Cm quit
>  Quit
>  .Nm
> Index: scrotwm.c
> ===
> RCS file: /scrotwm/scrotwm/scrotwm.c,v
> retrieving revision 1.281
> diff -N -u -p -u scrotwm.c
> --- scrotwm.c 13 Jan 2010 23:22:31 -  1.281
> +++ scrotwm.c 21 Feb 2010 20:19:13 -
> @@ -179,6 +179,7 @@ int   cycle_visible = 0;
>  int  term_width = 0;
>  int  font_adjusted = 0;
>  unsigned int mod_key = MODKEY;
> +int  ret_status = -1; /* store return status of fork/exec */
>  
>  /* dialog windows */
>  double   dialog_ratio = .6;
> @@ -385,6 +386,15 @@ struct quirk {
>  int  quirks_size = 0, quirks_length = 0;
>  struct quirk *quirks = NULL;
>  
> +/* alternative window managers */
> +struct alt_wm {
> + SLIST_ENTRY(alt_wm) entries;
> + char*wm;
> +};
> +SLIST_HEAD(head, alt_wm) alt_wms;
> +void exec_alt_wm();
> +void free_alt_wm_list();
> +
>  /* events */
>  #ifdef SWM_DEBUG
>  void
> @@ -587,7 +597,7 @@ sighdlr(int sig)
>  
>   switch (sig) {
>   case SIGCHLD:
> - while ((pid = waitpid(WAIT_ANY, NULL, WNOHANG)) != -1) {
> + while ((pid = waitpid(WAIT_ANY, &ret_status, WNOHANG)) != -1) {
>   DNPRINTF(SWM_D_MISC, "reaping: %d\n", pid);
>   if (pid <= 0)
>   break;
> @@ -1135,6 +1145,148 @@ restart(struct swm_region *r, union arg *args)
>   quit(NULL, NULL);
>  }
>  
> +/* execute a new window manager */
> +void
> +exec_alt_wm(struct swm_region *r, union arg *args)
> +{
> + int fd[2], fd1[2], pipe_written = 0;
> + int pipe_read = 0, found_choice = 0;
> + int max_wm_len = -1, cur_wm_len;
> + int pipe_in_sz = 0, i, pid;
> + char*new_wm = NULL, *buf = NULL, *pipe_in;
> + struct  alt_wm *wm_node;
> +
> + if (SLIST_EMPTY(&alt_wms))
> + return;
> +
> + if ((pipe(fd) == -1) || (pipe(fd1) == -1))
> + err(1, "exec_alt_wm: pipe fail");
> +
> + if (signal(SIGPIPE, SIG_IGN) == SIG_ERR)
> + err(1, "exec_alt_wm: could not disable SIGPIPE");
> +
> + /* work out how many wms and the longest name */
> + SLIST_FOREACH(wm_node, &alt_wms, entries) {
> + cur_wm_len = strlen(wm_node->wm);
> + pipe_in_sz = pipe_in_sz + cur_wm_len + 1; /* +1 \n */
> + if (max_wm_len < cur_wm_len)
> + max_wm_len = cur_wm_len;
> + }
> + pipe_in_sz ++; /* \0 */
> +
> + pid = fork();
> + switch (pid) {
> + case -1:
> + err(1, "exec_alt_wm: can't fork");
> +  

scrotwm patch to change wm.

2010-03-07 Thread Edd Barrett
Hi guys,

I have had this patch sitting around in my $HOME for a while. It allows the user
to exit scrotwm to another window manager (one of the ones they define in
~/.scrotwm.conf) via a dmenu. The idea was taken from cwm.

What do you think?

OK to put into scrotwm?

-- 
Best Regards
Edd Barrett

http://www.theunixzoo.co.uk
opencvs server: Diffing inside .
Index: scrotwm.1
===
RCS file: /scrotwm/scrotwm/scrotwm.1,v
retrieving revision 1.28
diff -N -u -p -u scrotwm.1
--- scrotwm.1   7 Oct 2009 03:19:11 -   1.28
+++ scrotwm.1   21 Feb 2010 20:19:12 -
@@ -79,6 +79,8 @@ Enabling or disabling an option is done by using 1 or 
 The file supports the following keywords:
 .Pp
 .Bl -tag -width "title_class_enabledXXX" -offset indent -compact
+.It Cm alt_wms
+A comma separated list of alternative window managers for use with exec_alt_wm.
 .It Cm color_focus
 Border color of the currently focussed window.
 .It Cm color_unfocus
@@ -259,6 +261,8 @@ The default key bindings are described below:
 term
 .It Cm M-p
 menu
+.It Cm M-r
+exec_alt_wm
 .It Cm M-S-q
 quit
 .It Cm M-q
@@ -343,6 +347,8 @@ Menu
 (see
 .Sx PROGRAMS
 above)
+.It Cm exec_alt_wm
+Execute an alternative window manager
 .It Cm quit
 Quit
 .Nm
Index: scrotwm.c
===
RCS file: /scrotwm/scrotwm/scrotwm.c,v
retrieving revision 1.281
diff -N -u -p -u scrotwm.c
--- scrotwm.c   13 Jan 2010 23:22:31 -  1.281
+++ scrotwm.c   21 Feb 2010 20:19:13 -
@@ -179,6 +179,7 @@ int cycle_visible = 0;
 intterm_width = 0;
 intfont_adjusted = 0;
 unsigned int   mod_key = MODKEY;
+intret_status = -1; /* store return status of fork/exec */
 
 /* dialog windows */
 double dialog_ratio = .6;
@@ -385,6 +386,15 @@ struct quirk {
 intquirks_size = 0, quirks_length = 0;
 struct quirk   *quirks = NULL;
 
+/* alternative window managers */
+struct alt_wm {
+   SLIST_ENTRY(alt_wm) entries;
+   char*wm;
+};
+SLIST_HEAD(head, alt_wm)   alt_wms;
+void   exec_alt_wm();
+void   free_alt_wm_list();
+
 /* events */
 #ifdef SWM_DEBUG
 void
@@ -587,7 +597,7 @@ sighdlr(int sig)
 
switch (sig) {
case SIGCHLD:
-   while ((pid = waitpid(WAIT_ANY, NULL, WNOHANG)) != -1) {
+   while ((pid = waitpid(WAIT_ANY, &ret_status, WNOHANG)) != -1) {
DNPRINTF(SWM_D_MISC, "reaping: %d\n", pid);
if (pid <= 0)
break;
@@ -1135,6 +1145,148 @@ restart(struct swm_region *r, union arg *args)
quit(NULL, NULL);
 }
 
+/* execute a new window manager */
+void
+exec_alt_wm(struct swm_region *r, union arg *args)
+{
+   int fd[2], fd1[2], pipe_written = 0;
+   int pipe_read = 0, found_choice = 0;
+   int max_wm_len = -1, cur_wm_len;
+   int pipe_in_sz = 0, i, pid;
+   char*new_wm = NULL, *buf = NULL, *pipe_in;
+   struct  alt_wm *wm_node;
+
+   if (SLIST_EMPTY(&alt_wms))
+   return;
+
+   if ((pipe(fd) == -1) || (pipe(fd1) == -1))
+   err(1, "exec_alt_wm: pipe fail");
+
+   if (signal(SIGPIPE, SIG_IGN) == SIG_ERR)
+   err(1, "exec_alt_wm: could not disable SIGPIPE");
+
+   /* work out how many wms and the longest name */
+   SLIST_FOREACH(wm_node, &alt_wms, entries) {
+   cur_wm_len = strlen(wm_node->wm);
+   pipe_in_sz = pipe_in_sz + cur_wm_len + 1; /* +1 \n */
+   if (max_wm_len < cur_wm_len)
+   max_wm_len = cur_wm_len;
+   }
+   pipe_in_sz ++; /* \0 */
+
+   pid = fork();
+   switch (pid) {
+   case -1:
+   err(1, "exec_alt_wm: can't fork");
+   break;
+   case 0: /* we are the child */
+   close(fd1[0]);
+
+   /* build \n delimited records for dmenu */
+   pipe_in = malloc(pipe_in_sz);
+   if (pipe_in == NULL)
+   err(1, "exec_alt_wm: malloc failed\n");
+
+   memset(pipe_in, 0, pipe_in_sz);
+
+   SLIST_FOREACH(wm_node, &alt_wms, entries)
+   snprintf(pipe_in, pipe_in_sz, "%s%s\n",
+   pipe_in, wm_node->wm);
+
+   while (pipe_written != pipe_in_sz) {
+   i = write(fd[1], pipe_in + pipe_written,
+   pipe_in_sz - pipe_written);
+
+   if (i == -1) {
+   err(1, "alt_wm: can't write");

scrotwm 0.9.19

2009-10-24 Thread Marco Peereboom
ok?

diff -ruNp -x CVS ports/x11/scrotwm/Makefile scrotwm-0.9.19-port/Makefile
--- ports/x11/scrotwm/Makefile  Thu Oct 22 17:34:59 2009
+++ scrotwm-0.9.19-port/MakefileSat Oct 24 10:35:19 2009
@@ -1,11 +1,10 @@
-# $OpenBSD: Makefile,v 1.14 2009/10/22 22:34:59 sthen Exp $
+# $OpenBSD: Makefile,v 1.10 2009/09/30 00:54:06 sthen Exp $
 
 COMMENT=   small tiling window manager
 
 SHARED_LIBS=   swmhack 0.0
 
-DISTNAME=  scrotwm-0.9.18
-PKGNAME=   ${DISTNAME}p1
+DISTNAME=  scrotwm-0.9.19
 EXTRACT_SUFX=  .tgz
 CATEGORIES=x11
 
diff -ruNp -x CVS ports/x11/scrotwm/distinfo scrotwm-0.9.19-port/distinfo
--- ports/x11/scrotwm/distinfo  Wed Oct 21 07:37:31 2009
+++ scrotwm-0.9.19-port/distinfoSat Oct 24 10:35:19 2009
@@ -1,5 +1,5 @@
-MD5 (scrotwm-0.9.18.tgz) = mvKebNf9OqgUcaZqEAY0ng==
-RMD160 (scrotwm-0.9.18.tgz) = eoi5nybAiTeVqF/y7roTK9TXFKs=
-SHA1 (scrotwm-0.9.18.tgz) = KiekGypMymwujMcf/LSghWWG8xU=
-SHA256 (scrotwm-0.9.18.tgz) = sKj5eQcDsnuBe33XFBWTHJ30s5nh+7UBQqxKlG3JMFg=
-SIZE (scrotwm-0.9.18.tgz) = 48242
+MD5 (scrotwm-0.9.19.tgz) = p69QOPrH5C6NjPXtLUptog==
+RMD160 (scrotwm-0.9.19.tgz) = AL34uGsK7sVMLBEjhwEXmfeCk1s=
+SHA1 (scrotwm-0.9.19.tgz) = 34JYgsx8zOXCHSoRozG08IOvNOA=
+SHA256 (scrotwm-0.9.19.tgz) = 6hUOrF/nH25cYoS/ubltlPDB4Fs5mNEkIY3oTxxJruE=
+SIZE (scrotwm-0.9.19.tgz) = 48706
diff -ruNp -x CVS ports/x11/scrotwm/patches/patch-scrotwm_c 
scrotwm-0.9.19-port/patches/patch-scrotwm_c
--- ports/x11/scrotwm/patches/patch-scrotwm_c   Tue Oct 13 07:24:42 2009
+++ scrotwm-0.9.19-port/patches/patch-scrotwm_c Sat Oct 24 10:35:19 2009
@@ -1,4 +1,4 @@
-$OpenBSD: patch-scrotwm_c,v 1.8 2009/10/13 12:24:42 sthen Exp $
+$OpenBSD: patch-scrotwm_c,v 1.7 2009/09/30 00:54:06 sthen Exp $
 --- scrotwm.c.orig Wed Sep 23 06:04:09 2009
 +++ scrotwm.c  Fri Sep 25 17:28:03 2009
 @@ -150,7 +150,7 @@ u_int32_t  swm_debug = 0
diff -ruNp -x CVS ports/x11/scrotwm/pkg/PLIST scrotwm-0.9.19-port/pkg/PLIST
--- ports/x11/scrotwm/pkg/PLIST Thu Oct 22 17:34:59 2009
+++ scrotwm-0.9.19-port/pkg/PLIST   Sat Oct 24 10:35:19 2009
@@ -1,4 +1,4 @@
-...@comment $OpenBSD: PLIST,v 1.4 2009/10/22 22:34:59 sthen Exp $
+...@comment $OpenBSD: PLIST,v 1.2 2009/10/13 12:24:42 sthen Exp $
 %%SHARED%%
 @bin bin/scrotwm
 @man man/cat1/scrotwm.0



scrotwm 0.9.18

2009-10-20 Thread Marco Peereboom
Fixes all (I think) use after free.  I'd like to get this in so please
test.

diff -ruNp -x CVS ports/x11/scrotwm/Makefile scrotwm-0.9.18-port/Makefile
--- ports/x11/scrotwm/Makefile  Tue Oct 13 07:24:42 2009
+++ scrotwm-0.9.18-port/MakefileTue Oct 20 18:31:28 2009
@@ -1,15 +1,15 @@
-# $OpenBSD: Makefile,v 1.11 2009/10/13 12:24:42 sthen Exp $
+# $OpenBSD: Makefile,v 1.10 2009/09/30 00:54:06 sthen Exp $
 
 COMMENT=   small tiling window manager
 
 SHARED_LIBS=   swmhack 0.0
 
-DISTNAME=  scrotwm-0.9.14
+DISTNAME=  scrotwm-0.9.18
 EXTRACT_SUFX=  .tgz
 CATEGORIES=x11
 
 HOMEPAGE=  http://www.scrotwm.org/
-MAINTAINER=Pierre-Yves Ritschard 
+MAINTAINER=Marco Peereboom 
 
 # BSD
 PERMIT_PACKAGE_CDROM=   Yes
diff -ruNp -x CVS ports/x11/scrotwm/distinfo scrotwm-0.9.18-port/distinfo
--- ports/x11/scrotwm/distinfo  Tue Oct 13 07:24:42 2009
+++ scrotwm-0.9.18-port/distinfoTue Oct 20 18:31:28 2009
@@ -1,5 +1,5 @@
-MD5 (scrotwm-0.9.14.tgz) = MK8dmLLK3G0O8nnfE6b66g==
-RMD160 (scrotwm-0.9.14.tgz) = 1VOaqcCxoYAhIqQHNU/qd82DbZo=
-SHA1 (scrotwm-0.9.14.tgz) = 5dO92AfnCIrb+4j+kXpKiNhHlTQ=
-SHA256 (scrotwm-0.9.14.tgz) = Iw4Pjvg+iaX7/lTTyMHFIrFg1tExVyN/iVvXKJEkIlw=
-SIZE (scrotwm-0.9.14.tgz) = 47942
+MD5 (scrotwm-0.9.18.tgz) = mvKebNf9OqgUcaZqEAY0ng==
+RMD160 (scrotwm-0.9.18.tgz) = eoi5nybAiTeVqF/y7roTK9TXFKs=
+SHA1 (scrotwm-0.9.18.tgz) = KiekGypMymwujMcf/LSghWWG8xU=
+SHA256 (scrotwm-0.9.18.tgz) = sKj5eQcDsnuBe33XFBWTHJ30s5nh+7UBQqxKlG3JMFg=
+SIZE (scrotwm-0.9.18.tgz) = 48242
diff -ruNp -x CVS ports/x11/scrotwm/patches/patch-scrotwm_c 
scrotwm-0.9.18-port/patches/patch-scrotwm_c
--- ports/x11/scrotwm/patches/patch-scrotwm_c   Tue Oct 13 07:24:42 2009
+++ scrotwm-0.9.18-port/patches/patch-scrotwm_c Tue Oct 20 18:31:28 2009
@@ -1,4 +1,4 @@
-$OpenBSD: patch-scrotwm_c,v 1.8 2009/10/13 12:24:42 sthen Exp $
+$OpenBSD: patch-scrotwm_c,v 1.7 2009/09/30 00:54:06 sthen Exp $
 --- scrotwm.c.orig Wed Sep 23 06:04:09 2009
 +++ scrotwm.c  Fri Sep 25 17:28:03 2009
 @@ -150,7 +150,7 @@ u_int32_t  swm_debug = 0



Re: scrotwm 0.9.12

2009-10-15 Thread Marco Peereboom
No more use aftter free...

Please test.

diff -ruNp -x CVS ports/x11/scrotwm/Makefile scrotwm-0.9.17-port/Makefile
--- ports/x11/scrotwm/Makefile  Tue Oct 13 07:24:42 2009
+++ scrotwm-0.9.17-port/MakefileFri Oct 16 00:23:18 2009
@@ -1,15 +1,15 @@
-# $OpenBSD: Makefile,v 1.11 2009/10/13 12:24:42 sthen Exp $
+# $OpenBSD: Makefile,v 1.10 2009/09/30 00:54:06 sthen Exp $
 
 COMMENT=   small tiling window manager
 
 SHARED_LIBS=   swmhack 0.0
 
-DISTNAME=  scrotwm-0.9.14
+DISTNAME=  scrotwm-0.9.17
 EXTRACT_SUFX=  .tgz
 CATEGORIES=x11
 
 HOMEPAGE=  http://www.scrotwm.org/
-MAINTAINER=Pierre-Yves Ritschard 
+MAINTAINER=Marco Peereboom 
 
 # BSD
 PERMIT_PACKAGE_CDROM=   Yes
diff -ruNp -x CVS ports/x11/scrotwm/distinfo scrotwm-0.9.17-port/distinfo
--- ports/x11/scrotwm/distinfo  Tue Oct 13 07:24:42 2009
+++ scrotwm-0.9.17-port/distinfoFri Oct 16 00:23:18 2009
@@ -1,5 +1,5 @@
-MD5 (scrotwm-0.9.14.tgz) = MK8dmLLK3G0O8nnfE6b66g==
-RMD160 (scrotwm-0.9.14.tgz) = 1VOaqcCxoYAhIqQHNU/qd82DbZo=
-SHA1 (scrotwm-0.9.14.tgz) = 5dO92AfnCIrb+4j+kXpKiNhHlTQ=
-SHA256 (scrotwm-0.9.14.tgz) = Iw4Pjvg+iaX7/lTTyMHFIrFg1tExVyN/iVvXKJEkIlw=
-SIZE (scrotwm-0.9.14.tgz) = 47942
+MD5 (scrotwm-0.9.17.tgz) = fuZmPr4LahjCxn35TzfSBQ==
+RMD160 (scrotwm-0.9.17.tgz) = b2zNKUT49jrb/reE5Su74+GmKIQ=
+SHA1 (scrotwm-0.9.17.tgz) = 65AGFhUebR8xTPVw/BGVQW+k2LI=
+SHA256 (scrotwm-0.9.17.tgz) = OpiGkaVcBIYSGrOCO6mcQqaAfQhLwnnDapqiMW+na2Q=
+SIZE (scrotwm-0.9.17.tgz) = 48052
diff -ruNp -x CVS ports/x11/scrotwm/patches/patch-scrotwm_c 
scrotwm-0.9.17-port/patches/patch-scrotwm_c
--- ports/x11/scrotwm/patches/patch-scrotwm_c   Tue Oct 13 07:24:42 2009
+++ scrotwm-0.9.17-port/patches/patch-scrotwm_c Fri Oct 16 00:23:18 2009
@@ -1,4 +1,4 @@
-$OpenBSD: patch-scrotwm_c,v 1.8 2009/10/13 12:24:42 sthen Exp $
+$OpenBSD: patch-scrotwm_c,v 1.7 2009/09/30 00:54:06 sthen Exp $
 --- scrotwm.c.orig Wed Sep 23 06:04:09 2009
 +++ scrotwm.c  Fri Sep 25 17:28:03 2009
 @@ -150,7 +150,7 @@ u_int32_t  swm_debug = 0



Re: scrotwm 0.9.12

2009-10-13 Thread Marco Peereboom
If it works just get it in.  Make that bug go away.

On Tue, Oct 13, 2009 at 11:47:20AM +0100, Stuart Henderson wrote:
> On 2009/10/13 11:24, Federico G. Schwindt wrote:
> > On Tue, Oct 13, 2009 at 11:01:57AM +0100, Stuart Henderson wrote:
> > > On 2009/10/12 22:35, Marco Peereboom wrote:
> > > > Ok this port works well for me.  0.9.14 contains important bug fixes so
> > > > it needs to get in quickish.
> > > > 
> > > > ok?
> > > 
> > > not really, the @sample line from PLIST should stay there.
> > > this is better, but someone who uses it regularly should test.
> > 
> >   i thought the man pages for other languages should be moved too?!
> 
> i was going to wait for that to be fixed in the scrotwm release, but
> it's no problem to do that here.
> 
> Index: Makefile
> ===
> RCS file: /cvs/ports/x11/scrotwm/Makefile,v
> retrieving revision 1.10
> diff -u -p -r1.10 Makefile
> --- Makefile  30 Sep 2009 00:54:06 -  1.10
> +++ Makefile  13 Oct 2009 10:46:49 -
> @@ -4,7 +4,7 @@ COMMENT=      small tiling window manager
>  
>  SHARED_LIBS= swmhack 0.0
>  
> -DISTNAME=scrotwm-0.9.8
> +DISTNAME=scrotwm-0.9.14
>  EXTRACT_SUFX=.tgz
>  CATEGORIES=  x11
>  
> @@ -33,10 +33,14 @@ pre-configure:
>   @${SUBST_CMD} ${WRKSRC}/scrotwm.conf ${WRKSRC}/scrotwm.c
>  
>  post-install:
> - ${INSTALL_DATA_DIR} ${PREFIX}/share/scrotwm
>   ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/scrotwm
> - ${INSTALL_SCRIPT} ${WRKSRC}/baraction.sh ${PREFIX}/share/scrotwm
> - ${INSTALL_SCRIPT} ${WRKSRC}/screenshot.sh ${PREFIX}/share/scrotwm
> + ${INSTALL_SCRIPT} ${WRKSRC}/baraction.sh 
> ${PREFIX}/share/examples/scrotwm
> + ${INSTALL_SCRIPT} ${WRKSRC}/initscreen.sh 
> ${PREFIX}/share/examples/scrotwm
> + ${INSTALL_SCRIPT} ${WRKSRC}/screenshot.sh 
> ${PREFIX}/share/examples/scrotwm
>   ${INSTALL_DATA} ${WRKSRC}/scrotwm.conf ${PREFIX}/share/examples/scrotwm
> +.for i in es it
> + ${INSTALL_DATA_DIR} ${PREFIX}/man/$i/cat1
> + mv ${PREFIX}/man/cat1/scrotwm_$i.0 ${PREFIX}/man/$i/cat1/scrotwm.0
> +.endfor
>  
>  .include 
> Index: distinfo
> =======
> RCS file: /cvs/ports/x11/scrotwm/distinfo,v
> retrieving revision 1.8
> diff -u -p -r1.8 distinfo
> --- distinfo  30 Sep 2009 00:54:06 -  1.8
> +++ distinfo  13 Oct 2009 10:46:49 -
> @@ -1,5 +1,5 @@
> -MD5 (scrotwm-0.9.8.tgz) = YGhKg1vwJRZLFyeg2QXdpg==
> -RMD160 (scrotwm-0.9.8.tgz) = N/de4GcK6TUb+JlIsyW8j1L9QP8=
> -SHA1 (scrotwm-0.9.8.tgz) = dVH++mSLCHXnY128QwNvJYnttTg=
> -SHA256 (scrotwm-0.9.8.tgz) = uLI4CktyhZMvKdsdQ+VZ/bpwS+6Eb4bgri+y2od5IEw=
> -SIZE (scrotwm-0.9.8.tgz) = 38863
> +MD5 (scrotwm-0.9.14.tgz) = MK8dmLLK3G0O8nnfE6b66g==
> +RMD160 (scrotwm-0.9.14.tgz) = 1VOaqcCxoYAhIqQHNU/qd82DbZo=
> +SHA1 (scrotwm-0.9.14.tgz) = 5dO92AfnCIrb+4j+kXpKiNhHlTQ=
> +SHA256 (scrotwm-0.9.14.tgz) = Iw4Pjvg+iaX7/lTTyMHFIrFg1tExVyN/iVvXKJEkIlw=
> +SIZE (scrotwm-0.9.14.tgz) = 47942
> Index: patches/patch-scrotwm_c
> ===
> RCS file: /cvs/ports/x11/scrotwm/patches/patch-scrotwm_c,v
> retrieving revision 1.7
> diff -u -p -r1.7 patch-scrotwm_c
> --- patches/patch-scrotwm_c   30 Sep 2009 00:54:06 -  1.7
> +++ patches/patch-scrotwm_c   13 Oct 2009 10:46:49 -
> @@ -1,7 +1,7 @@
>  $OpenBSD: patch-scrotwm_c,v 1.7 2009/09/30 00:54:06 sthen Exp $
>  --- scrotwm.c.orig   Wed Sep 23 06:04:09 2009
>  +++ scrotwm.cFri Sep 25 17:28:03 2009
> -@@ -146,7 +146,7 @@ u_int32_tswm_debug = 0
> +@@ -150,7 +150,7 @@ u_int32_tswm_debug = 0
>   #define SWM_MAX_FONT_STEPS  (3)
>   
>   #ifndef SWM_LIB
> Index: patches/patch-scrotwm_conf
> ===
> RCS file: /cvs/ports/x11/scrotwm/patches/patch-scrotwm_conf,v
> retrieving revision 1.4
> diff -u -p -r1.4 patch-scrotwm_conf
> --- patches/patch-scrotwm_conf25 Sep 2009 19:26:30 -  1.4
> +++ patches/patch-scrotwm_conf13 Oct 2009 10:46:49 -
> @@ -1,6 +1,5 @@
> -$OpenBSD: patch-scrotwm_conf,v 1.4 2009/09/25 19:26:30 sthen Exp $
>  scrotwm.conf.origWed Sep 23 06:04:09 2009
> -+++ scrotwm.conf Fri Sep 25 17:29:15 2009
> +--- scrotwm.conf.origWed Oct  7 10:15:33 2009
>  scrotwm.conf Wed Oct  7 10:17:10 2009
>  @@ -10,7 +10,7 @@ bar_border[1]  = rgb:00/80/80
>   bar_color[1]= black
>   bar_font_color[1]   = rgb:a0/a0/a0

Re: scrotwm 0.9.12

2009-10-13 Thread Stuart Henderson
On 2009/10/13 11:24, Federico G. Schwindt wrote:
> On Tue, Oct 13, 2009 at 11:01:57AM +0100, Stuart Henderson wrote:
> > On 2009/10/12 22:35, Marco Peereboom wrote:
> > > Ok this port works well for me.  0.9.14 contains important bug fixes so
> > > it needs to get in quickish.
> > > 
> > > ok?
> > 
> > not really, the @sample line from PLIST should stay there.
> > this is better, but someone who uses it regularly should test.
> 
>   i thought the man pages for other languages should be moved too?!

i was going to wait for that to be fixed in the scrotwm release, but
it's no problem to do that here.

Index: Makefile
=======
RCS file: /cvs/ports/x11/scrotwm/Makefile,v
retrieving revision 1.10
diff -u -p -r1.10 Makefile
--- Makefile30 Sep 2009 00:54:06 -  1.10
+++ Makefile13 Oct 2009 10:46:49 -
@@ -4,7 +4,7 @@ COMMENT=small tiling window manager
 
 SHARED_LIBS=   swmhack 0.0
 
-DISTNAME=  scrotwm-0.9.8
+DISTNAME=  scrotwm-0.9.14
 EXTRACT_SUFX=  .tgz
 CATEGORIES=x11
 
@@ -33,10 +33,14 @@ pre-configure:
@${SUBST_CMD} ${WRKSRC}/scrotwm.conf ${WRKSRC}/scrotwm.c
 
 post-install:
-   ${INSTALL_DATA_DIR} ${PREFIX}/share/scrotwm
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/scrotwm
-   ${INSTALL_SCRIPT} ${WRKSRC}/baraction.sh ${PREFIX}/share/scrotwm
-   ${INSTALL_SCRIPT} ${WRKSRC}/screenshot.sh ${PREFIX}/share/scrotwm
+   ${INSTALL_SCRIPT} ${WRKSRC}/baraction.sh 
${PREFIX}/share/examples/scrotwm
+   ${INSTALL_SCRIPT} ${WRKSRC}/initscreen.sh 
${PREFIX}/share/examples/scrotwm
+   ${INSTALL_SCRIPT} ${WRKSRC}/screenshot.sh 
${PREFIX}/share/examples/scrotwm
    ${INSTALL_DATA} ${WRKSRC}/scrotwm.conf ${PREFIX}/share/examples/scrotwm
+.for i in es it
+   ${INSTALL_DATA_DIR} ${PREFIX}/man/$i/cat1
+   mv ${PREFIX}/man/cat1/scrotwm_$i.0 ${PREFIX}/man/$i/cat1/scrotwm.0
+.endfor
 
 .include 
Index: distinfo
=======
RCS file: /cvs/ports/x11/scrotwm/distinfo,v
retrieving revision 1.8
diff -u -p -r1.8 distinfo
--- distinfo30 Sep 2009 00:54:06 -  1.8
+++ distinfo13 Oct 2009 10:46:49 -
@@ -1,5 +1,5 @@
-MD5 (scrotwm-0.9.8.tgz) = YGhKg1vwJRZLFyeg2QXdpg==
-RMD160 (scrotwm-0.9.8.tgz) = N/de4GcK6TUb+JlIsyW8j1L9QP8=
-SHA1 (scrotwm-0.9.8.tgz) = dVH++mSLCHXnY128QwNvJYnttTg=
-SHA256 (scrotwm-0.9.8.tgz) = uLI4CktyhZMvKdsdQ+VZ/bpwS+6Eb4bgri+y2od5IEw=
-SIZE (scrotwm-0.9.8.tgz) = 38863
+MD5 (scrotwm-0.9.14.tgz) = MK8dmLLK3G0O8nnfE6b66g==
+RMD160 (scrotwm-0.9.14.tgz) = 1VOaqcCxoYAhIqQHNU/qd82DbZo=
+SHA1 (scrotwm-0.9.14.tgz) = 5dO92AfnCIrb+4j+kXpKiNhHlTQ=
+SHA256 (scrotwm-0.9.14.tgz) = Iw4Pjvg+iaX7/lTTyMHFIrFg1tExVyN/iVvXKJEkIlw=
+SIZE (scrotwm-0.9.14.tgz) = 47942
Index: patches/patch-scrotwm_c
=======
RCS file: /cvs/ports/x11/scrotwm/patches/patch-scrotwm_c,v
retrieving revision 1.7
diff -u -p -r1.7 patch-scrotwm_c
--- patches/patch-scrotwm_c 30 Sep 2009 00:54:06 -  1.7
+++ patches/patch-scrotwm_c 13 Oct 2009 10:46:49 -
@@ -1,7 +1,7 @@
 $OpenBSD: patch-scrotwm_c,v 1.7 2009/09/30 00:54:06 sthen Exp $
 --- scrotwm.c.orig Wed Sep 23 06:04:09 2009
 +++ scrotwm.c  Fri Sep 25 17:28:03 2009
-@@ -146,7 +146,7 @@ u_int32_t  swm_debug = 0
+@@ -150,7 +150,7 @@ u_int32_t  swm_debug = 0
  #define SWM_MAX_FONT_STEPS(3)
  
  #ifndef SWM_LIB
Index: patches/patch-scrotwm_conf
=======
RCS file: /cvs/ports/x11/scrotwm/patches/patch-scrotwm_conf,v
retrieving revision 1.4
diff -u -p -r1.4 patch-scrotwm_conf
--- patches/patch-scrotwm_conf  25 Sep 2009 19:26:30 -  1.4
+++ patches/patch-scrotwm_conf  13 Oct 2009 10:46:49 -
@@ -1,6 +1,5 @@
-$OpenBSD: patch-scrotwm_conf,v 1.4 2009/09/25 19:26:30 sthen Exp $
 scrotwm.conf.orig  Wed Sep 23 06:04:09 2009
-+++ scrotwm.conf   Fri Sep 25 17:29:15 2009
+--- scrotwm.conf.orig  Wed Oct  7 10:15:33 2009
 scrotwm.conf   Wed Oct  7 10:17:10 2009
 @@ -10,7 +10,7 @@ bar_border[1]= rgb:00/80/80
  bar_color[1]  = black
  bar_font_color[1] = rgb:a0/a0/a0
@@ -8,9 +7,9 @@ $OpenBSD: patch-scrotwm_conf,v 1.4 2009/
 -#bar_action   = baraction.sh
 +#bar_action   = ${PREFIX}/share/scrotwm/baraction.sh
  #bar_delay= 1
+ stack_enabled = 1
  clock_enabled = 1
- title_name_enabled= 0
-@@ -18,8 +18,8 @@ title_class_enabled  = 0
+@@ -19,10 +19,10 @@ title_class_enabled= 0
  
  # spawn app
  # program[term]   = xterm
@@ -19,5 +18,8 @@ $OpenBSD: patch-scrotwm_conf,v 1.4 2009/
 +# program[screenshot_all] = ${PREFIX}/share/scrotwm/screenshot.sh full
 +# program[screenshot_wind]= ${PREFIX}/share/scrotwm/screen

Re: scrotwm 0.9.12

2009-10-13 Thread Federico G. Schwindt
On Tue, Oct 13, 2009 at 11:01:57AM +0100, Stuart Henderson wrote:
> On 2009/10/12 22:35, Marco Peereboom wrote:
> > Ok this port works well for me.  0.9.14 contains important bug fixes so
> > it needs to get in quickish.
> > 
> > ok?
> 
> not really, the @sample line from PLIST should stay there.
> this is better, but someone who uses it regularly should test.

  i thought the man pages for other languages should be moved too?!

  f.-



Re: scrotwm 0.9.12

2009-10-13 Thread Stuart Henderson
On 2009/10/12 22:35, Marco Peereboom wrote:
> Ok this port works well for me.  0.9.14 contains important bug fixes so
> it needs to get in quickish.
> 
> ok?

not really, the @sample line from PLIST should stay there.
this is better, but someone who uses it regularly should test.

Index: Makefile
===
RCS file: /cvs/ports/x11/scrotwm/Makefile,v
retrieving revision 1.10
diff -u -p -r1.10 Makefile
--- Makefile30 Sep 2009 00:54:06 -  1.10
+++ Makefile13 Oct 2009 09:56:50 -
@@ -4,7 +4,7 @@ COMMENT=small tiling window manager
 
 SHARED_LIBS=   swmhack 0.0
 
-DISTNAME=      scrotwm-0.9.8
+DISTNAME=      scrotwm-0.9.14
 EXTRACT_SUFX=  .tgz
 CATEGORIES=x11
 
@@ -33,10 +33,10 @@ pre-configure:
@${SUBST_CMD} ${WRKSRC}/scrotwm.conf ${WRKSRC}/scrotwm.c
 
 post-install:
-   ${INSTALL_DATA_DIR} ${PREFIX}/share/scrotwm
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/scrotwm
-   ${INSTALL_SCRIPT} ${WRKSRC}/baraction.sh ${PREFIX}/share/scrotwm
-   ${INSTALL_SCRIPT} ${WRKSRC}/screenshot.sh ${PREFIX}/share/scrotwm
+   ${INSTALL_SCRIPT} ${WRKSRC}/baraction.sh 
${PREFIX}/share/examples/scrotwm
+   ${INSTALL_SCRIPT} ${WRKSRC}/initscreen.sh 
${PREFIX}/share/examples/scrotwm
+   ${INSTALL_SCRIPT} ${WRKSRC}/screenshot.sh 
${PREFIX}/share/examples/scrotwm
${INSTALL_DATA} ${WRKSRC}/scrotwm.conf ${PREFIX}/share/examples/scrotwm
 
 .include 
Index: distinfo
===
RCS file: /cvs/ports/x11/scrotwm/distinfo,v
retrieving revision 1.8
diff -u -p -r1.8 distinfo
--- distinfo30 Sep 2009 00:54:06 -  1.8
+++ distinfo13 Oct 2009 09:56:50 -
@@ -1,5 +1,5 @@
-MD5 (scrotwm-0.9.8.tgz) = YGhKg1vwJRZLFyeg2QXdpg==
-RMD160 (scrotwm-0.9.8.tgz) = N/de4GcK6TUb+JlIsyW8j1L9QP8=
-SHA1 (scrotwm-0.9.8.tgz) = dVH++mSLCHXnY128QwNvJYnttTg=
-SHA256 (scrotwm-0.9.8.tgz) = uLI4CktyhZMvKdsdQ+VZ/bpwS+6Eb4bgri+y2od5IEw=
-SIZE (scrotwm-0.9.8.tgz) = 38863
+MD5 (scrotwm-0.9.14.tgz) = MK8dmLLK3G0O8nnfE6b66g==
+RMD160 (scrotwm-0.9.14.tgz) = 1VOaqcCxoYAhIqQHNU/qd82DbZo=
+SHA1 (scrotwm-0.9.14.tgz) = 5dO92AfnCIrb+4j+kXpKiNhHlTQ=
+SHA256 (scrotwm-0.9.14.tgz) = Iw4Pjvg+iaX7/lTTyMHFIrFg1tExVyN/iVvXKJEkIlw=
+SIZE (scrotwm-0.9.14.tgz) = 47942
Index: patches/patch-scrotwm_c
===
RCS file: /cvs/ports/x11/scrotwm/patches/patch-scrotwm_c,v
retrieving revision 1.7
diff -u -p -r1.7 patch-scrotwm_c
--- patches/patch-scrotwm_c 30 Sep 2009 00:54:06 -  1.7
+++ patches/patch-scrotwm_c 13 Oct 2009 09:56:50 -
@@ -1,7 +1,7 @@
 $OpenBSD: patch-scrotwm_c,v 1.7 2009/09/30 00:54:06 sthen Exp $
 --- scrotwm.c.orig Wed Sep 23 06:04:09 2009
 +++ scrotwm.c  Fri Sep 25 17:28:03 2009
-@@ -146,7 +146,7 @@ u_int32_t  swm_debug = 0
+@@ -150,7 +150,7 @@ u_int32_t  swm_debug = 0
  #define SWM_MAX_FONT_STEPS(3)
  
  #ifndef SWM_LIB
Index: patches/patch-scrotwm_conf
===
RCS file: /cvs/ports/x11/scrotwm/patches/patch-scrotwm_conf,v
retrieving revision 1.4
diff -u -p -r1.4 patch-scrotwm_conf
--- patches/patch-scrotwm_conf  25 Sep 2009 19:26:30 -  1.4
+++ patches/patch-scrotwm_conf  13 Oct 2009 09:56:50 -
@@ -1,6 +1,5 @@
-$OpenBSD: patch-scrotwm_conf,v 1.4 2009/09/25 19:26:30 sthen Exp $
 scrotwm.conf.orig  Wed Sep 23 06:04:09 2009
-+++ scrotwm.conf   Fri Sep 25 17:29:15 2009
+--- scrotwm.conf.orig  Wed Oct  7 10:15:33 2009
 scrotwm.conf   Wed Oct  7 10:17:10 2009
 @@ -10,7 +10,7 @@ bar_border[1]= rgb:00/80/80
  bar_color[1]  = black
  bar_font_color[1] = rgb:a0/a0/a0
@@ -8,9 +7,9 @@ $OpenBSD: patch-scrotwm_conf,v 1.4 2009/
 -#bar_action   = baraction.sh
 +#bar_action   = ${PREFIX}/share/scrotwm/baraction.sh
  #bar_delay= 1
+ stack_enabled = 1
  clock_enabled = 1
- title_name_enabled= 0
-@@ -18,8 +18,8 @@ title_class_enabled  = 0
+@@ -19,10 +19,10 @@ title_class_enabled= 0
  
  # spawn app
  # program[term]   = xterm
@@ -19,5 +18,8 @@ $OpenBSD: patch-scrotwm_conf,v 1.4 2009/
 +# program[screenshot_all] = ${PREFIX}/share/scrotwm/screenshot.sh full
 +# program[screenshot_wind]= ${PREFIX}/share/scrotwm/screenshot.sh window
  # program[lock]   = xlock
- # program[initscr]= initscreen.sh
+-# program[initscr]= initscreen.sh
++# program[initscr]= ${PREFIX}/share/scrotwm/initscreen.sh
  # program[menu]   = dmenu_run -fn $bar_font -nb $bar_color -nf 
$bar_font_color -sb $bar_border -sf $bar_color
+ spawn_term= xterm
+ 
Index: pkg/PLIST
===
RCS file: /cvs/ports/x11/scrotwm/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
-

Re: scrotwm 0.9.12

2009-10-12 Thread Marco Peereboom
Ok this port works well for me.  0.9.14 contains important bug fixes so
it needs to get in quickish.

ok?

diff -ruNp -x CVS ports/x11/scrotwm/Makefile scrotwm-0.9.14-port/Makefile
--- ports/x11/scrotwm/Makefile  Tue Sep 29 19:54:06 2009
+++ scrotwm-0.9.14-port/MakefileMon Oct 12 22:29:08 2009
@@ -4,7 +4,7 @@ COMMENT=small tiling window manager
 
 SHARED_LIBS=   swmhack 0.0
 
-DISTNAME=  scrotwm-0.9.8
+DISTNAME=  scrotwm-0.9.14
 EXTRACT_SUFX=  .tgz
 CATEGORIES=x11
 
@@ -36,6 +36,7 @@ post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/scrotwm
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/scrotwm
${INSTALL_SCRIPT} ${WRKSRC}/baraction.sh ${PREFIX}/share/scrotwm
+   ${INSTALL_SCRIPT} ${WRKSRC}/initscreen.sh ${PREFIX}/share/scrotwm
${INSTALL_SCRIPT} ${WRKSRC}/screenshot.sh ${PREFIX}/share/scrotwm
${INSTALL_DATA} ${WRKSRC}/scrotwm.conf ${PREFIX}/share/examples/scrotwm
 
diff -ruNp -x CVS ports/x11/scrotwm/distinfo scrotwm-0.9.14-port/distinfo
--- ports/x11/scrotwm/distinfo  Tue Sep 29 19:54:06 2009
+++ scrotwm-0.9.14-port/distinfoMon Oct 12 22:29:08 2009
@@ -1,5 +1,5 @@
-MD5 (scrotwm-0.9.8.tgz) = YGhKg1vwJRZLFyeg2QXdpg==
-RMD160 (scrotwm-0.9.8.tgz) = N/de4GcK6TUb+JlIsyW8j1L9QP8=
-SHA1 (scrotwm-0.9.8.tgz) = dVH++mSLCHXnY128QwNvJYnttTg=
-SHA256 (scrotwm-0.9.8.tgz) = uLI4CktyhZMvKdsdQ+VZ/bpwS+6Eb4bgri+y2od5IEw=
-SIZE (scrotwm-0.9.8.tgz) = 38863
+MD5 (scrotwm-0.9.14.tgz) = MK8dmLLK3G0O8nnfE6b66g==
+RMD160 (scrotwm-0.9.14.tgz) = 1VOaqcCxoYAhIqQHNU/qd82DbZo=
+SHA1 (scrotwm-0.9.14.tgz) = 5dO92AfnCIrb+4j+kXpKiNhHlTQ=
+SHA256 (scrotwm-0.9.14.tgz) = Iw4Pjvg+iaX7/lTTyMHFIrFg1tExVyN/iVvXKJEkIlw=
+SIZE (scrotwm-0.9.14.tgz) = 47942
diff -ruNp -x CVS ports/x11/scrotwm/patches/patch-scrotwm_c 
scrotwm-0.9.14-port/patches/patch-scrotwm_c
--- ports/x11/scrotwm/patches/patch-scrotwm_c   Tue Sep 29 19:54:06 2009
+++ scrotwm-0.9.14-port/patches/patch-scrotwm_c Mon Oct 12 22:29:08 2009
@@ -1,7 +1,7 @@
 $OpenBSD: patch-scrotwm_c,v 1.7 2009/09/30 00:54:06 sthen Exp $
 --- scrotwm.c.orig Wed Sep 23 06:04:09 2009
 +++ scrotwm.c  Fri Sep 25 17:28:03 2009
-@@ -146,7 +146,7 @@ u_int32_t  swm_debug = 0
+@@ -150,7 +150,7 @@ u_int32_t  swm_debug = 0
  #define SWM_MAX_FONT_STEPS(3)
  
  #ifndef SWM_LIB
diff -ruNp -x CVS ports/x11/scrotwm/patches/patch-scrotwm_conf 
scrotwm-0.9.14-port/patches/patch-scrotwm_conf
--- ports/x11/scrotwm/patches/patch-scrotwm_confFri Sep 25 14:26:30 2009
+++ scrotwm-0.9.14-port/patches/patch-scrotwm_conf  Mon Oct 12 22:29:08 2009
@@ -1,6 +1,5 @@
-$OpenBSD: patch-scrotwm_conf,v 1.4 2009/09/25 19:26:30 sthen Exp $
 scrotwm.conf.orig  Wed Sep 23 06:04:09 2009
-+++ scrotwm.conf   Fri Sep 25 17:29:15 2009
+--- scrotwm.conf.orig  Wed Oct  7 10:15:33 2009
 scrotwm.conf   Wed Oct  7 10:17:10 2009
 @@ -10,7 +10,7 @@ bar_border[1]= rgb:00/80/80
  bar_color[1]  = black
  bar_font_color[1] = rgb:a0/a0/a0
@@ -8,9 +7,9 @@ $OpenBSD: patch-scrotwm_conf,v 1.4 2009/09/25 19:26:30
 -#bar_action   = baraction.sh
 +#bar_action   = ${PREFIX}/share/scrotwm/baraction.sh
  #bar_delay= 1
+ stack_enabled = 1
  clock_enabled = 1
- title_name_enabled= 0
-@@ -18,8 +18,8 @@ title_class_enabled  = 0
+@@ -19,10 +19,10 @@ title_class_enabled= 0
  
  # spawn app
  # program[term]   = xterm
@@ -19,5 +18,8 @@ $OpenBSD: patch-scrotwm_conf,v 1.4 2009/09/25 19:26:30
 +# program[screenshot_all] = ${PREFIX}/share/scrotwm/screenshot.sh full
 +# program[screenshot_wind]= ${PREFIX}/share/scrotwm/screenshot.sh window
  # program[lock]   = xlock
- # program[initscr]= initscreen.sh
+-# program[initscr]= initscreen.sh
++# program[initscr]= ${PREFIX}/share/scrotwm/initscreen.sh
  # program[menu]   = dmenu_run -fn $bar_font -nb $bar_color -nf 
$bar_font_color -sb $bar_border -sf $bar_color
+ spawn_term= xterm
+ 
diff -ruNp -x CVS ports/x11/scrotwm/pkg/PLIST scrotwm-0.9.14-port/pkg/PLIST
--- ports/x11/scrotwm/pkg/PLIST Wed Jan 28 07:20:23 2009
+++ scrotwm-0.9.14-port/pkg/PLIST   Mon Oct 12 22:29:08 2009
@@ -1,10 +1,12 @@
-...@comment $OpenBSD: PLIST,v 1.1.1.1 2009/01/28 13:20:23 pyr Exp $
+...@comment $OpenBSD$
 %%SHARED%%
 @bin bin/scrotwm
 @man man/cat1/scrotwm.0
+...@man man/cat1/scrotwm_es.0
+...@man man/cat1/scrotwm_it.0
 share/examples/scrotwm/
 share/examples/scrotwm/scrotwm.conf
-...@sample ${SYSCONFDIR}/scrotwm.conf
 share/scrotwm/
 share/scrotwm/baraction.sh
+share/scrotwm/initscreen.sh
 share/scrotwm/screenshot.sh



Re: scrotwm 0.9.12

2009-10-11 Thread Stuart Henderson
On 2009/10/10 20:55, Marco Peereboom wrote:
> How about this?

> +...@man man/cat1/scrotwm_es.0
> +...@man man/cat1/scrotwm_it.0

the standard way to install manpages in languages other than english
is to put them in a different directory, e.g. /usr/local/man/es/cat1.
but I think that should probably be done in the main distribution
(it probably affects users of other OS more) rather than the port
so I've left it alone for now.

>   ${INSTALL_SCRIPT} ${WRKSRC}/baraction.sh ${PREFIX}/share/scrotwm
> + ${INSTALL_SCRIPT} ${WRKSRC}/initscreen.sh ${PREFIX}/share/scrotwm
>   ${INSTALL_SCRIPT} ${WRKSRC}/screenshot.sh ${PREFIX}/share/scrotwm

these could be installed in share/examples/scrotwm and use the @sample
mechanism in PLIST to put a copy in share/scrotwm, that way if people
edit them, they don't end up with conflicts when they upgrade.

I've just committed a change to makewhatis for the "Can't parse [...]
(not a manpage ?)" errors you were seeing. here's an updated diff for
the @sample handling.

Index: Makefile
===
RCS file: /cvs/ports/x11/scrotwm/Makefile,v
retrieving revision 1.10
diff -u -p -r1.10 Makefile
--- Makefile30 Sep 2009 00:54:06 -  1.10
+++ Makefile11 Oct 2009 08:31:38 -
@@ -4,7 +4,7 @@ COMMENT=small tiling window manager
 
 SHARED_LIBS=   swmhack 0.0
 
-DISTNAME=  scrotwm-0.9.8
+DISTNAME=  scrotwm-0.9.12
 EXTRACT_SUFX=  .tgz
 CATEGORIES=x11
 
@@ -33,10 +33,10 @@ pre-configure:
@${SUBST_CMD} ${WRKSRC}/scrotwm.conf ${WRKSRC}/scrotwm.c
 
 post-install:
-   ${INSTALL_DATA_DIR} ${PREFIX}/share/scrotwm
    ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/scrotwm
-   ${INSTALL_SCRIPT} ${WRKSRC}/baraction.sh ${PREFIX}/share/scrotwm
-   ${INSTALL_SCRIPT} ${WRKSRC}/screenshot.sh ${PREFIX}/share/scrotwm
+   ${INSTALL_SCRIPT} ${WRKSRC}/baraction.sh 
${PREFIX}/share/examples/scrotwm
+   ${INSTALL_SCRIPT} ${WRKSRC}/initscreen.sh 
${PREFIX}/share/examples/scrotwm
+   ${INSTALL_SCRIPT} ${WRKSRC}/screenshot.sh 
${PREFIX}/share/examples/scrotwm
${INSTALL_DATA} ${WRKSRC}/scrotwm.conf ${PREFIX}/share/examples/scrotwm
 
 .include 
Index: distinfo
===
RCS file: /cvs/ports/x11/scrotwm/distinfo,v
retrieving revision 1.8
diff -u -p -r1.8 distinfo
--- distinfo30 Sep 2009 00:54:06 -  1.8
+++ distinfo11 Oct 2009 08:31:38 -
@@ -1,5 +1,5 @@
-MD5 (scrotwm-0.9.8.tgz) = YGhKg1vwJRZLFyeg2QXdpg==
-RMD160 (scrotwm-0.9.8.tgz) = N/de4GcK6TUb+JlIsyW8j1L9QP8=
-SHA1 (scrotwm-0.9.8.tgz) = dVH++mSLCHXnY128QwNvJYnttTg=
-SHA256 (scrotwm-0.9.8.tgz) = uLI4CktyhZMvKdsdQ+VZ/bpwS+6Eb4bgri+y2od5IEw=
-SIZE (scrotwm-0.9.8.tgz) = 38863
+MD5 (scrotwm-0.9.12.tgz) = l8kcitY9Z1sObtEFARvatg==
+RMD160 (scrotwm-0.9.12.tgz) = gbvvoYkZ1/lyagdTfv3ArIE91AM=
+SHA1 (scrotwm-0.9.12.tgz) = 3yZRoCaDUHc2YOxy6czYmgfegWE=
+SHA256 (scrotwm-0.9.12.tgz) = M8LmEmfJ6fPy2x9E2fL90VCPsGMCr1ttG1yTEgX52UI=
+SIZE (scrotwm-0.9.12.tgz) = 48124
Index: patches/patch-scrotwm_c
===
RCS file: /cvs/ports/x11/scrotwm/patches/patch-scrotwm_c,v
retrieving revision 1.7
diff -u -p -r1.7 patch-scrotwm_c
--- patches/patch-scrotwm_c 30 Sep 2009 00:54:06 -  1.7
+++ patches/patch-scrotwm_c 11 Oct 2009 08:31:38 -
@@ -1,7 +1,7 @@
 $OpenBSD: patch-scrotwm_c,v 1.7 2009/09/30 00:54:06 sthen Exp $
 --- scrotwm.c.orig Wed Sep 23 06:04:09 2009
 +++ scrotwm.c  Fri Sep 25 17:28:03 2009
-@@ -146,7 +146,7 @@ u_int32_t  swm_debug = 0
+@@ -150,7 +150,7 @@ u_int32_t  swm_debug = 0
  #define SWM_MAX_FONT_STEPS(3)
  
  #ifndef SWM_LIB
Index: patches/patch-scrotwm_conf
===
RCS file: /cvs/ports/x11/scrotwm/patches/patch-scrotwm_conf,v
retrieving revision 1.4
diff -u -p -r1.4 patch-scrotwm_conf
--- patches/patch-scrotwm_conf  25 Sep 2009 19:26:30 -  1.4
+++ patches/patch-scrotwm_conf  11 Oct 2009 08:31:38 -
@@ -1,6 +1,5 @@
-$OpenBSD: patch-scrotwm_conf,v 1.4 2009/09/25 19:26:30 sthen Exp $
 scrotwm.conf.orig  Wed Sep 23 06:04:09 2009
-+++ scrotwm.conf   Fri Sep 25 17:29:15 2009
+--- scrotwm.conf.orig  Wed Oct  7 10:15:33 2009
 scrotwm.conf   Wed Oct  7 10:17:10 2009
 @@ -10,7 +10,7 @@ bar_border[1]= rgb:00/80/80
  bar_color[1]  = black
  bar_font_color[1] = rgb:a0/a0/a0
@@ -8,9 +7,9 @@ $OpenBSD: patch-scrotwm_conf,v 1.4 2009/
 -#bar_action   = baraction.sh
 +#bar_action   = ${PREFIX}/share/scrotwm/baraction.sh
  #bar_delay= 1
+ stack_enabled = 1
  clock_enabled = 1
- title_name_enabled= 0
-@@ -18,8 +18,8 @@ title_class_enabled  = 0
+@@ -19,10 +19,10 @@ title_class_enabled= 0
  
  # spawn app
 

scrotwm 0.9.12

2009-10-10 Thread Marco Peereboom
How about this?

diff -ruNp -x CVS /usr/ports/x11/scrotwm/Makefile scrotwm-0.9.12-port/Makefile
--- /usr/ports/x11/scrotwm/Makefile Sat Oct 10 18:38:23 2009
+++ scrotwm-0.9.12-port/MakefileSat Oct 10 18:38:40 2009
@@ -4,7 +4,7 @@ COMMENT=small tiling window manager
 
 SHARED_LIBS=   swmhack 0.0
 
-DISTNAME=  scrotwm-0.9.8
+DISTNAME=  scrotwm-0.9.12
 EXTRACT_SUFX=  .tgz
 CATEGORIES=x11
 
@@ -36,6 +36,7 @@ post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/scrotwm
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/scrotwm
${INSTALL_SCRIPT} ${WRKSRC}/baraction.sh ${PREFIX}/share/scrotwm
+   ${INSTALL_SCRIPT} ${WRKSRC}/initscreen.sh ${PREFIX}/share/scrotwm
${INSTALL_SCRIPT} ${WRKSRC}/screenshot.sh ${PREFIX}/share/scrotwm
${INSTALL_DATA} ${WRKSRC}/scrotwm.conf ${PREFIX}/share/examples/scrotwm
 
diff -ruNp -x CVS /usr/ports/x11/scrotwm/distinfo scrotwm-0.9.12-port/distinfo
--- /usr/ports/x11/scrotwm/distinfo Sat Oct 10 18:38:32 2009
+++ scrotwm-0.9.12-port/distinfoSat Oct 10 18:38:40 2009
@@ -1,5 +1,5 @@
-MD5 (scrotwm-0.9.8.tgz) = YGhKg1vwJRZLFyeg2QXdpg==
-RMD160 (scrotwm-0.9.8.tgz) = N/de4GcK6TUb+JlIsyW8j1L9QP8=
-SHA1 (scrotwm-0.9.8.tgz) = dVH++mSLCHXnY128QwNvJYnttTg=
-SHA256 (scrotwm-0.9.8.tgz) = uLI4CktyhZMvKdsdQ+VZ/bpwS+6Eb4bgri+y2od5IEw=
-SIZE (scrotwm-0.9.8.tgz) = 38863
+MD5 (scrotwm-0.9.12.tgz) = l8kcitY9Z1sObtEFARvatg==
+RMD160 (scrotwm-0.9.12.tgz) = gbvvoYkZ1/lyagdTfv3ArIE91AM=
+SHA1 (scrotwm-0.9.12.tgz) = 3yZRoCaDUHc2YOxy6czYmgfegWE=
+SHA256 (scrotwm-0.9.12.tgz) = M8LmEmfJ6fPy2x9E2fL90VCPsGMCr1ttG1yTEgX52UI=
+SIZE (scrotwm-0.9.12.tgz) = 48124
diff -ruNp -x CVS /usr/ports/x11/scrotwm/patches/patch-scrotwm_c 
scrotwm-0.9.12-port/patches/patch-scrotwm_c
--- /usr/ports/x11/scrotwm/patches/patch-scrotwm_c  Tue Sep 29 19:54:06 2009
+++ scrotwm-0.9.12-port/patches/patch-scrotwm_c Sat Oct 10 18:38:40 2009
@@ -1,7 +1,7 @@
 $OpenBSD: patch-scrotwm_c,v 1.7 2009/09/30 00:54:06 sthen Exp $
 --- scrotwm.c.orig Wed Sep 23 06:04:09 2009
 +++ scrotwm.c  Fri Sep 25 17:28:03 2009
-@@ -146,7 +146,7 @@ u_int32_t  swm_debug = 0
+@@ -150,7 +150,7 @@ u_int32_t  swm_debug = 0
  #define SWM_MAX_FONT_STEPS(3)
  
  #ifndef SWM_LIB
diff -ruNp -x CVS /usr/ports/x11/scrotwm/patches/patch-scrotwm_conf 
scrotwm-0.9.12-port/patches/patch-scrotwm_conf
--- /usr/ports/x11/scrotwm/patches/patch-scrotwm_conf   Fri Sep 25 14:26:30 2009
+++ scrotwm-0.9.12-port/patches/patch-scrotwm_conf  Sat Oct 10 18:38:40 2009
@@ -1,6 +1,5 @@
-$OpenBSD: patch-scrotwm_conf,v 1.4 2009/09/25 19:26:30 sthen Exp $
 scrotwm.conf.orig  Wed Sep 23 06:04:09 2009
-+++ scrotwm.conf   Fri Sep 25 17:29:15 2009
+--- scrotwm.conf.orig  Wed Oct  7 10:15:33 2009
 scrotwm.conf   Wed Oct  7 10:17:10 2009
 @@ -10,7 +10,7 @@ bar_border[1]= rgb:00/80/80
  bar_color[1]  = black
  bar_font_color[1] = rgb:a0/a0/a0
@@ -8,9 +7,9 @@ $OpenBSD: patch-scrotwm_conf,v 1.4 2009/09/25 19:26:30
 -#bar_action   = baraction.sh
 +#bar_action   = ${PREFIX}/share/scrotwm/baraction.sh
  #bar_delay= 1
+ stack_enabled = 1
  clock_enabled = 1
- title_name_enabled= 0
-@@ -18,8 +18,8 @@ title_class_enabled  = 0
+@@ -19,10 +19,10 @@ title_class_enabled= 0
  
  # spawn app
  # program[term]   = xterm
@@ -19,5 +18,8 @@ $OpenBSD: patch-scrotwm_conf,v 1.4 2009/09/25 19:26:30
 +# program[screenshot_all] = ${PREFIX}/share/scrotwm/screenshot.sh full
 +# program[screenshot_wind]= ${PREFIX}/share/scrotwm/screenshot.sh window
  # program[lock]   = xlock
- # program[initscr]= initscreen.sh
+-# program[initscr]= initscreen.sh
++# program[initscr]= ${PREFIX}/share/scrotwm/initscreen.sh
  # program[menu]   = dmenu_run -fn $bar_font -nb $bar_color -nf 
$bar_font_color -sb $bar_border -sf $bar_color
+ spawn_term= xterm
+ 
diff -ruNp -x CVS /usr/ports/x11/scrotwm/pkg/PLIST scrotwm-0.9.12-port/pkg/PLIST
--- /usr/ports/x11/scrotwm/pkg/PLISTWed Jan 28 07:20:23 2009
+++ scrotwm-0.9.12-port/pkg/PLIST   Sat Oct 10 18:38:40 2009
@@ -2,9 +2,12 @@
 %%SHARED%%
 @bin bin/scrotwm
 @man man/cat1/scrotwm.0
+...@man man/cat1/scrotwm_es.0
+...@man man/cat1/scrotwm_it.0
 share/examples/scrotwm/
 share/examples/scrotwm/scrotwm.conf
 @sample ${SYSCONFDIR}/scrotwm.conf
 share/scrotwm/
 share/scrotwm/baraction.sh
+share/scrotwm/initscreen.sh
 share/scrotwm/screenshot.sh



Re: scrotwm 0.9.11

2009-10-08 Thread Stuart Henderson
On 2009/10/08 15:18, Marco Peereboom wrote:
> Since no one is rolling a port I tried to do it myself.  This is auto
> generated now when rolling a release.

I started on 0.9.10 but couldn't work out how to stop makewhatis
whining about the translated manpages. Doing the version bump is the
easy part, automating that part only helps a little.

> +MD5 (scrotwm-0.9.11.tgz) = 2a6c6264e841a7d9a449255ed042a496
> +RMD160 (scrotwm-0.9.11.tgz) = ffa1bc8cf220b3a09fbb395faa100c89e4dd2142
> +SHA1 (scrotwm-0.9.11.tgz) = 5ecd9e08da32c801dba8e6cc79d3374441b26704
> +SHA256 (scrotwm-0.9.11.tgz) = 
> 33ab1baeef7f44045ca4024470c703f3e97a91166b13cc50fc7f4f60dc37887d

These should be base64-encoded not hex.



scrotwm 0.9.11

2009-10-08 Thread Marco Peereboom
Since no one is rolling a port I tried to do it myself.  This is auto
generated now when rolling a release.

Apply with -p0.

Please test and report back.  I am trying to see if anyone can make the
switch work space crash.  Make sure you can dump cores to send me a back
trace if it happens to crash.

diff -ruNp -x CVS /usr/ports/x11/scrotwm/Makefile scrotwm-0.9.11-port/Makefile
--- /usr/ports/x11/scrotwm/Makefile Thu Oct  8 14:57:26 2009
+++ scrotwm-0.9.11-port/MakefileThu Oct  8 14:57:41 2009
@@ -4,7 +4,7 @@ COMMENT=small tiling window manager
 
 SHARED_LIBS=   swmhack 0.0
 
-DISTNAME=  scrotwm-0.9.8
+DISTNAME=  scrotwm-0.9.11
 EXTRACT_SUFX=  .tgz
 CATEGORIES=x11
 
@@ -36,6 +36,7 @@ post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/scrotwm
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/scrotwm
${INSTALL_SCRIPT} ${WRKSRC}/baraction.sh ${PREFIX}/share/scrotwm
+   ${INSTALL_SCRIPT} ${WRKSRC}/initscreen.sh ${PREFIX}/share/scrotwm
${INSTALL_SCRIPT} ${WRKSRC}/screenshot.sh ${PREFIX}/share/scrotwm
${INSTALL_DATA} ${WRKSRC}/scrotwm.conf ${PREFIX}/share/examples/scrotwm
 
diff -ruNp -x CVS /usr/ports/x11/scrotwm/distinfo scrotwm-0.9.11-port/distinfo
--- /usr/ports/x11/scrotwm/distinfo Thu Oct  8 14:57:26 2009
+++ scrotwm-0.9.11-port/distinfoThu Oct  8 14:57:41 2009
@@ -1,5 +1,5 @@
-MD5 (scrotwm-0.9.8.tgz) = YGhKg1vwJRZLFyeg2QXdpg==
-RMD160 (scrotwm-0.9.8.tgz) = N/de4GcK6TUb+JlIsyW8j1L9QP8=
-SHA1 (scrotwm-0.9.8.tgz) = dVH++mSLCHXnY128QwNvJYnttTg=
-SHA256 (scrotwm-0.9.8.tgz) = uLI4CktyhZMvKdsdQ+VZ/bpwS+6Eb4bgri+y2od5IEw=
-SIZE (scrotwm-0.9.8.tgz) = 38863
+MD5 (scrotwm-0.9.11.tgz) = 2a6c6264e841a7d9a449255ed042a496
+RMD160 (scrotwm-0.9.11.tgz) = ffa1bc8cf220b3a09fbb395faa100c89e4dd2142
+SHA1 (scrotwm-0.9.11.tgz) = 5ecd9e08da32c801dba8e6cc79d3374441b26704
+SHA256 (scrotwm-0.9.11.tgz) = 
33ab1baeef7f44045ca4024470c703f3e97a91166b13cc50fc7f4f60dc37887d
+SIZE (scrotwm-0.9.11.tgz) = 47941
diff -ruNp -x CVS /usr/ports/x11/scrotwm/patches/patch-scrotwm_c 
scrotwm-0.9.11-port/patches/patch-scrotwm_c
--- /usr/ports/x11/scrotwm/patches/patch-scrotwm_c  Tue Sep 29 19:54:06 2009
+++ scrotwm-0.9.11-port/patches/patch-scrotwm_c Thu Oct  8 14:57:41 2009
@@ -1,7 +1,7 @@
 $OpenBSD: patch-scrotwm_c,v 1.7 2009/09/30 00:54:06 sthen Exp $
 --- scrotwm.c.orig Wed Sep 23 06:04:09 2009
 +++ scrotwm.c  Fri Sep 25 17:28:03 2009
-@@ -146,7 +146,7 @@ u_int32_t  swm_debug = 0
+@@ -150,7 +150,7 @@ u_int32_t  swm_debug = 0
  #define SWM_MAX_FONT_STEPS(3)
  
  #ifndef SWM_LIB
diff -ruNp -x CVS /usr/ports/x11/scrotwm/patches/patch-scrotwm_conf 
scrotwm-0.9.11-port/patches/patch-scrotwm_conf
--- /usr/ports/x11/scrotwm/patches/patch-scrotwm_conf   Fri Sep 25 14:26:30 2009
+++ scrotwm-0.9.11-port/patches/patch-scrotwm_conf  Thu Oct  8 14:57:41 2009
@@ -1,6 +1,5 @@
-$OpenBSD: patch-scrotwm_conf,v 1.4 2009/09/25 19:26:30 sthen Exp $
 scrotwm.conf.orig  Wed Sep 23 06:04:09 2009
-+++ scrotwm.conf   Fri Sep 25 17:29:15 2009
+--- scrotwm.conf.orig  Wed Oct  7 10:15:33 2009
 scrotwm.conf   Wed Oct  7 10:17:10 2009
 @@ -10,7 +10,7 @@ bar_border[1]= rgb:00/80/80
  bar_color[1]  = black
  bar_font_color[1] = rgb:a0/a0/a0
@@ -8,9 +7,9 @@ $OpenBSD: patch-scrotwm_conf,v 1.4 2009/09/25 19:26:30
 -#bar_action   = baraction.sh
 +#bar_action   = ${PREFIX}/share/scrotwm/baraction.sh
  #bar_delay= 1
+ stack_enabled = 1
  clock_enabled = 1
- title_name_enabled= 0
-@@ -18,8 +18,8 @@ title_class_enabled  = 0
+@@ -19,10 +19,10 @@ title_class_enabled= 0
  
  # spawn app
  # program[term]   = xterm
@@ -19,5 +18,8 @@ $OpenBSD: patch-scrotwm_conf,v 1.4 2009/09/25 19:26:30
 +# program[screenshot_all] = ${PREFIX}/share/scrotwm/screenshot.sh full
 +# program[screenshot_wind]= ${PREFIX}/share/scrotwm/screenshot.sh window
  # program[lock]   = xlock
- # program[initscr]= initscreen.sh
+-# program[initscr]= initscreen.sh
++# program[initscr]= ${PREFIX}/share/scrotwm/initscreen.sh
  # program[menu]   = dmenu_run -fn $bar_font -nb $bar_color -nf 
$bar_font_color -sb $bar_border -sf $bar_color
+ spawn_term= xterm
+ 
diff -ruNp -x CVS /usr/ports/x11/scrotwm/pkg/PLIST scrotwm-0.9.11-port/pkg/PLIST
--- /usr/ports/x11/scrotwm/pkg/PLISTWed Jan 28 07:20:23 2009
+++ scrotwm-0.9.11-port/pkg/PLIST   Thu Oct  8 14:57:41 2009
@@ -2,9 +2,12 @@
 %%SHARED%%
 @bin bin/scrotwm
 @man man/cat1/scrotwm.0
+...@man man/cat1/scrotwm_es.0
+...@man man/cat1/scrotwm_it.0
 share/examples/scrotwm/
 share/examples/scrotwm/scrotwm.conf
 @sample ${SYSCONFDIR}/scrotwm.conf
 share/scrotwm/
 share/scrotwm/baraction.sh
+share/scrotwm/initscreen.sh
 share/scrotwm/screenshot.sh



scrotwm 0.9.10

2009-10-05 Thread Marco Peereboom
I dropped 0.9.10 to fix several stress issues and focus issues in max
stack mode.

Thanks for the reports.



scrotwm 0.9.9

2009-10-02 Thread Marco Peereboom
I just dropped scrotwm 0.9.9.

major changes:
- complete rewrite of the focus code which eliminates all known bugs
  including phantom windows, disappearing windows, etc
- add stacking indicator
- fix some crashes
- Make the maximum stack work as one would expect
- Make modal/transient windows appear on the same workspace as the
  parent
- add signaling for reaping of forked stuff and better shut down
  semantics (intel GM chips crash less often now on exit)
- restarting the wm now always focuses windows appropriately



Re: scrotwm 0.9.7

2009-09-23 Thread Gonzalo Lionel Rodriguez
Hey!! You fix the half window!!

Very nice... :D

2009/9/23 Marco Peereboom :
> Fixed several ugly bugs where empty spaces were being left behind and
> things such as ssh-askpass wouldn't appear.  That's you beck!
>
> pyr@ has not rolled a port so yell at him.
>
>



Re: scrotwm 0.9.7

2009-09-22 Thread Pierre-Yves Ritschard
On Wed, Sep 23, 2009 at 7:14 AM, Marco Peereboom  wrote:

> Fixed several ugly bugs where empty spaces were being left behind and
> things such as ssh-askpass wouldn't appear.  That's you beck!
>
> pyr@ has not rolled a port so yell at him.
>
Yes, I'm lagging behind, I'll try and act soon.


scrotwm 0.9.7

2009-09-22 Thread Marco Peereboom
Fixed several ugly bugs where empty spaces were being left behind and
things such as ssh-askpass wouldn't appear.  That's you beck!

pyr@ has not rolled a port so yell at him.



Re: Different question about scrotwm -dialog box problem

2009-09-20 Thread Chris Bennett

OK,
I finally found a workable solution that will probably work for others also.
The stack method worked for some resolutions but not all.
I just found a cheap deal on a new monitor, but it works well only up to 
1152x864.

This resolution does not work with the stacking method.
I could never find a region setting that did the trick.

I decided that the problem with auto detection was that my main screen 
was not seen as master screen. Thus, bad auto-detection for dialog boxes.
I decided that perhaps instead of swapping normal left right positions 
with top and bottom, perhaps swapping left and right with right and left 
would perhaps work.


This seems to work perfectly.
Dialog boxes now open in main screen from main screen.
On smaller screen, they open in larger screen. Since this screen is 
larger, all of box is visible.


Chris Bennett

--
A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet, balance
accounts, build a wall, set a bone, comfort the dying, take orders,
give orders, cooperate, act alone, solve equations, analyze a new
problem, pitch manure, program a computer, cook a tasty meal, fight
efficiently, die gallantly. Specialization is for insects.
  -- Robert Heinlein



Re: Different question about scrotwm -dialog box problem

2009-09-16 Thread Chris Bennett



Mark Peoples wrote:

On Tue, Sep 15, 2009 at 07:41:51PM -0500, neal hogan wrote:
  

I was thinking about that in the meantime. I wasn't (and still not) sure
how to deal with monitors of different height in xrandr. So, you've 
xrandr'd vertically . . . cool!



not on my desktop at the moment, but iirc, my two monitors there are different 
heights and i use xrandr to make for a sexy layout side-by-side and it works 
just fine


  

I would be interested to know the details.
I have solved my problem well enough to live with, but side-by-side is 
slightly preferable

Thanks



Re: Different question about scrotwm -dialog box problem

2009-09-15 Thread Mark Peoples
On Tue, Sep 15, 2009 at 07:41:51PM -0500, neal hogan wrote:
> I was thinking about that in the meantime. I wasn't (and still not) sure
> how to deal with monitors of different height in xrandr. So, you've 
> xrandr'd vertically . . . cool!

not on my desktop at the moment, but iirc, my two monitors there are different 
heights and i use xrandr to make for a sexy layout side-by-side and it works 
just fine



Re: Different question about scrotwm -dialog box problem

2009-09-15 Thread neal hogan
On Tue, Sep 15, 2009 at 04:53:16PM -0500, Chris Bennett wrote:
> 
> 
> Marco Peereboom wrote:
> >You want to play with the regions and set them up to be the right size
> >instead of auto-detecting them
> >
> >On Tue, Sep 15, 2009 at 12:42:49PM -0500, Chris Bennett wrote:
> >
> I couldn't get regions to do the trick.
> However, after trying many things that failed, I realized that the
> cause of the problem was bad height.
> So I decide to try something new and different.
> I stacked the screens instead of side by side (not physically, though! :) )
> 
> Works like a charm. A bit weird going up and down, but I will
> quickly adjust to that.
> No more dragging around dialog boxes!! Yippee!!


Nice!
I was thinking about that in the meantime. I wasn't (and still not) sure
how to deal with monitors of different height in xrandr. So, you've 
xrandr'd vertically . . . cool!

> 
> Thanks
> 
> Oh Yeah, thanks for scrotwm, I really like it.
> This was the only ugly problem I've had, all fixed for me now.
> 
> -- 
> A human being should be able to change a diaper, plan an invasion,
> butcher a hog, conn a ship, design a building, write a sonnet, balance
> accounts, build a wall, set a bone, comfort the dying, take orders,
> give orders, cooperate, act alone, solve equations, analyze a new
> problem, pitch manure, program a computer, cook a tasty meal, fight
> efficiently, die gallantly. Specialization is for insects.
>   -- Robert Heinlein
> 



Re: Different question about scrotwm -dialog box problem

2009-09-15 Thread Chris Bennett



Marco Peereboom wrote:

You want to play with the regions and set them up to be the right size
instead of auto-detecting them

On Tue, Sep 15, 2009 at 12:42:49PM -0500, Chris Bennett wrote:
  


I couldn't get regions to do the trick.
However, after trying many things that failed, I realized that the cause 
of the problem was bad height.

So I decide to try something new and different.
I stacked the screens instead of side by side (not physically, though! :) )

Works like a charm. A bit weird going up and down, but I will quickly 
adjust to that.

No more dragging around dialog boxes!! Yippee!!

Thanks

Oh Yeah, thanks for scrotwm, I really like it.
This was the only ugly problem I've had, all fixed for me now.

--
A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet, balance
accounts, build a wall, set a bone, comfort the dying, take orders,
give orders, cooperate, act alone, solve equations, analyze a new
problem, pitch manure, program a computer, cook a tasty meal, fight
efficiently, die gallantly. Specialization is for insects.
  -- Robert Heinlein



Re: Different question about scrotwm -dialog box problem

2009-09-15 Thread Chris Bennett



neal hogan wrote:

Neal was right about virtual screen being too big (since I changed
one monitor's resolution smaller)
I changed it to 2624 x 1968.




No expert here, but I don't think that you want to add the heights. 
Neither screen is that tall. So I would suggest start with 2624x1200. 
Then set the smaller screen to the left/right of the larger one.


I'm not sure what is going to happen to the height of the smaller
screen.

  

Oops, my mistake! I'll fix that and see what happens.

--
A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet, balance
accounts, build a wall, set a bone, comfort the dying, take orders,
give orders, cooperate, act alone, solve equations, analyze a new
problem, pitch manure, program a computer, cook a tasty meal, fight
efficiently, die gallantly. Specialization is for insects.
  -- Robert Heinlein



Re: Different question about scrotwm -dialog box problem

2009-09-15 Thread neal hogan
> Neal was right about virtual screen being too big (since I changed
> one monitor's resolution smaller)
> I changed it to 2624 x 1968.
> 

No expert here, but I don't think that you want to add the heights. 
Neither screen is that tall. So I would suggest start with 2624x1200. 
Then set the smaller screen to the left/right of the larger one.

I'm not sure what is going to happen to the height of the smaller
screen.

> But this didn't help, anyway.
> 
> I played with region some, but I still can't figure out a setting
> that works.
> I work in 1600x1200 in front of me.
> Small dialog boxes open completely, but a little too low in left screen.
> Larger boxes cross into both screens, but also too low.
> 
> Thanks
> 
> -- 
> A human being should be able to change a diaper, plan an invasion, x
> butcher a hog, conn a ship, design a building, write a sonnet,
> balance
> accounts, build a wall, set a bone, comfort the dying, take orders,
> give orders, cooperate, act alone, solve equations, analyze a new
> problem, pitch manure, program a computer, cook a tasty meal, fight
> efficiently, die gallantly. Specialization is for insects.
>   -- Robert Heinlein
> 



Re: Different question about scrotwm -dialog box problem

2009-09-15 Thread Chris Bennett



Marco Peereboom wrote:

You want to play with the regions and set them up to be the right size
instead of auto-detecting them

On Tue, Sep 15, 2009 at 12:42:49PM -0500, Chris Bennett wrote:
  
Ok, I was glad to see an update to scrotwm, hoping it would fix a  
problem I have with dialog boxes.


Didn't, and now I realize it couldn't!
Problem is on my end.

I have two CRT monitors. One is excellent, the other is kind of crappy  
but nice to have.


Good one happily supports 1600 or higher resolutions and works happily  
with xrandr. I use 1600x1200 85hz refresh

Other one won't support a good refresh rate at 1600.
Was using it at 1280 x something, but now using it at 1024x768, due to  
age effects.


Dialog boxes open just fine in the crappy monitor, but when I use good  
monitor, dialog boxes open split across virtual area, into both monitors.
However, I just figured out that since my virtual screen is 3200 2400  
(from xorg.conf) there is a piece of unviewable space under smaller  
visible screen.
Part of dialog box is "lost" there. I often work with both screens at  
same time, so swapping screens just for dialog boxes will not be a good  
solution.

Very tired of dragging every box into view.


Neal was right about virtual screen being too big (since I changed one 
monitor's resolution smaller)

I changed it to 2624 x 1968.

But this didn't help, anyway.

I played with region some, but I still can't figure out a setting that 
works.

I work in 1600x1200 in front of me.
Small dialog boxes open completely, but a little too low in left screen.
Larger boxes cross into both screens, but also too low.

Thanks

--
A human being should be able to change a diaper, plan an invasion, x 
butcher a hog, conn a ship, design a building, write a sonnet, balance

accounts, build a wall, set a bone, comfort the dying, take orders,
give orders, cooperate, act alone, solve equations, analyze a new
problem, pitch manure, program a computer, cook a tasty meal, fight
efficiently, die gallantly. Specialization is for insects.
  -- Robert Heinlein



Re: Different question about scrotwm -dialog box problem

2009-09-15 Thread neal hogan
On Tue, Sep 15, 2009 at 01:41:35PM -0500, Marco Peereboom wrote:
> That is an exercise in futility ;-)
> 
> I tried!

It's a starting point . . . no? I should have made your point clearer in
my suggestion. 

Fiddling may be rquired!

I'm using scrotwm with xrandr and two monitors. xrandr "preferred" 
1440x900 res for both, so I set the virtuall screen to 2880x900 and 
put one screen to the left (or was it right) of the other.

Each monitor has it's own workstation and I can drag terms/dialogue
boxes across from one screen to the other.


> 
> On Tue, Sep 15, 2009 at 01:30:24PM -0500, neal hogan wrote:
> > > > 
> > > > Is there an answer to this problem?
> > > 
> > > Perhaps I'm missing something about your situation, but why not just
> > > change the size of your virtual screen in xorg.conf? 
> > 
> > Note that xrandr will suggest different screen resolutions. The reason I
> > bring it up is b/c I am wondering where you got you sreen values at
> > (3200x2400 seems pretty big). 
> > 
> > If you haven't already, chenck out xrandr's manpage.
> > 
> > > 
> > > > 
> > > > Chris Bennett
> > > > 
> > > > -- 
> > > > A human being should be able to change a diaper, plan an invasion,
> > > > butcher a hog, conn a ship, design a building, write a sonnet, balance
> > > > accounts, build a wall, set a bone, comfort the dying, take orders,
> > > > give orders, cooperate, act alone, solve equations, analyze a new
> > > > problem, pitch manure, program a computer, cook a tasty meal, fight
> > > > efficiently, die gallantly. Specialization is for insects.
> > > >   -- Robert Heinlein
> > > > 
> > > 
> > 
> 



Re: Different question about scrotwm -dialog box problem

2009-09-15 Thread Marco Peereboom
That is an exercise in futility ;-)

I tried!

On Tue, Sep 15, 2009 at 01:30:24PM -0500, neal hogan wrote:
> > > 
> > > Is there an answer to this problem?
> > 
> > Perhaps I'm missing something about your situation, but why not just
> > change the size of your virtual screen in xorg.conf? 
> 
> Note that xrandr will suggest different screen resolutions. The reason I
> bring it up is b/c I am wondering where you got you sreen values at
> (3200x2400 seems pretty big). 
> 
> If you haven't already, chenck out xrandr's manpage.
> 
> > 
> > > 
> > > Chris Bennett
> > > 
> > > -- 
> > > A human being should be able to change a diaper, plan an invasion,
> > > butcher a hog, conn a ship, design a building, write a sonnet, balance
> > > accounts, build a wall, set a bone, comfort the dying, take orders,
> > > give orders, cooperate, act alone, solve equations, analyze a new
> > > problem, pitch manure, program a computer, cook a tasty meal, fight
> > > efficiently, die gallantly. Specialization is for insects.
> > >   -- Robert Heinlein
> > > 
> > 
> 



Re: Different question about scrotwm -dialog box problem

2009-09-15 Thread neal hogan
> > 
> > Is there an answer to this problem?
> 
> Perhaps I'm missing something about your situation, but why not just
> change the size of your virtual screen in xorg.conf? 

Note that xrandr will suggest different screen resolutions. The reason I
bring it up is b/c I am wondering where you got you sreen values at
(3200x2400 seems pretty big). 

If you haven't already, chenck out xrandr's manpage.

> 
> > 
> > Chris Bennett
> > 
> > -- 
> > A human being should be able to change a diaper, plan an invasion,
> > butcher a hog, conn a ship, design a building, write a sonnet, balance
> > accounts, build a wall, set a bone, comfort the dying, take orders,
> > give orders, cooperate, act alone, solve equations, analyze a new
> > problem, pitch manure, program a computer, cook a tasty meal, fight
> > efficiently, die gallantly. Specialization is for insects.
> >   -- Robert Heinlein
> > 
> 



Re: Different question about scrotwm -dialog box problem

2009-09-15 Thread Marco Peereboom
You want to play with the regions and set them up to be the right size
instead of auto-detecting them

On Tue, Sep 15, 2009 at 12:42:49PM -0500, Chris Bennett wrote:
> Ok, I was glad to see an update to scrotwm, hoping it would fix a  
> problem I have with dialog boxes.
>
> Didn't, and now I realize it couldn't!
> Problem is on my end.
>
> I have two CRT monitors. One is excellent, the other is kind of crappy  
> but nice to have.
>
> Good one happily supports 1600 or higher resolutions and works happily  
> with xrandr. I use 1600x1200 85hz refresh
> Other one won't support a good refresh rate at 1600.
> Was using it at 1280 x something, but now using it at 1024x768, due to  
> age effects.
>
> Dialog boxes open just fine in the crappy monitor, but when I use good  
> monitor, dialog boxes open split across virtual area, into both monitors.
> However, I just figured out that since my virtual screen is 3200 2400  
> (from xorg.conf) there is a piece of unviewable space under smaller  
> visible screen.
> Part of dialog box is "lost" there. I often work with both screens at  
> same time, so swapping screens just for dialog boxes will not be a good  
> solution.
> Very tired of dragging every box into view.
>
> Is there an answer to this problem?
>
> Chris Bennett
>
> -- 
> A human being should be able to change a diaper, plan an invasion,
> butcher a hog, conn a ship, design a building, write a sonnet, balance
> accounts, build a wall, set a bone, comfort the dying, take orders,
> give orders, cooperate, act alone, solve equations, analyze a new
> problem, pitch manure, program a computer, cook a tasty meal, fight
> efficiently, die gallantly. Specialization is for insects.
>   -- Robert Heinlein
>



Re: Different question about scrotwm -dialog box problem

2009-09-15 Thread neal hogan
On Tue, Sep 15, 2009 at 12:42:49PM -0500, Chris Bennett wrote:
> Ok, I was glad to see an update to scrotwm, hoping it would fix a
> problem I have with dialog boxes.
> 
> Didn't, and now I realize it couldn't!
> Problem is on my end.
> 
> I have two CRT monitors. One is excellent, the other is kind of
> crappy but nice to have.
> 
> Good one happily supports 1600 or higher resolutions and works
> happily with xrandr. I use 1600x1200 85hz refresh
> Other one won't support a good refresh rate at 1600.
> Was using it at 1280 x something, but now using it at 1024x768, due
> to age effects.
> 
> Dialog boxes open just fine in the crappy monitor, but when I use
> good monitor, dialog boxes open split across virtual area, into both
> monitors.
> However, I just figured out that since my virtual screen is 3200
> 2400 (from xorg.conf) there is a piece of unviewable space under
> smaller visible screen.
> Part of dialog box is "lost" there. I often work with both screens
> at same time, so swapping screens just for dialog boxes will not be
> a good solution.
> Very tired of dragging every box into view.
> 
> Is there an answer to this problem?

Perhaps I'm missing something about your situation, but why not just
change the size of your virtual screen in xorg.conf? 

> 
> Chris Bennett
> 
> -- 
> A human being should be able to change a diaper, plan an invasion,
> butcher a hog, conn a ship, design a building, write a sonnet, balance
> accounts, build a wall, set a bone, comfort the dying, take orders,
> give orders, cooperate, act alone, solve equations, analyze a new
> problem, pitch manure, program a computer, cook a tasty meal, fight
> efficiently, die gallantly. Specialization is for insects.
>   -- Robert Heinlein
> 



Different question about scrotwm -dialog box problem

2009-09-15 Thread Chris Bennett
Ok, I was glad to see an update to scrotwm, hoping it would fix a 
problem I have with dialog boxes.


Didn't, and now I realize it couldn't!
Problem is on my end.

I have two CRT monitors. One is excellent, the other is kind of crappy 
but nice to have.


Good one happily supports 1600 or higher resolutions and works happily 
with xrandr. I use 1600x1200 85hz refresh

Other one won't support a good refresh rate at 1600.
Was using it at 1280 x something, but now using it at 1024x768, due to 
age effects.


Dialog boxes open just fine in the crappy monitor, but when I use good 
monitor, dialog boxes open split across virtual area, into both monitors.
However, I just figured out that since my virtual screen is 3200 2400 
(from xorg.conf) there is a piece of unviewable space under smaller 
visible screen.
Part of dialog box is "lost" there. I often work with both screens at 
same time, so swapping screens just for dialog boxes will not be a good 
solution.

Very tired of dragging every box into view.

Is there an answer to this problem?

Chris Bennett

--
A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet, balance
accounts, build a wall, set a bone, comfort the dying, take orders,
give orders, cooperate, act alone, solve equations, analyze a new
problem, pitch manure, program a computer, cook a tasty meal, fight
efficiently, die gallantly. Specialization is for insects.
  -- Robert Heinlein



Re: scrotwm

2009-09-15 Thread Stuart Henderson
On 2009/09/15 18:24, Matthieu Herrb wrote:
> Chris Bennett wrote:
> > 1. pkg_delete is not deleting both /usr/local/bin/scrotwm and
> > /usr/X11R6/bin/scrotwm.
> > This should probably be fixed.
> > 
> > 2. snapshot is not installing new version at both /usr/local/bin/scrotwm
> > and /usr/X11R6/bin/scrotwm.
> > On my Desktop, I had to manually copy new version onto old version. Then
> > all worked fine.
> > Perhaps fix for next snapshot? Or not. snapshots are for the brave, anyway!
> > 
> > Thanks
> > 
> 
> /usr/X11R6/bin/scrotwm should not be created by a port. If it is, it's a
> bug in the port and it should be fixed.

The port should not, and does not, touch anything in /usr/X11R6.

It will only delete a file under /usr/local if it was installed 
by the port. If you're doing your own builds outside of the  
ports tree, pkg_* tools can't help you, but they'll try and 
avoid stepping on your work.

It's usually easier to patch things into the ports tree,
than it is to work outside of it.



Re: scrotwm

2009-09-15 Thread Matthieu Herrb
Chris Bennett wrote:
> 
> 
> Chris Bennett wrote:
>>
>>
>> Tobias Ulmer wrote:
>>> On Mon, Sep 14, 2009 at 09:13:39PM -0500, Chris Bennett wrote:
>>>  
>>>> Jacob Meuser wrote:
>>>>   
>>>>> On Sun, Sep 13, 2009 at 09:44:25PM -0500, Marco Peereboom wrote:
>>>>>   
>>>>>> You got to have xenocara installed.
>>>>>>
>>>>>> On Sun, Sep 13, 2009 at 08:48:09PM -0500, Chris Bennett wrote:
>>>>>>   
>>>>>>> I just tried this on a different computer and got the following
>>>>>>> error:
>>>>>>>
>>>>>>> # make obj && make depend && make
>>>>>>> /bin/sh: cd: /usr/xenocara - No such file or directory
>>>>>>> *** Error code 1
>>>>>>>
>>>>>>> Stop in /home/chrisbenn/Desktop/scrotwm-0.9.6 (line 274 of  
>>>>>>> /usr/X11R6/share/mk/bsd.xorg.mk).
>>>>>>> #
>>>>>>>
>>>>>>> So this means that something must be necessary in xenocara, which
>>>>>>> I  haven't kept up to date as well as ports.
>>>>>>> (this laptop doesn't even have it at all)
>>>>>>>
>>>>>>> I will update xenocara and see if that fixes problem.
>>>>>>> 
>>>>> fwiw, all you realy need is the /usr/xenocara directory (or skip
>>>>> `make obj' or define NOOBJ ...).
>>>>>
>>>>> 
>>>> Well, this worked but also failed, badly.
>>>>
>>>> After this, I appeared to have gotten 0.9.6, but the Alt - P no
>>>> longer  worked.
>>>> (Every other use of Alt key appears to work ok)
>>>>
>>>> I tried updating dmenu, but that failed (older snapshot)
>>>> Deleting both packages didn't help, so I upgraded to Sept. 12 snapshot.
>>>>
>>>> I still cannot use Alt - P.
>>>> I get error:
>>>> dmenu - can't load library 'usr/local/lib/libswmhack.so.0.0
>>>>
>>>> I can't get back to older version of 0.9.5, no matter what I delete
>>>> and add.
>>>>
>>>> I even tried pulling libswmhack.so.0.0 out and putting it in
>>>> /usr/local/lib
>>>>
>>>> Fixes first error, but adds new one:
>>>> error, cannot allocate color 'bar_color'
>>>>
>>>> At this point I'd be happy to just get backwards to where I was.
>>>> Don't  know how to fix this.
>>>>
>>>> My other computer fails rather differently. All appears to go well
>>>> but  stays at 0.9.5.
>>>>
>>>> Chris Bennett
>>>>
>>>>
>>>> 
>>>
>>> You want makefile and barcolor diff from here:
>>> http://tin.tmux.org/~tobiasu/hgweb/scrotwm/.hg/patches/file/be77f834e084
>>>
>>>   
>> That did the trick!
>> Thanks
>>
>>
> OK, I've managed to get this to work on both computers, but I see two
> problems.
> 
> 1. pkg_delete is not deleting both /usr/local/bin/scrotwm and
> /usr/X11R6/bin/scrotwm.
> This should probably be fixed.
> 
> 2. snapshot is not installing new version at both /usr/local/bin/scrotwm
> and /usr/X11R6/bin/scrotwm.
> On my Desktop, I had to manually copy new version onto old version. Then
> all worked fine.
> Perhaps fix for next snapshot? Or not. snapshots are for the brave, anyway!
> 
> Thanks
> 

/usr/X11R6/bin/scrotwm should not be created by a port. If it is, it's a
bug in the port and it should be fixed.

-- 
Matthieu Herrb



Re: scrotwm

2009-09-15 Thread Marco Peereboom
On Tue, Sep 15, 2009 at 10:33:24AM -0500, Chris Bennett wrote:
> OK, I've managed to get this to work on both computers, but I see two  
> problems.

I am afraid you are using it wrong.

>
> 1. pkg_delete is not deleting both /usr/local/bin/scrotwm and  
> /usr/X11R6/bin/scrotwm.
> This should probably be fixed.

No.  Only the one in local will be removed; you manually added the one
in X11R6.

>
> 2. snapshot is not installing new version at both /usr/local/bin/scrotwm  
> and /usr/X11R6/bin/scrotwm.

No.  make install will will put them in X11R6.

> On my Desktop, I had to manually copy new version onto old version. Then  
> all worked fine.
> Perhaps fix for next snapshot? Or not. snapshots are for the brave, anyway!

When dealing with pkg_add and source you'll always run into these
problems and are supposed to reconcile them yourself.



Re: scrotwm

2009-09-15 Thread Landry Breuil
On Tue, Sep 15, 2009 at 10:33:24AM -0500, Chris Bennett wrote:
>
>
> Chris Bennett wrote:
>>


> OK, I've managed to get this to work on both computers, but I see two  
> problems.
>
> 1. pkg_delete is not deleting both /usr/local/bin/scrotwm and  
> /usr/X11R6/bin/scrotwm.
> This should probably be fixed.
>
> 2. snapshot is not installing new version at both /usr/local/bin/scrotwm  
> and /usr/X11R6/bin/scrotwm.
> On my Desktop, I had to manually copy new version onto old version. Then  
> all worked fine.
> Perhaps fix for next snapshot? Or not. snapshots are for the brave, anyway!

Ports & packages don't install things under X11R6. And it's not needed
to have scrotwm there. You probably had a manually installed version
here.

Landry



Re: scrotwm

2009-09-15 Thread Chris Bennett



Chris Bennett wrote:



Tobias Ulmer wrote:

On Mon, Sep 14, 2009 at 09:13:39PM -0500, Chris Bennett wrote:
 

Jacob Meuser wrote:
   

On Sun, Sep 13, 2009 at 09:44:25PM -0500, Marco Peereboom wrote:
   

You got to have xenocara installed.

On Sun, Sep 13, 2009 at 08:48:09PM -0500, Chris Bennett wrote:
   
I just tried this on a different computer and got the following 
error:


# make obj && make depend && make
/bin/sh: cd: /usr/xenocara - No such file or directory
*** Error code 1

Stop in /home/chrisbenn/Desktop/scrotwm-0.9.6 (line 274 of   
/usr/X11R6/share/mk/bsd.xorg.mk).

#

So this means that something must be necessary in xenocara, which 
I  haven't kept up to date as well as ports.

(this laptop doesn't even have it at all)

I will update xenocara and see if that fixes problem.


fwiw, all you realy need is the /usr/xenocara directory (or skip
`make obj' or define NOOBJ ...).



Well, this worked but also failed, badly.

After this, I appeared to have gotten 0.9.6, but the Alt - P no 
longer  worked.

(Every other use of Alt key appears to work ok)

I tried updating dmenu, but that failed (older snapshot)
Deleting both packages didn't help, so I upgraded to Sept. 12 snapshot.

I still cannot use Alt - P.
I get error:
dmenu - can't load library 'usr/local/lib/libswmhack.so.0.0

I can't get back to older version of 0.9.5, no matter what I delete 
and add.


I even tried pulling libswmhack.so.0.0 out and putting it in 
/usr/local/lib


Fixes first error, but adds new one:
error, cannot allocate color 'bar_color'

At this point I'd be happy to just get backwards to where I was. 
Don't  know how to fix this.


My other computer fails rather differently. All appears to go well 
but  stays at 0.9.5.


Chris Bennett





You want makefile and barcolor diff from here:
http://tin.tmux.org/~tobiasu/hgweb/scrotwm/.hg/patches/file/be77f834e084

  

That did the trick!
Thanks


OK, I've managed to get this to work on both computers, but I see two 
problems.


1. pkg_delete is not deleting both /usr/local/bin/scrotwm and 
/usr/X11R6/bin/scrotwm.

This should probably be fixed.

2. snapshot is not installing new version at both /usr/local/bin/scrotwm 
and /usr/X11R6/bin/scrotwm.
On my Desktop, I had to manually copy new version onto old version. Then 
all worked fine.

Perhaps fix for next snapshot? Or not. snapshots are for the brave, anyway!

Thanks

--
A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet, balance
accounts, build a wall, set a bone, comfort the dying, take orders,
give orders, cooperate, act alone, solve equations, analyze a new
problem, pitch manure, program a computer, cook a tasty meal, fight
efficiently, die gallantly. Specialization is for insects.
  -- Robert Heinlein



Re: scrotwm

2009-09-15 Thread Chris Bennett



Tobias Ulmer wrote:

On Mon, Sep 14, 2009 at 09:13:39PM -0500, Chris Bennett wrote:
  

Jacob Meuser wrote:


On Sun, Sep 13, 2009 at 09:44:25PM -0500, Marco Peereboom wrote:
  
  

You got to have xenocara installed.

On Sun, Sep 13, 2009 at 08:48:09PM -0500, Chris Bennett wrote:



I just tried this on a different computer and got the following error:

# make obj && make depend && make
/bin/sh: cd: /usr/xenocara - No such file or directory
*** Error code 1

Stop in /home/chrisbenn/Desktop/scrotwm-0.9.6 (line 274 of   
/usr/X11R6/share/mk/bsd.xorg.mk).

#

So this means that something must be necessary in xenocara, which I 
 haven't kept up to date as well as ports.

(this laptop doesn't even have it at all)

I will update xenocara and see if that fixes problem.
  
  

fwiw, all you realy need is the /usr/xenocara directory (or skip
`make obj' or define NOOBJ ...).

  
  

Well, this worked but also failed, badly.

After this, I appeared to have gotten 0.9.6, but the Alt - P no longer  
worked.

(Every other use of Alt key appears to work ok)

I tried updating dmenu, but that failed (older snapshot)
Deleting both packages didn't help, so I upgraded to Sept. 12 snapshot.

I still cannot use Alt - P.
I get error:
dmenu - can't load library 'usr/local/lib/libswmhack.so.0.0

I can't get back to older version of 0.9.5, no matter what I delete and add.

I even tried pulling libswmhack.so.0.0 out and putting it in /usr/local/lib

Fixes first error, but adds new one:
error, cannot allocate color 'bar_color'

At this point I'd be happy to just get backwards to where I was. Don't  
know how to fix this.


My other computer fails rather differently. All appears to go well but  
stays at 0.9.5.


Chris Bennett





You want makefile and barcolor diff from here:
http://tin.tmux.org/~tobiasu/hgweb/scrotwm/.hg/patches/file/be77f834e084

  

That did the trick!
Thanks



Re: scrotwm

2009-09-15 Thread Tobias Ulmer
On Mon, Sep 14, 2009 at 09:13:39PM -0500, Chris Bennett wrote:
>
>
> Jacob Meuser wrote:
>> On Sun, Sep 13, 2009 at 09:44:25PM -0500, Marco Peereboom wrote:
>>   
>>> You got to have xenocara installed.
>>>
>>> On Sun, Sep 13, 2009 at 08:48:09PM -0500, Chris Bennett wrote:
>>> 
>>>> I just tried this on a different computer and got the following error:
>>>>
>>>> # make obj && make depend && make
>>>> /bin/sh: cd: /usr/xenocara - No such file or directory
>>>> *** Error code 1
>>>>
>>>> Stop in /home/chrisbenn/Desktop/scrotwm-0.9.6 (line 274 of   
>>>> /usr/X11R6/share/mk/bsd.xorg.mk).
>>>> #
>>>>
>>>> So this means that something must be necessary in xenocara, which I 
>>>>  haven't kept up to date as well as ports.
>>>> (this laptop doesn't even have it at all)
>>>>
>>>> I will update xenocara and see if that fixes problem.
>>>>   
>>
>> fwiw, all you realy need is the /usr/xenocara directory (or skip
>> `make obj' or define NOOBJ ...).
>>
>>   
> Well, this worked but also failed, badly.
>
> After this, I appeared to have gotten 0.9.6, but the Alt - P no longer  
> worked.
> (Every other use of Alt key appears to work ok)
>
> I tried updating dmenu, but that failed (older snapshot)
> Deleting both packages didn't help, so I upgraded to Sept. 12 snapshot.
>
> I still cannot use Alt - P.
> I get error:
> dmenu - can't load library 'usr/local/lib/libswmhack.so.0.0
>
> I can't get back to older version of 0.9.5, no matter what I delete and add.
>
> I even tried pulling libswmhack.so.0.0 out and putting it in /usr/local/lib
>
> Fixes first error, but adds new one:
> error, cannot allocate color 'bar_color'
>
> At this point I'd be happy to just get backwards to where I was. Don't  
> know how to fix this.
>
> My other computer fails rather differently. All appears to go well but  
> stays at 0.9.5.
>
> Chris Bennett
>
>

You want makefile and barcolor diff from here:
http://tin.tmux.org/~tobiasu/hgweb/scrotwm/.hg/patches/file/be77f834e084



Re: scrotwm

2009-09-14 Thread Chris Bennett



Chris Bennett wrote:



Jacob Meuser wrote:

On Sun, Sep 13, 2009 at 09:44:25PM -0500, Marco Peereboom wrote:
 

You got to have xenocara installed.

On Sun, Sep 13, 2009 at 08:48:09PM -0500, Chris Bennett wrote:
   

I just tried this on a different computer and got the following error:

# make obj && make depend && make
/bin/sh: cd: /usr/xenocara - No such file or directory
*** Error code 1

Stop in /home/chrisbenn/Desktop/scrotwm-0.9.6 (line 274 of  
/usr/X11R6/share/mk/bsd.xorg.mk).

#

So this means that something must be necessary in xenocara, which 
I  haven't kept up to date as well as ports.

(this laptop doesn't even have it at all)

I will update xenocara and see if that fixes problem.
  


fwiw, all you realy need is the /usr/xenocara directory (or skip
`make obj' or define NOOBJ ...).

  

Well, this worked but also failed, badly.

After this, I appeared to have gotten 0.9.6, but the Alt - P no longer 
worked.

(Every other use of Alt key appears to work ok)

I tried updating dmenu, but that failed (older snapshot)
Deleting both packages didn't help, so I upgraded to Sept. 12 snapshot.

I still cannot use Alt - P.
I get error:
dmenu - can't load library 'usr/local/lib/libswmhack.so.0.0

I can't get back to older version of 0.9.5, no matter what I delete 
and add.


I even tried pulling libswmhack.so.0.0 out and putting it in 
/usr/local/lib


Fixes first error, but adds new one:
error, cannot allocate color 'bar_color'

At this point I'd be happy to just get backwards to where I was. Don't 
know how to fix this.


My other computer fails rather differently. All appears to go well but 
stays at 0.9.5.


Chris Bennett


Ok, I managed to get back to a working 0.9.5.

After carefully pkg_deleteing and using pkg_info -L on dmenu and 
scrotwm, I manually deleted all those files.


Yet I was still getting a scrotwm opening at startx.

I did   find / -name scrotwm -print

I found a /usr/X11R6/bin/scrotwm

after removing this, I was able to pkg_add scrotwm, all ok now.

Chris Bennett



Re: scrotwm

2009-09-14 Thread Chris Bennett



Jacob Meuser wrote:

On Sun, Sep 13, 2009 at 09:44:25PM -0500, Marco Peereboom wrote:
  

You got to have xenocara installed.

On Sun, Sep 13, 2009 at 08:48:09PM -0500, Chris Bennett wrote:


I just tried this on a different computer and got the following error:

# make obj && make depend && make
/bin/sh: cd: /usr/xenocara - No such file or directory
*** Error code 1

Stop in /home/chrisbenn/Desktop/scrotwm-0.9.6 (line 274 of  
/usr/X11R6/share/mk/bsd.xorg.mk).

#

So this means that something must be necessary in xenocara, which I  
haven't kept up to date as well as ports.

(this laptop doesn't even have it at all)

I will update xenocara and see if that fixes problem.
  


fwiw, all you realy need is the /usr/xenocara directory (or skip
`make obj' or define NOOBJ ...).

  

Well, this worked but also failed, badly.

After this, I appeared to have gotten 0.9.6, but the Alt - P no longer 
worked.

(Every other use of Alt key appears to work ok)

I tried updating dmenu, but that failed (older snapshot)
Deleting both packages didn't help, so I upgraded to Sept. 12 snapshot.

I still cannot use Alt - P.
I get error:
dmenu - can't load library 'usr/local/lib/libswmhack.so.0.0

I can't get back to older version of 0.9.5, no matter what I delete and add.

I even tried pulling libswmhack.so.0.0 out and putting it in /usr/local/lib

Fixes first error, but adds new one:
error, cannot allocate color 'bar_color'

At this point I'd be happy to just get backwards to where I was. Don't 
know how to fix this.


My other computer fails rather differently. All appears to go well but 
stays at 0.9.5.


Chris Bennett





Re: scrotwm

2009-09-13 Thread Jacob Meuser
On Sun, Sep 13, 2009 at 09:44:25PM -0500, Marco Peereboom wrote:
> You got to have xenocara installed.
> 
> On Sun, Sep 13, 2009 at 08:48:09PM -0500, Chris Bennett wrote:
> > I just tried this on a different computer and got the following error:
> >
> > # make obj && make depend && make
> > /bin/sh: cd: /usr/xenocara - No such file or directory
> > *** Error code 1
> > 
> > Stop in /home/chrisbenn/Desktop/scrotwm-0.9.6 (line 274 of  
> > /usr/X11R6/share/mk/bsd.xorg.mk).
> > #
> >
> > So this means that something must be necessary in xenocara, which I  
> > haven't kept up to date as well as ports.
> > (this laptop doesn't even have it at all)
> >
> > I will update xenocara and see if that fixes problem.

fwiw, all you realy need is the /usr/xenocara directory (or skip
`make obj' or define NOOBJ ...).

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: scrotwm

2009-09-13 Thread Marco Peereboom
You got to have xenocara installed.

On Sun, Sep 13, 2009 at 08:48:09PM -0500, Chris Bennett wrote:
> I just tried this on a different computer and got the following error:
>
> # make obj && make depend && make
> /bin/sh: cd: /usr/xenocara - No such file or directory
> *** Error code 1
>
> Stop in /home/chrisbenn/Desktop/scrotwm-0.9.6 (line 274 of  
> /usr/X11R6/share/mk/bsd.xorg.mk).
> #
>
> So this means that something must be necessary in xenocara, which I  
> haven't kept up to date as well as ports.
> (this laptop doesn't even have it at all)
>
> I will update xenocara and see if that fixes problem.
>
> Thanks
>
> Marco Peereboom wrote:
>> $ ftp http://www.peereboom.us/scrotwm/snapshot/scrotwm-0.9.6.tgz
>> Trying 67.78.34.36...
>> Requesting http://www.peereboom.us/scrotwm/snapshot/scrotwm-0.9.6.tgz
>> 100% |****************| 38548   00:00
>> Successfully retrieved file.
>> $ tar zxvf scrotwm-0.9.6.tgz
>> scrotwm-0.9.6
>> scrotwm-0.9.6/lib
>> scrotwm-0.9.6/lib/Makefile
>> scrotwm-0.9.6/lib/shlib_version
>> scrotwm-0.9.6/lib/swm_hack.c
>> scrotwm-0.9.6/linux
>> scrotwm-0.9.6/linux/Makefile
>> scrotwm-0.9.6/linux/linux.c
>> scrotwm-0.9.6/linux/swm-linux.diff
>> scrotwm-0.9.6/linux/util.h
>> scrotwm-0.9.6/Makefile
>> scrotwm-0.9.6/baraction.sh
>> scrotwm-0.9.6/initscreen.sh
>> scrotwm-0.9.6/screenshot.sh
>> scrotwm-0.9.6/scrotwm.1
>> scrotwm-0.9.6/scrotwm.c
>> scrotwm-0.9.6/scrotwm.conf
>> $ make obj && make depend && make making /tmp/scrotwm-0.9.6/obj
>> ===> lib
>> making /tmp/scrotwm-0.9.6/lib/obj
>> mkdep -a -I/usr/X11R6/include /tmp/scrotwm-0.9.6/scrotwm.c
>> ===> lib
>> mkdep -a -I/usr/X11R6/include /tmp/scrotwm-0.9.6/lib/swm_hack.c
>> cc -O2 -pipe  -std=c89 -Wall -Wno-uninitialized -ggdb3 -I/usr/X11R6/include 
>> -c /tmp/scrotwm-0.9.6/scrotwm.c
>> cc   -o scrotwm scrotwm.o -lutil -L/usr/X11R6/lib -lX11 -lXrandr
>> /usr/X11R6/lib/libX11.so.12.0: warning: strcpy() is almost always misused, 
>> please use strlcpy()
>> /usr/X11R6/lib/libX11.so.12.0: warning: strcat() is almost always misused, 
>> please use strlcat()
>> /usr/X11R6/lib/libX11.so.12.0: warning: sprintf() is often misused, please 
>> use snprintf()
>> nroff -Tascii -mandoc /tmp/scrotwm-0.9.6/scrotwm.1 > scrotwm.cat1
>> ===> lib
>> cc -O2 -pipe -g -Wall -Wno-uninitialized -ggdb3 -I/usr/X11R6/include -c 
>> /tmp/scrotwm-0.9.6/lib/swm_hack.c -o swm_hack.o
>> building standard swmhack library
>> ranlib libswmhack.a
>> cc -O2 -pipe -g -Wall -Wno-uninitialized -ggdb3 -I/usr/X11R6/include -c 
>> -fpic -DPIC /tmp/scrotwm-0.9.6/lib/swm_hack.c -o swm_hack.so
>> building shared object swmhack library
>> ranlib libswmhack_pic.a
>> building shared swmhack library (version 0.0)
>> cc -shared -fpic  -o libswmhack.so.0.0  `lorder swm_hack.so|tsort -q`
>> $
>>
>> Works for me
>>
>> On Sun, Sep 13, 2009 at 06:43:39PM -0500, Chris Bennett wrote:
>>   
>>> That sounds great!
>>>
>>> A while back I asked about installing from snaps, you replied:
>>>
>>> It should work straight from snaps by:
>>> tar zxvf scrotwm-v.tgz
>>> cd scrotwm-v
>>> make obj
>>> make depend
>>> make
>>> make install
>>>
>>> I couldn't get that to work back then, or now.
>>> Is there some other step left out? Deleting older scrotwm first also  
>>> doesn't help.
>>>
>>> Thanks,
>>>
>>> Chris Bennett
>>>
>>> Marco Peereboom wrote:
>>> 
>>>> I dropped a new release (0.9.6).  Fixed a bunch of little bugs reported by 
>>>> all
>>>> kinds of people.
>>>>
>>>> It also adds the capability to have dynamic key bindings.  That code
>>>> courtesy of d...@scrotwm.org.
>>>>
>>>>
>>>> 
>>> -- 
>>> A human being should be able to change a diaper, plan an invasion,
>>> butcher a hog, conn a ship, design a building, write a sonnet, balance
>>> accounts, build a wall, set a bone, comfort the dying, take orders,
>>> give orders, cooperate, act alone, solve equations, analyze a new
>>> problem, pitch manure, program a computer, cook a tasty meal, fight
>>> efficiently, die gallantly. Specialization is for insects.
>>>   -- Robert Heinlein
>>>
>>> 
>>
>>
>>   
>



Re: scrotwm

2009-09-13 Thread Chris Bennett

I just tried this on a different computer and got the following error:

# make obj && make depend && make
/bin/sh: cd: /usr/xenocara - No such file or directory
*** Error code 1

Stop in /home/chrisbenn/Desktop/scrotwm-0.9.6 (line 274 of 
/usr/X11R6/share/mk/bsd.xorg.mk).

#

So this means that something must be necessary in xenocara, which I 
haven't kept up to date as well as ports.

(this laptop doesn't even have it at all)

I will update xenocara and see if that fixes problem.

Thanks

Marco Peereboom wrote:

$ ftp http://www.peereboom.us/scrotwm/snapshot/scrotwm-0.9.6.tgz
Trying 67.78.34.36...
Requesting http://www.peereboom.us/scrotwm/snapshot/scrotwm-0.9.6.tgz
100% || 38548   00:00
Successfully retrieved file.
$ tar zxvf scrotwm-0.9.6.tgz
scrotwm-0.9.6
scrotwm-0.9.6/lib
scrotwm-0.9.6/lib/Makefile
scrotwm-0.9.6/lib/shlib_version
scrotwm-0.9.6/lib/swm_hack.c
scrotwm-0.9.6/linux
scrotwm-0.9.6/linux/Makefile
scrotwm-0.9.6/linux/linux.c
scrotwm-0.9.6/linux/swm-linux.diff
scrotwm-0.9.6/linux/util.h
scrotwm-0.9.6/Makefile
scrotwm-0.9.6/baraction.sh
scrotwm-0.9.6/initscreen.sh
scrotwm-0.9.6/screenshot.sh
scrotwm-0.9.6/scrotwm.1
scrotwm-0.9.6/scrotwm.c
scrotwm-0.9.6/scrotwm.conf
$ make obj && make depend && make 
making /tmp/scrotwm-0.9.6/obj

===> lib
making /tmp/scrotwm-0.9.6/lib/obj
mkdep -a -I/usr/X11R6/include /tmp/scrotwm-0.9.6/scrotwm.c
===> lib
mkdep -a -I/usr/X11R6/include /tmp/scrotwm-0.9.6/lib/swm_hack.c
cc -O2 -pipe  -std=c89 -Wall -Wno-uninitialized -ggdb3 -I/usr/X11R6/include -c 
/tmp/scrotwm-0.9.6/scrotwm.c
cc   -o scrotwm scrotwm.o -lutil -L/usr/X11R6/lib -lX11 -lXrandr
/usr/X11R6/lib/libX11.so.12.0: warning: strcpy() is almost always misused, 
please use strlcpy()
/usr/X11R6/lib/libX11.so.12.0: warning: strcat() is almost always misused, 
please use strlcat()
/usr/X11R6/lib/libX11.so.12.0: warning: sprintf() is often misused, please use 
snprintf()
nroff -Tascii -mandoc /tmp/scrotwm-0.9.6/scrotwm.1 > scrotwm.cat1
===> lib
cc -O2 -pipe -g -Wall -Wno-uninitialized -ggdb3 -I/usr/X11R6/include -c 
/tmp/scrotwm-0.9.6/lib/swm_hack.c -o swm_hack.o
building standard swmhack library
ranlib libswmhack.a
cc -O2 -pipe -g -Wall -Wno-uninitialized -ggdb3 -I/usr/X11R6/include -c -fpic 
-DPIC /tmp/scrotwm-0.9.6/lib/swm_hack.c -o swm_hack.so
building shared object swmhack library
ranlib libswmhack_pic.a
building shared swmhack library (version 0.0)
cc -shared -fpic  -o libswmhack.so.0.0  `lorder swm_hack.so|tsort -q`
$

Works for me

On Sun, Sep 13, 2009 at 06:43:39PM -0500, Chris Bennett wrote:
  

That sounds great!

A while back I asked about installing from snaps, you replied:

It should work straight from snaps by:
tar zxvf scrotwm-v.tgz
cd scrotwm-v
make obj
make depend
make
make install

I couldn't get that to work back then, or now.
Is there some other step left out? Deleting older scrotwm first also  
doesn't help.


Thanks,

Chris Bennett

Marco Peereboom wrote:


I dropped a new release (0.9.6).  Fixed a bunch of little bugs reported by all
kinds of people.

It also adds the capability to have dynamic key bindings.  That code
courtesy of d...@scrotwm.org.


  
  

--
A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet, balance
accounts, build a wall, set a bone, comfort the dying, take orders,
give orders, cooperate, act alone, solve equations, analyze a new
problem, pitch manure, program a computer, cook a tasty meal, fight
efficiently, die gallantly. Specialization is for insects.
  -- Robert Heinlein





  




Re: scrotwm

2009-09-13 Thread Marco Peereboom
$ ftp http://www.peereboom.us/scrotwm/snapshot/scrotwm-0.9.6.tgz
Trying 67.78.34.36...
Requesting http://www.peereboom.us/scrotwm/snapshot/scrotwm-0.9.6.tgz
100% || 38548   00:00
Successfully retrieved file.
$ tar zxvf scrotwm-0.9.6.tgz
scrotwm-0.9.6
scrotwm-0.9.6/lib
scrotwm-0.9.6/lib/Makefile
scrotwm-0.9.6/lib/shlib_version
scrotwm-0.9.6/lib/swm_hack.c
scrotwm-0.9.6/linux
scrotwm-0.9.6/linux/Makefile
scrotwm-0.9.6/linux/linux.c
scrotwm-0.9.6/linux/swm-linux.diff
scrotwm-0.9.6/linux/util.h
scrotwm-0.9.6/Makefile
scrotwm-0.9.6/baraction.sh
scrotwm-0.9.6/initscreen.sh
scrotwm-0.9.6/screenshot.sh
scrotwm-0.9.6/scrotwm.1
scrotwm-0.9.6/scrotwm.c
scrotwm-0.9.6/scrotwm.conf
$ make obj && make depend && make 
making /tmp/scrotwm-0.9.6/obj
===> lib
making /tmp/scrotwm-0.9.6/lib/obj
mkdep -a -I/usr/X11R6/include /tmp/scrotwm-0.9.6/scrotwm.c
===> lib
mkdep -a -I/usr/X11R6/include /tmp/scrotwm-0.9.6/lib/swm_hack.c
cc -O2 -pipe  -std=c89 -Wall -Wno-uninitialized -ggdb3 -I/usr/X11R6/include -c 
/tmp/scrotwm-0.9.6/scrotwm.c
cc   -o scrotwm scrotwm.o -lutil -L/usr/X11R6/lib -lX11 -lXrandr
/usr/X11R6/lib/libX11.so.12.0: warning: strcpy() is almost always misused, 
please use strlcpy()
/usr/X11R6/lib/libX11.so.12.0: warning: strcat() is almost always misused, 
please use strlcat()
/usr/X11R6/lib/libX11.so.12.0: warning: sprintf() is often misused, please use 
snprintf()
nroff -Tascii -mandoc /tmp/scrotwm-0.9.6/scrotwm.1 > scrotwm.cat1
===> lib
cc -O2 -pipe -g -Wall -Wno-uninitialized -ggdb3 -I/usr/X11R6/include -c 
/tmp/scrotwm-0.9.6/lib/swm_hack.c -o swm_hack.o
building standard swmhack library
ranlib libswmhack.a
cc -O2 -pipe -g -Wall -Wno-uninitialized -ggdb3 -I/usr/X11R6/include -c -fpic 
-DPIC /tmp/scrotwm-0.9.6/lib/swm_hack.c -o swm_hack.so
building shared object swmhack library
ranlib libswmhack_pic.a
building shared swmhack library (version 0.0)
cc -shared -fpic  -o libswmhack.so.0.0  `lorder swm_hack.so|tsort -q`
$

Works for me

On Sun, Sep 13, 2009 at 06:43:39PM -0500, Chris Bennett wrote:
> That sounds great!
>
> A while back I asked about installing from snaps, you replied:
>
> It should work straight from snaps by:
> tar zxvf scrotwm-v.tgz
> cd scrotwm-v
> make obj
> make depend
> make
> make install
>
> I couldn't get that to work back then, or now.
> Is there some other step left out? Deleting older scrotwm first also  
> doesn't help.
>
> Thanks,
>
> Chris Bennett
>
> Marco Peereboom wrote:
>> I dropped a new release (0.9.6).  Fixed a bunch of little bugs reported by 
>> all
>> kinds of people.
>>
>> It also adds the capability to have dynamic key bindings.  That code
>> courtesy of d...@scrotwm.org.
>>
>>
>>   
>
> -- 
> A human being should be able to change a diaper, plan an invasion,
> butcher a hog, conn a ship, design a building, write a sonnet, balance
> accounts, build a wall, set a bone, comfort the dying, take orders,
> give orders, cooperate, act alone, solve equations, analyze a new
> problem, pitch manure, program a computer, cook a tasty meal, fight
> efficiently, die gallantly. Specialization is for insects.
>   -- Robert Heinlein
>



  1   2   >