Compare commits
6 commits
952526f495
...
453b07f4d6
Author | SHA1 | Date | |
---|---|---|---|
453b07f4d6 | |||
f367518443 | |||
fa1aa3e444 | |||
8f4a20dd4e | |||
38d85133c4 | |||
5e289b8438 |
5 changed files with 28 additions and 20 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -65,3 +65,4 @@ CTestTestfile.cmake
|
||||||
_deps
|
_deps
|
||||||
|
|
||||||
build/
|
build/
|
||||||
|
dist/
|
||||||
|
|
35
Makefile
35
Makefile
|
@ -31,13 +31,17 @@ ${BUILD_DIR}: ${OBJ}
|
||||||
clean:
|
clean:
|
||||||
rm -rf ${OBJ_DIR}
|
rm -rf ${OBJ_DIR}
|
||||||
|
|
||||||
dist: clean
|
dist: ${BUILD_DIR} archy-dwm.desktop
|
||||||
mkdir -p archy-dwm_${VERSION}
|
mkdir -p archy-dwm_${VERSION}
|
||||||
cp -R LICENSE Makefile README config.def.h config.mk \
|
cp -R LICENSE README.md ${BUILD_DIR} ${OBJ_DIR}/archy-dwm.desktop archy-dwm.1 dwm.png archy-dwm_${VERSION}
|
||||||
archy-dwm.1 drw.h util.h ${SRC} dwm.png transient.c archy-dwm_${VERSION}
|
|
||||||
tar -cf archy-dwm_${VERSION}.tar archy-dwm_${VERSION}
|
tar -cf archy-dwm_${VERSION}.tar archy-dwm_${VERSION}
|
||||||
gzip archy-dwm_${VERSION}.tar
|
gzip archy-dwm_${VERSION}.tar
|
||||||
rm -rf archy-dwm_${VERSION}
|
rm -rf archy-dwm_${VERSION}
|
||||||
|
mkdir -p dist
|
||||||
|
mv archy-dwm_${VERSION}.tar.gz dist
|
||||||
|
echo "The tarball is ready."
|
||||||
|
printf "Tarball size: %s\n" $$(du -h dist/archy-dwm_${VERSION}.tar.gz | cut -f1)
|
||||||
|
printf "Tarball hash: %s\n" $$(sha256sum dist/archy-dwm_${VERSION}.tar.gz)
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
mkdir -p ${DESTDIR}${PREFIX}/bin
|
mkdir -p ${DESTDIR}${PREFIX}/bin
|
||||||
|
@ -47,19 +51,22 @@ install: all
|
||||||
sed "s/VERSION/${VERSION}/g" < archy-dwm.1 > ${DESTDIR}${MANPREFIX}/man1/archy-dwm.1
|
sed "s/VERSION/${VERSION}/g" < archy-dwm.1 > ${DESTDIR}${MANPREFIX}/man1/archy-dwm.1
|
||||||
chmod 644 ${DESTDIR}${MANPREFIX}/man1/archy-dwm.1
|
chmod 644 ${DESTDIR}${MANPREFIX}/man1/archy-dwm.1
|
||||||
|
|
||||||
desktop:
|
archy-dwm.desktop:
|
||||||
full_path=/usr/share/xsessions/archy-dwm.desktop
|
mkdir -p "$(OBJ_DIR)"
|
||||||
mkdir -p /usr/share/xsessions
|
echo "[Desktop Entry]" > "$(OBJ_DIR)/archy-dwm.desktop"
|
||||||
cat <<EOT >> ${full_path}
|
echo "Type=XSession" >> "$(OBJ_DIR)/archy-dwm.desktop"
|
||||||
[Desktop Entry]
|
echo "Exec=$(DESTDIR)$(PREFIX)/bin/archy-dwm" >> "$(OBJ_DIR)/archy-dwm.desktop"
|
||||||
Type=XSession
|
echo "DesktopNames=archy-dwm" >> "$(OBJ_DIR)/archy-dwm.desktop"
|
||||||
Exec=/usr/local/bin/archy-dwm
|
echo "Name=archy-dwm" >> "$(OBJ_DIR)/archy-dwm.desktop"
|
||||||
DesktopNames=archy-dwm
|
echo "Comment=\"A dynamic window manager for X\"" >> "$(OBJ_DIR)/archy-dwm.desktop"
|
||||||
Name=archy-dwm
|
|
||||||
Comment="A dynamic window manager for X"
|
desktop: archy-dwm.desktop
|
||||||
|
mkdir -p ${DESTDIR}${PREFIX}/share/xsessions
|
||||||
|
cp "$(OBJ_DIR)/archy-dwm.desktop" ${DESTDIR}${PREFIX}/share/xsessions/archy-dwm.desktop
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f ${DESTDIR}${PREFIX}/bin/archy-dwm \
|
rm -f ${DESTDIR}${PREFIX}/bin/archy-dwm \
|
||||||
${DESTDIR}${MANPREFIX}/man1/archy-dwm.1
|
${DESTDIR}${MANPREFIX}/man1/archy-dwm.1 \
|
||||||
|
${DESTDIR}${PREFIX}/share/xsessions/archy-dwm.desktop
|
||||||
|
|
||||||
.PHONY: all options clean dist install uninstall
|
.PHONY: all options clean dist install uninstall
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# yo-dwm version
|
# Archy DWM version
|
||||||
VERSION = 6.4-0.2.1
|
VERSION = 1.0.0
|
||||||
|
|
||||||
# Customize below to fit your system
|
# Customize below to fit your system
|
||||||
|
|
||||||
|
|
|
@ -2359,14 +2359,14 @@ zoom(const Arg *arg) {
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[]) {
|
main(int argc, char *argv[]) {
|
||||||
if (argc == 2 && !strcmp("-v", argv[1]))
|
if (argc == 2 && !strcmp("-v", argv[1]))
|
||||||
die("dwm-"
|
die("archy dwm-"
|
||||||
VERSION);
|
VERSION);
|
||||||
else if (argc != 1)
|
else if (argc != 1)
|
||||||
die("usage: dwm [-v]");
|
die("usage: archy-dwm [-v]");
|
||||||
if (!setlocale(LC_CTYPE, "") || !XSupportsLocale())
|
if (!setlocale(LC_CTYPE, "") || !XSupportsLocale())
|
||||||
fputs("warning: no locale support\n", stderr);
|
fputs("warning: no locale support\n", stderr);
|
||||||
if (!(dpy = XOpenDisplay(NULL)))
|
if (!(dpy = XOpenDisplay(NULL)))
|
||||||
die("dwm: cannot open display");
|
die("archy-dwm: cannot open display");
|
||||||
checkotherwm();
|
checkotherwm();
|
||||||
autostart_exec();
|
autostart_exec();
|
||||||
setup();
|
setup();
|
||||||
|
|
|
@ -31,7 +31,7 @@ static const char dmenufont[] = "monospace:size=8";
|
||||||
// Autostart programs
|
// Autostart programs
|
||||||
static const char *const autostart[] = {
|
static const char *const autostart[] = {
|
||||||
// Start my build of slstatus
|
// Start my build of slstatus
|
||||||
"yo-slstatus", NULL,
|
"archy-slstatus", NULL,
|
||||||
NULL /* terminate */
|
NULL /* terminate */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue