[update] Change the binary file name from dwm
to yo-dwm
#17
13 changed files with 34 additions and 34 deletions
|
@ -22,10 +22,10 @@ add_executable(yo_dwm
|
||||||
src/config.h
|
src/config.h
|
||||||
src/drw.c
|
src/drw.c
|
||||||
src/drw.h
|
src/drw.h
|
||||||
src/dwm.c
|
src/yo_dwm.c
|
||||||
src/movestack.c
|
src/movestack.c
|
||||||
src/transient.c
|
src/transient.c
|
||||||
src/util.c
|
src/util.c
|
||||||
src/util.h src/keys/mouse.c src/keys/mouse.h src/keys/functions.h src/dwm.h src/colors/dracula.h)
|
src/util.h src/keys/mouse.c src/keys/mouse.h src/keys/functions.h src/yo_dwm.h src/colors/dracula.h)
|
||||||
|
|
||||||
target_link_libraries(yo_dwm X11 Xft Xinerama)
|
target_link_libraries(yo_dwm X11 Xft Xinerama)
|
||||||
|
|
44
src/Makefile
44
src/Makefile
|
@ -3,13 +3,13 @@
|
||||||
|
|
||||||
include config.mk
|
include config.mk
|
||||||
|
|
||||||
SRC = drw.c dwm.c util.c
|
SRC = drw.c yo_dwm.c util.c
|
||||||
OBJ = ${SRC:.c=.o}
|
OBJ = ${SRC:.c=.o}
|
||||||
|
|
||||||
all: options dwm
|
all: options yo-dwm
|
||||||
|
|
||||||
options:
|
options:
|
||||||
@echo dwm build options:
|
@echo yo-dwm build options:
|
||||||
@echo "CFLAGS = ${CFLAGS}"
|
@echo "CFLAGS = ${CFLAGS}"
|
||||||
@echo "LDFLAGS = ${LDFLAGS}"
|
@echo "LDFLAGS = ${LDFLAGS}"
|
||||||
@echo "CC = ${CC}"
|
@echo "CC = ${CC}"
|
||||||
|
@ -22,41 +22,41 @@ ${OBJ}: config.h config.mk
|
||||||
config.h:
|
config.h:
|
||||||
cp config.def.h $@
|
cp config.def.h $@
|
||||||
|
|
||||||
dwm: ${OBJ}
|
yo-dwm: ${OBJ}
|
||||||
${CC} -o $@ ${OBJ} ${LDFLAGS}
|
${CC} -o $@ ${OBJ} ${LDFLAGS}
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz
|
rm -f yo-dwm ${OBJ} yo-dwm_${VERSION}.tar.gz
|
||||||
|
|
||||||
dist: clean
|
dist: clean
|
||||||
mkdir -p dwm-${VERSION}
|
mkdir -p yo-dwm_${VERSION}
|
||||||
cp -R LICENSE Makefile README config.def.h config.mk\
|
cp -R LICENSE Makefile README config.def.h config.mk\
|
||||||
dwm.1 drw.h util.h ${SRC} dwm.png transient.c dwm-${VERSION}
|
yo-dwm.1 drw.h util.h ${SRC} dwm.png transient.c yo-dwm_${VERSION}
|
||||||
tar -cf dwm-${VERSION}.tar dwm-${VERSION}
|
tar -cf yo-dwm_${VERSION}.tar yo-dwm_${VERSION}
|
||||||
gzip dwm-${VERSION}.tar
|
gzip yo-dwm_${VERSION}.tar
|
||||||
rm -rf dwm-${VERSION}
|
rm -rf yo-dwm_${VERSION}
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
mkdir -p ${DESTDIR}${PREFIX}/bin
|
mkdir -p ${DESTDIR}${PREFIX}/bin
|
||||||
cp -f dwm ${DESTDIR}${PREFIX}/bin
|
cp -f yo-dwm ${DESTDIR}${PREFIX}/bin
|
||||||
chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
|
chmod 755 ${DESTDIR}${PREFIX}/bin/yo-dwm
|
||||||
mkdir -p ${DESTDIR}${MANPREFIX}/man1
|
mkdir -p ${DESTDIR}${MANPREFIX}/man1
|
||||||
sed "s/VERSION/${VERSION}/g" < ../dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1
|
sed "s/VERSION/${VERSION}/g" < ../yo-dwm.1 > ${DESTDIR}${MANPREFIX}/man1/yo-dwm.1
|
||||||
chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1
|
chmod 644 ${DESTDIR}${MANPREFIX}/man1/yo-dwm.1
|
||||||
|
|
||||||
desktopfile:
|
desktop:
|
||||||
full_path=/usr/share/xsessions/dwm-anas.desktop
|
full_path=/usr/share/xsessions/yo-dwm.desktop
|
||||||
mkdir -p /usr/share/xsessions
|
mkdir -p /usr/share/xsessions
|
||||||
cat <<EOT >> ${full_path}
|
cat <<EOT >> ${full_path}
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=XSession
|
Type=XSession
|
||||||
Exec=/usr/local/bin/dwm
|
Exec=/usr/local/bin/yo-dwm
|
||||||
DesktopNames=dwm-anas
|
DesktopNames=yo-dwm
|
||||||
Name=dwm-anas
|
Name=yo-dwm
|
||||||
Comment=Anas Elgarhy dwm fork, with a lot of beautiful patches
|
Comment=Anas Elgarhy's dwm fork, with a lot of beautiful patches
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f ${DESTDIR}${PREFIX}/bin/dwm\
|
rm -f ${DESTDIR}${PREFIX}/bin/yo-dwm\
|
||||||
${DESTDIR}${MANPREFIX}/man1/dwm.1
|
${DESTDIR}${MANPREFIX}/man1/yo-dwm.1
|
||||||
|
|
||||||
.PHONY: all options clean dist install uninstall
|
.PHONY: all options clean dist install uninstall
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#ifndef FUNCTIONS_H
|
#ifndef FUNCTIONS_H
|
||||||
#define FUNCTIONS_H
|
#define FUNCTIONS_H
|
||||||
|
|
||||||
#include "../dwm.h"
|
#include "../yo_dwm.h"
|
||||||
|
|
||||||
static void spawn(const Arg *arg);
|
static void spawn(const Arg *arg);
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef KEYS_H
|
#ifndef KEYS_H
|
||||||
#define KEYS_H
|
#define KEYS_H
|
||||||
|
|
||||||
#include "../dwm.h"
|
#include "../yo_dwm.h"
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "../dwm.h"
|
#include "../yo_dwm.h"
|
||||||
#include "../util.h"
|
#include "../util.h"
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "../dwm.h"
|
#include "../yo_dwm.h"
|
||||||
|
|
||||||
void
|
void
|
||||||
fibonacci(Monitor *mon, int s) {
|
fibonacci(Monitor *mon, int s) {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "../dwm.h"
|
#include "../yo_dwm.h"
|
||||||
|
|
||||||
void
|
void
|
||||||
grid(Monitor *m) {
|
grid(Monitor *m) {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "../dwm.h"
|
#include "../yo_dwm.h"
|
||||||
#include "../util.h"
|
#include "../util.h"
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "../dwm.h"
|
#include "../yo_dwm.h"
|
||||||
#include "../util.h"
|
#include "../util.h"
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "dwm.h"
|
#include "yo_dwm.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
|
|
||||||
#include "drw.h"
|
#include "drw.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "dwm.h"
|
#include "yo_dwm.h"
|
||||||
|
|
||||||
/* macros */
|
/* macros */
|
||||||
#define SYSTEM_TRAY_REQUEST_DOCK 0
|
#define SYSTEM_TRAY_REQUEST_DOCK 0
|
Loading…
Reference in a new issue