pkgsrc-WIP-changes archive

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

import shod



Module Name:	pkgsrc-wip
Committed By:	pin <voidpin%protonmail.com@localhost>
Pushed By:	pin
Date:		Sat Mar 27 18:32:04 2021 +0100
Changeset:	79c8b8d2cfdea0c95d83417ae757fd492e0d9175

Modified Files:
	Makefile
Added Files:
	shod/DESCR
	shod/Makefile
	shod/PLIST
	shod/distinfo
	shod/patches/patch-config.mk

Log Message:
import shod

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=79c8b8d2cfdea0c95d83417ae757fd492e0d9175

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                     |  1 +
 shod/DESCR                   | 45 ++++++++++++++++++++++++++++++++++++++++++++
 shod/Makefile                | 33 ++++++++++++++++++++++++++++++++
 shod/PLIST                   |  3 +++
 shod/distinfo                |  7 +++++++
 shod/patches/patch-config.mk | 17 +++++++++++++++++
 6 files changed, 106 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index b175b855ee..848d87c9bf 100644
--- a/Makefile
+++ b/Makefile
@@ -5136,6 +5136,7 @@ SUBDIR+=	sharif-univ-ttf
 SUBDIR+=	shed
 SUBDIR+=	shell-fm
 SUBDIR+=	shellinabox
+SUBDIR+=	shod
 SUBDIR+=	shotcut
 SUBDIR+=	shotwell
 SUBDIR+=	shoutcast
diff --git a/shod/DESCR b/shod/DESCR
new file mode 100644
index 0000000000..7424c6a319
--- /dev/null
+++ b/shod/DESCR
@@ -0,0 +1,45 @@
+Shod is an hybrid (tiling and floating) multimonitor X11 window manager.
+Shod sets no keybindings; reads no configuration other than X resources;
+and works only via mouse with a given key modifier (Alt by default), and
+by responding to client messages with EWMH hints (so you must use wmctrl
+to control shod).
+
+WARNING: Shod is attempt of mine to write a Wm and better understand how
+         X11 works, Shod is only meant for me for educational purposes.
+         Shod is an experimental project, and should be used with caution.
+
+WARNING: You must have wmctrl(1) installed in order to control Shod.
+
+Non-features:
+• No maximization (Shod uses maximization hints to implement tiling).
+• No tags/groups (Shod uses desktops rather than dwm-like tags).
+• No viewports (Shod does not support fvwm-like viewports).
+• No keybindings (Use sxhkd(1) for binding keys).
+• No bar/panels (I do not use panels, so I add no support for them).
+
+Features:
+• Shod uses EWMH-based maximization to implement tiled windows; that is,
+  when you maximize a window (seting BOTH '_NET_WM_STATE_MAXIMIZED_HORZ'
+  and '_NET_WM_STATE_MAXIMIZED_VERT') it is tiled rather than maximized
+  (that means that classic maximization isn't possible with shod).
+• Shod uses a columnated window tiling style (the same used by wmii(1)
+  and acme(1)).  In this style, each window occupies a row in a column.
+  In order to change the column of a window, just move it left or right
+  with wmctrl(1); and to swap a window with the one above or below, just
+  move it up or down.
+• Shod places floating windows in unoccupied regions of the monitor.
+  The first floating window is spawned in the center of the monitor.
+• Shod manages desktops just like how GNOME implements “actions”.  If a
+  window is open on an empty desktop, it creates a new empty desktop on
+  that monitor.   When a desktop has no window, this desktop is deleted.
+• Each monitor has its own set of workspaces.  For example, if you have
+  two monitors you will have two desktops being shown at the same time,
+  one on each monitor.  In order to change the selected monitor just
+  click on a window or on the root window of that monitor.  In order to
+  change the monitor of a window just move this window to another
+  monitor or move this window to a workspace bound to another monitor.
+• You can use the .focusbuttons compile-time option (set in config.h) to
+  use either a focus-follow-pointer style or a click-to-focus style.
+  You can even specify which mouse button triggers the click-to-focus
+  style.  The related .raisebuttons option specify which mouse buttons
+  raise a window.
diff --git a/shod/Makefile b/shod/Makefile
new file mode 100644
index 0000000000..84af1513f4
--- /dev/null
+++ b/shod/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD$
+
+DISTNAME=	shod-0.3.2
+CATEGORIES=	wm
+MASTER_SITES=	${MASTER_SITE_GITHUB:=phillbush/}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	pkgsrc-usesr%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/phillbush/shod/
+COMMENT=	Hybrid (floating and tiling) tabbed window manager
+LICENSE=	mit
+
+SUBST_CLASSES+=		prefix
+SUBST_MESSAGE.prefix=	Fixing paths.
+SUBST_STAGE.prefix=	pre-configure
+SUBST_FILES.prefix+=	config.mk
+SUBST_SED.prefix+=	-e 's,/usr/local,${PREFIX},g'
+SUBST_SED.prefix+=	-e 's,/usr/X11R6,${X11BASE},g'
+SUBST_SED.prefix+=	-e 's,share/man,${PKGMANDIR},g'
+
+INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/shod ${DESTDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/shod.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
+DEPENDS+=	wmctrl-[0-9]*:../../wm/wmctrl
+DEPENDS+=	sxhkd-[0-9]*:../../x11/sxhkd
+
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXinerama/buildlink3.mk"
+.include "../../x11/libXpm/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/shod/PLIST b/shod/PLIST
new file mode 100644
index 0000000000..32978e7f60
--- /dev/null
+++ b/shod/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/shod
+man/man1/shod.1
diff --git a/shod/distinfo b/shod/distinfo
new file mode 100644
index 0000000000..4193a47471
--- /dev/null
+++ b/shod/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (shod-0.3.2.tar.gz) = e8fb8dd42ac0ce9ad2d584b345555e6972777829
+RMD160 (shod-0.3.2.tar.gz) = e22fd5c495f70d6bcc45e3519c3bd02fe73fa89b
+SHA512 (shod-0.3.2.tar.gz) = 165e9936174f8b4ce820bb5dc04f5bbd1a9f8aa6d6f6a99cc792a210ea2f5566baba8bdbfaa3cfdd5d3061d9f76114f1239f3cdc4e669ee779cb07adece21588
+Size (shod-0.3.2.tar.gz) = 27454 bytes
+SHA1 (patch-config.mk) = 21c97fa4cac8d0fa067a45c16cff881ca912949f
diff --git a/shod/patches/patch-config.mk b/shod/patches/patch-config.mk
new file mode 100644
index 0000000000..fdfadf23ba
--- /dev/null
+++ b/shod/patches/patch-config.mk
@@ -0,0 +1,17 @@
+$NetBSD$
+
+Do not override user flags
+
+--- config.mk.orig	2021-03-14 03:14:43.000000000 +0000
++++ config.mk
+@@ -17,8 +17,8 @@ LIBS = -L${LOCALLIB} -L${X11LIB} -lX11 -
+ 
+ # flags
+ CPPFLAGS =
+-CFLAGS = -Wall -Wextra ${INCS} ${CPPFLAGS}
+-LDFLAGS = ${LIBS}
++CFLAGS += -Wall -Wextra ${INCS} ${CPPFLAGS}
++LDFLAGS += ${LIBS}
+ 
+ # compiler and linker
+ CC = cc


Home | Main Index | Thread Index | Old Index