diff options
| author | stkhan <personal@slickd.xyz> | 2023-06-13 17:14:48 -0500 |
|---|---|---|
| committer | stkhan <personal@slickd.xyz> | 2023-06-13 17:14:48 -0500 |
| commit | 27d2f5ed001397dbcc23b3d55708502b8488e88a (patch) | |
| tree | 7ee3dd61190a096e7f64e66239981f85a4da6d27 /wm | |
| parent | db14a74d6a24f0c4402ffc953cbe372cc408ebf8 (diff) | |
Remove warnings on compile and change redshift cmd
Diffstat (limited to 'wm')
| -rw-r--r-- | wm/dmenu-5.2/config.mk | 2 | ||||
| -rw-r--r-- | wm/dwm-6.4/config.h | 4 | ||||
| -rw-r--r-- | wm/dwm-6.4/config.mk | 2 | ||||
| -rw-r--r-- | wm/dwmblocks/dwmblocks.c | 1 |
4 files changed, 4 insertions, 5 deletions
diff --git a/wm/dmenu-5.2/config.mk b/wm/dmenu-5.2/config.mk index 30c43a2..7570ff1 100644 --- a/wm/dmenu-5.2/config.mk +++ b/wm/dmenu-5.2/config.mk @@ -25,7 +25,7 @@ LIBS = -L$(X11LIB) -lX11 $(XINERAMALIBS) $(FREETYPELIBS) # flags CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION)\" $(XINERAMAFLAGS) -CFLAGS = -std=c99 -pedantic -Wall -O3 $(INCS) $(CPPFLAGS) +CFLAGS = -std=c99 -pedantic -O3 $(INCS) $(CPPFLAGS) LDFLAGS = $(LIBS) # compiler and linker diff --git a/wm/dwm-6.4/config.h b/wm/dwm-6.4/config.h index bfc5e0e..5f0067b 100644 --- a/wm/dwm-6.4/config.h +++ b/wm/dwm-6.4/config.h @@ -25,8 +25,8 @@ static const char *colors[][3] = { }; static const char *const autostart[] = { - "redshift", "-l", "$(curl -s https://location.services.mozilla.com/v1/geolocate?key=geoclue | jq -r '\(.location.lat:\(.location.lng\)'", NULL, - "xsetroot", "-name", "Loading dwmblocks...", NULL, + "redshift_run", NULL, + "xsetroot", "-name", "Loading dwmblocks...", NULL, "dwmblocks", NULL, "fehbg", NULL, "unclutter", NULL, diff --git a/wm/dwm-6.4/config.mk b/wm/dwm-6.4/config.mk index 8847583..e4ba4ee 100644 --- a/wm/dwm-6.4/config.mk +++ b/wm/dwm-6.4/config.mk @@ -28,7 +28,7 @@ LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} -lImlib2 -lXrender -lX1 # flags CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} #CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS} -CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS} +CFLAGS = -std=c99 -pedantic -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS} LDFLAGS = ${LIBS} # Solaris diff --git a/wm/dwmblocks/dwmblocks.c b/wm/dwmblocks/dwmblocks.c index 62c481c..b70d29c 100644 --- a/wm/dwmblocks/dwmblocks.c +++ b/wm/dwmblocks/dwmblocks.c @@ -53,7 +53,6 @@ static void (*writestatus) () = pstdout; static char statusbar[LENGTH(blocks)][CMDLENGTH] = {0}; static char statusstr[2][STATUSLENGTH]; static int statusContinue = 1; -static int returnStatus = 0; //opens process *cmd and stores output in *output void getcmd(const Block *block, char *output) |