birdwm

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 76a6d37992693bcd907754539817e2609f91cad7
parent 255c1c1e6159e52283f45b1ba484f24ad9af9b3c
Author: bdmfegys@duck.com <bdmfegys@duck.com>
Date:   Tue, 30 Apr 2024 18:36:52 -0400

config.mk: add support for XDG_PICTURES on wallpaper folder setup

Diffstat:
Mconfig.mk | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/config.mk b/config.mk @@ -11,12 +11,18 @@ X11INC = /usr/X11R6/include X11LIB = /usr/X11R6/lib # Xinerama, comment if you don't want it + XINERAMALIBS = -lXinerama XINERAMAFLAGS = -DXINERAMA # Wallpaper folder location, for wallpaper script: -WALLPAPERDIR = Pictures/wallpapers -GIFDIR = ${WALLPAPERDIR}/gif +ifeq (${XDG_PICTURES}, $(shell false)) + WALLPAPERDIR = Pictures/wallpapers + GIFDIR = ${WALLPAPERDIR}/gif +else + WALLPAPERDIR = ${XDG_PICTURES}/wallpapers + GIFDIR = ${WALLPAPERDIR}/gif +endif # freetype FREETYPELIBS = -lfontconfig -lXft