David Coppa wrote:
> On Wed, Mar 1, 2017 at 11:49 AM, Raf Czlonka <[email protected]> wrote:
> > A while ago, Keith Packard wrote small display configuration tool
> > called x-on-resize[0] which might be exactly what you are looking
> > for but I have no idea how much effort would it be to get it
> > working/ported on/to OpenBSD.
> >
> > [0] https://keithp.com/blogs/x-on-resize/
>
> It builds out-of-the-box
For anyone who doesn't have autotools installed or doesn't want to mess with
it, you can also build by hand very easily. Simple patch to unautofuck below.
cc -I/usr/X11R6/include -L/usr/X11R6/lib -lX11 -lXrandr x-on-resize.c
diff --git a/x-on-resize.c b/x-on-resize.c
index 55692c1..192db6f 100644
--- a/x-on-resize.c
+++ b/x-on-resize.c
@@ -21,7 +21,6 @@
#include <unistd.h>
#include <X11/Xlib.h>
#include <X11/extensions/Xrandr.h>
-#include "config.h"
struct output_info {
struct output_info *next;
@@ -148,7 +147,7 @@ main (int argc, char **argv)
start = 1;
break;
case 'v':
- printf("%s\n", PACKAGE_STRING);
+ printf("%s\n", "resize motherfucker");
exit(0);
case 'h':
default: