My initial DWM changes
This commit is contained in:
parent
a786211d6c
commit
6b93cd5f7b
6 changed files with 32 additions and 6 deletions
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
*.o
|
||||||
|
|
||||||
|
/dwm
|
||||||
|
/dwm-*.tar.gz
|
20
Makefile
20
Makefile
|
@ -19,9 +19,6 @@ options:
|
||||||
|
|
||||||
${OBJ}: config.h config.mk
|
${OBJ}: config.h config.mk
|
||||||
|
|
||||||
config.h:
|
|
||||||
cp config.def.h $@
|
|
||||||
|
|
||||||
dwm: ${OBJ}
|
dwm: ${OBJ}
|
||||||
${CC} -o $@ ${OBJ} ${LDFLAGS}
|
${CC} -o $@ ${OBJ} ${LDFLAGS}
|
||||||
|
|
||||||
|
@ -40,12 +37,25 @@ install: all
|
||||||
mkdir -p ${DESTDIR}${PREFIX}/bin
|
mkdir -p ${DESTDIR}${PREFIX}/bin
|
||||||
cp -f dwm ${DESTDIR}${PREFIX}/bin
|
cp -f dwm ${DESTDIR}${PREFIX}/bin
|
||||||
chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
|
chmod 755 ${DESTDIR}${PREFIX}/bin/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" < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1
|
||||||
chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1
|
chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1
|
||||||
|
|
||||||
|
xinstall: install
|
||||||
|
mkdir -p ${DESTDIR}${ICONSPREFIX}
|
||||||
|
cp -f dwm.png ${DESTDIR}${ICONSPREFIX}
|
||||||
|
chmod 644 ${DESTDIR}${ICONSPREFIX}/dwm.png
|
||||||
|
|
||||||
|
mkdir -p ${DESTDIR}${XSESSIONSPREFIX}
|
||||||
|
cp -f dwm.desktop ${DESTDIR}${XSESSIONSPREFIX}
|
||||||
|
chmod 644 ${DESTDIR}${XSESSIONSPREFIX}/dwm.desktop
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f ${DESTDIR}${PREFIX}/bin/dwm\
|
rm -f \
|
||||||
${DESTDIR}${MANPREFIX}/man1/dwm.1
|
${DESTDIR}${PREFIX}/bin/dwm \
|
||||||
|
${DESTDIR}${MANPREFIX}/man1/dwm.1 \
|
||||||
|
${DESTDIR}${ICONSPREFIX}/dwm.png \
|
||||||
|
${DESTDIR}${XSESSIONSPREFIX}/dwm.desktop
|
||||||
|
|
||||||
.PHONY: all options clean dist install uninstall
|
.PHONY: all options clean dist install uninstall
|
||||||
|
|
|
@ -28,7 +28,6 @@ static const Rule rules[] = {
|
||||||
*/
|
*/
|
||||||
/* class instance title tags mask isfloating monitor */
|
/* class instance title tags mask isfloating monitor */
|
||||||
{ "Gimp", NULL, NULL, 0, 1, -1 },
|
{ "Gimp", NULL, NULL, 0, 1, -1 },
|
||||||
{ "Firefox", NULL, NULL, 1 << 8, 0, -1 },
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* layout(s) */
|
/* layout(s) */
|
||||||
|
|
1
config.h
Symbolic link
1
config.h
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
config.def.h
|
|
@ -5,8 +5,13 @@ VERSION = 6.2
|
||||||
|
|
||||||
# paths
|
# paths
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
|
SYSPREFIX = /usr
|
||||||
|
|
||||||
MANPREFIX = ${PREFIX}/share/man
|
MANPREFIX = ${PREFIX}/share/man
|
||||||
|
|
||||||
|
ICONSPREFIX = ${SYSPREFIX}/share/icons
|
||||||
|
XSESSIONSPREFIX = ${SYSPREFIX}/share/xsessions
|
||||||
|
|
||||||
X11INC = /usr/X11R6/include
|
X11INC = /usr/X11R6/include
|
||||||
X11LIB = /usr/X11R6/lib
|
X11LIB = /usr/X11R6/lib
|
||||||
|
|
||||||
|
|
7
dwm.desktop
Normal file
7
dwm.desktop
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Encoding=UTF-8
|
||||||
|
Name=dwm
|
||||||
|
Comment=Dynamic Window Manager
|
||||||
|
Exec=dwm
|
||||||
|
Icon=dwm
|
||||||
|
Type=XSession
|
Loading…
Reference in a new issue