pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/wm/wmctrl Initial import of wmctrl-1.05, a command lin...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3018345a86a8
branches:  trunk
changeset: 467311:3018345a86a8
user:      snj <snj%pkgsrc.org@localhost>
date:      Wed Jan 28 22:42:57 2004 +0000

description:
Initial import of wmctrl-1.05, a command line interface to an EWMH-compliant
window manager.

diffstat:

 wm/wmctrl/DESCR            |  12 ++++++++++++
 wm/wmctrl/Makefile         |  19 +++++++++++++++++++
 wm/wmctrl/PLIST            |   2 ++
 wm/wmctrl/distinfo         |   5 +++++
 wm/wmctrl/patches/patch-aa |  39 +++++++++++++++++++++++++++++++++++++++
 5 files changed, 77 insertions(+), 0 deletions(-)

diffs (97 lines):

diff -r 0f207a56f9c9 -r 3018345a86a8 wm/wmctrl/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/wmctrl/DESCR   Wed Jan 28 22:42:57 2004 +0000
@@ -0,0 +1,12 @@
+wmctrl is a command line tool to interact with an EWMH/NetWM compatible X
+Window Manager.
+
+It provides command line access to almost all the features defined in the EWMH
+specification.  Using it, it's possible to, for example, obtain information
+about the window manager, get a detailed list of desktops and managed windows,
+switch and resize desktops, change number of desktops, make windows
+full-screen, always-above or sticky, and activate, close, move, resize,
+maximize and minimize them.
+
+The command line access makes it easy to automate these tasks and execute them
+from any application that is able to run a command in response to some event. 
diff -r 0f207a56f9c9 -r 3018345a86a8 wm/wmctrl/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/wmctrl/Makefile        Wed Jan 28 22:42:57 2004 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/01/28 22:42:57 snj Exp $
+
+DISTNAME=              wmctrl-1.05
+CATEGORIES=            wm
+MASTER_SITES=          http://sweb.cz/tripie/utils/wmctrl/dist/
+
+MAINTAINER=            snj%NetBSD.org@localhost
+HOMEPAGE=              http://sweb.cz/tripie/utils/wmctrl/
+COMMENT=               Command line interface to an EWMH-compliant WM
+
+GNU_CONFIGURE=         YES
+USE_BUILDLINK2=                YES
+USE_PKGLOCALEDIR=      YES
+USE_X11=               YES
+
+.include "../../devel/glib2/buildlink2.mk"
+.include "../../devel/pkgconfig/buildlink2.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff -r 0f207a56f9c9 -r 3018345a86a8 wm/wmctrl/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/wmctrl/PLIST   Wed Jan 28 22:42:57 2004 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/01/28 22:42:57 snj Exp $
+bin/wmctrl
diff -r 0f207a56f9c9 -r 3018345a86a8 wm/wmctrl/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/wmctrl/distinfo        Wed Jan 28 22:42:57 2004 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/01/28 22:42:57 snj Exp $
+
+SHA1 (wmctrl-1.05.tar.gz) = 1d1cd71680ff1dac906a04775070a7f0b9711475
+Size (wmctrl-1.05.tar.gz) = 83049 bytes
+SHA1 (patch-aa) = 1531a6a6f02d195c10d4ead305aacb6aef1ce66a
diff -r 0f207a56f9c9 -r 3018345a86a8 wm/wmctrl/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/wmctrl/patches/patch-aa        Wed Jan 28 22:42:57 2004 +0000
@@ -0,0 +1,39 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/01/28 22:42:58 snj Exp $
+
+--- main.c.orig        2004-01-27 12:52:49.000000000 -0800
++++ main.c     2004-01-27 13:01:52.000000000 -0800
+@@ -145,6 +145,8 @@
+ "                           shaded, skip_taskbar, skip_pager, hidden,\n" \
+ "                           fullscreen, above, below\n" \
+ "\n" \
++"                       With Openbox3 you can also use \"undecorated\".\n" \
++"\n" \
+ "Workarounds:\n" \
+ "\n" \
+ "  DESKTOP_TITLES_INVALID_UTF8      Print non-ASCII desktop titles correctly\n" \
+@@ -736,7 +738,11 @@
+                 fputs("Invalid zero length property.\n", stderr);
+                 return EXIT_FAILURE;
+             }
+-            tmp_prop2 = g_strdup_printf("_NET_WM_STATE_%s", tmp2 = g_ascii_strup(p2, -1));
++            if (strcmp(p2,"undecorated") == 0) {
++                tmp_prop2 = g_strdup_printf("_OB_WM_STATE_%s", tmp2 = g_ascii_strup(p2,-1));
++            } else {
++                tmp_prop2 = g_strdup_printf("_NET_WM_STATE_%s", tmp2 = g_ascii_strup(p2,-1));
++            }
+             p_verbose("State 2: %s\n", tmp_prop2); 
+             prop2 = XInternAtom(disp, tmp_prop2, False);
+             g_free(tmp2);
+@@ -748,7 +754,11 @@
+             fputs("Invalid zero length property.\n", stderr);
+             return EXIT_FAILURE;
+         }
+-        tmp_prop1 = g_strdup_printf("_NET_WM_STATE_%s", tmp1 = g_ascii_strup(p1, -1));
++        if (strcmp(p1,"undecorated") == 0) {
++            tmp_prop1 = g_strdup_printf("_OB_WM_STATE_%s", tmp1 = g_ascii_strup(p1,-1));
++        } else {
++            tmp_prop1 = g_strdup_printf("_NET_WM_STATE_%s", tmp1 = g_ascii_strup(p1,-1));
++        }    
+         p_verbose("State 1: %s\n", tmp_prop1); 
+         prop1 = XInternAtom(disp, tmp_prop1, False);
+         g_free(tmp1);



Home | Main Index | Thread Index | Old Index