From 10495b48bfbf7c4e21b8938b4f8637ba9f433d87 Mon Sep 17 00:00:00 2001 From: speedie Date: Tue, 4 Apr 2023 21:39:38 +0200 Subject: [PATCH] add experimental configuration file profiles still need to be rewritten --- Makefile | 2 +- PKGBUILD | 2 +- README.html | 14 +- README.md | 16 +- build.sh | 11 ++ buildconf | 1 + docs/docs.md | 24 ++- docs/example.Xresources | 2 +- docs/spmenu.conf | 112 ++++++++++- host.mk | 5 +- libs/arg.c | 2 +- libs/argv.c | 4 +- libs/conf/config.c | 286 ++++++++++++++++++++++++++- libs/draw.c | 4 +- libs/xresources.h | 2 +- options.h | 8 +- spmenu.1 | 21 +- spmenu.c | 13 +- themes/README.md | 14 +- themes/install.sh | 7 +- themes/{ => legacy}/Catppuccin | 0 themes/{ => legacy}/Cyberpunk-Neon | 0 themes/{ => legacy}/Doom-One | 0 themes/{ => legacy}/Dracula | 0 themes/{ => legacy}/Gruvbox-Dark | 0 themes/{ => legacy}/No-Global-Colors | 0 themes/{ => legacy}/Nord | 0 themes/{ => legacy}/Solarized-Dark | 0 themes/{ => legacy}/Tokyo-Night | 0 themes/sample.theme | 9 + toggle.mk | 27 +-- 31 files changed, 535 insertions(+), 51 deletions(-) rename themes/{ => legacy}/Catppuccin (100%) rename themes/{ => legacy}/Cyberpunk-Neon (100%) rename themes/{ => legacy}/Doom-One (100%) rename themes/{ => legacy}/Dracula (100%) rename themes/{ => legacy}/Gruvbox-Dark (100%) rename themes/{ => legacy}/No-Global-Colors (100%) rename themes/{ => legacy}/Nord (100%) rename themes/{ => legacy}/Solarized-Dark (100%) rename themes/{ => legacy}/Tokyo-Night (100%) create mode 100644 themes/sample.theme diff --git a/Makefile b/Makefile index d0dfd32..75c42f6 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ include toggle.mk # spmenu version VERSION = 0.3.3 -CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700L -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION)\" $(XINERAMATOGGLE) $(BDTOGGLE) $(PANGOTOGGLE) $(IMLIB2TOGGLE) +CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700L -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION)\" $(XINERAMATOGGLE) $(BDTOGGLE) $(PANGOTOGGLE) $(IMLIB2TOGGLE) $(LIBCONFIGTOGGLE) CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations $(OPT) $(INCS) $(CPPFLAGS) LDFLAGS = $(LIBS) INCS = -I$(X11INC) -I$(FREETYPEINC) -I$(BDINC) `pkg-config --cflags $(XFTCONF) $(PANGOCONF) $(PANGOXFTCONF) $(OPENSSLCONF) $(LIBCONFIGCONF)` diff --git a/PKGBUILD b/PKGBUILD index 8286f78..91374e9 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -7,7 +7,7 @@ pkgdesc="Fancy dynamic menu, compatible with dmenu!" url="https://git.speedie/gq/spmenu" arch=(i686 x86_64) license=(MIT) -depends=(sh libxinerama libxft pango libx11 imlib2 fribidi gcc) +depends=(sh libxinerama libxft pango libx11 imlib2 fribidi libconfig gcc) makedepends=(git) provides=($pkgname) conflicts=($pkgname) diff --git a/README.html b/README.html index adf1149..9474f78 100644 --- a/README.html +++ b/README.html @@ -20,6 +20,7 @@ href="https://git.speedie.gq/speedwm">speedwm.

course if you want, this is free software so you can use it in your own build.

+
  • libconfig +
  • Installation (GNU/Linux, *BSD, macOS/OS X/Mac OS X)

    @@ -166,8 +177,7 @@ but maybe at some point in the distant future
  • Wayland: Wayland support, but only if it doesn’t require writing any extra code which as of now seems unlikely.