config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 0092620cc917868cb654147adb6811553e8c3a7e
parent 6580d22ede48f491356bf2320fed867ab82f2644
Author: Jacob R. Edwards <n/a>
Date:   Sat,  5 Feb 2022 20:24:57 -0800

Add herbe fork

Diffstat:
Mlocal/src/src/fork/Makefile | 1+
Mlocal/src/src/fork/common.mk | 5+++++
Mlocal/src/src/fork/dmenu/Makefile | 2+-
Alocal/src/src/fork/herbe/Makefile | 7+++++++
Alocal/src/src/fork/herbe/patches/config.diff | 22++++++++++++++++++++++
Alocal/src/src/fork/herbe/patches/openbsd.diff | 10++++++++++
Alocal/src/src/fork/http.mk | 4++++
Dlocal/src/src/fork/tar.mk | 9---------
8 files changed, 50 insertions(+), 10 deletions(-)

diff --git a/local/src/src/fork/Makefile b/local/src/src/fork/Makefile @@ -1,5 +1,6 @@ SUBDIRS =\ dmenu\ + herbe\ all distclean clean patch build install uninstall: .for SUBDIR in ${SUBDIRS} diff --git a/local/src/src/fork/common.mk b/local/src/src/fork/common.mk @@ -16,4 +16,9 @@ patch: ${dir} > patched; \ fi +${dir}: ${arc} + case ${arc} in \ + (*.gz) gunzip;; \ + esac < ${arc} | pax -r + .PHONY: all distclean clean patch diff --git a/local/src/src/fork/dmenu/Makefile b/local/src/src/fork/dmenu/Makefile @@ -3,5 +3,5 @@ arc = ${dir}.tar.gz url = http://dl.suckless.org/tools/${arc} .include "../common.mk" -.include "../tar.mk" +.include "../http.mk" .include "../suckless.mk" diff --git a/local/src/src/fork/herbe/Makefile b/local/src/src/fork/herbe/Makefile @@ -0,0 +1,7 @@ +dir = herbe-master +arc = herbe-master.tar.gz +url = https://github.com/dudik/herbe/archive/master.tar.gz + +.include "../common.mk" +.include "../http.mk" +.include "../suckless.mk" diff --git a/local/src/src/fork/herbe/patches/config.diff b/local/src/src/fork/herbe/patches/config.diff @@ -0,0 +1,22 @@ +--- /dev/null Sat Feb 5 20:18:49 2022 ++++ config.h Sat Feb 5 20:18:38 2022 +@@ -0,0 +1,19 @@ ++static const char *background_color = "#000"; ++static const char *border_color = "#EAEAEA"; ++static const char *font_color = "#FFF"; ++static const char *font_pattern = "monospace:size=10"; ++static const unsigned line_spacing = 5; ++static const unsigned int padding = 10; ++ ++static const unsigned int width = 450; ++static const unsigned int border_size = 2; ++static const unsigned int pos_x = 10; ++static const unsigned int pos_y = 30; ++ ++enum corners { TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT }; ++enum corners corner = TOP_RIGHT; ++ ++static const unsigned int duration = 5; /* in seconds */ ++ ++#define DISMISS_BUTTON Button1 ++#define ACTION_BUTTON Button3 diff --git a/local/src/src/fork/herbe/patches/openbsd.diff b/local/src/src/fork/herbe/patches/openbsd.diff @@ -0,0 +1,10 @@ +diff --git a/Makefile b/Makefile +index 3225e36..eb5b382 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,4 +1,4 @@ +-CFLAGS = -Wall -Wextra -pedantic -lX11 -lXft -I/usr/include/freetype2 -pthread ++CFLAGS = -Wall -Wextra -pedantic -I/usr/X11R6/include -L/usr/X11R6/lib -lX11 -lXft -I/usr/X11R6/include/freetype2 -pthread + + PREFIX ?= /usr/local + CC ?= cc diff --git a/local/src/src/fork/http.mk b/local/src/src/fork/http.mk @@ -0,0 +1,4 @@ +# HTTP distribution target + +${arc}: + curl -SsL -o ${arc} ${url} diff --git a/local/src/src/fork/tar.mk b/local/src/src/fork/tar.mk @@ -1,9 +0,0 @@ -# tar archive distribution targets - -${arc}: - curl -SsL -o ${arc} ${url} - -${dir}: ${arc} - case ${arc} in \ - (*.gz) gunzip;; \ - esac < ${arc} | pax -r