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