[update] Change the binary file name from yo-dwm to archy-dwm

This commit is contained in:
Anas Elgarhy 2023-05-11 14:04:24 +03:00
parent 7baddde619
commit 53da160f0a
No known key found for this signature in database
GPG key ID: 0501802A1D496528
22 changed files with 28 additions and 81 deletions

8
.idea/.gitignore vendored
View file

@ -1,8 +0,0 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

View file

@ -1 +0,0 @@
yo_dwm

View file

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DiscordProjectSettings">
<option name="show" value="PROJECT_FILES" />
<option name="description" value="" />
</component>
</project>

View file

@ -1,6 +0,0 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="AndroidLintDuplicateStrings" enabled="true" level="WARNING" enabled_by_default="true" />
</profile>
</component>

View file

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$" />
<component name="ComposerSettings">
<execution />
</component>
</project>

View file

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/yo-dwm.iml" filepath="$PROJECT_DIR$/.idea/yo-dwm.iml" />
</modules>
</component>
</project>

View file

@ -1,8 +0,0 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="install" type="MAKEFILE_TARGET_RUN_CONFIGURATION" factoryName="Makefile">
<makefile filename="$PROJECT_DIR$/src/Makefile" target=" install clean" workingDirectory="$PROJECT_DIR$/src" arguments="">
<envs />
</makefile>
<method v="2" />
</configuration>
</component>

View file

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View file

@ -1,2 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module classpath="CMake" type="CPP_MODULE" version="4" />

View file

@ -3,15 +3,15 @@
include config.mk
SRC = src/drw.c src/yo_dwm.c src/util.c
SRC = src/drw.c src/archy_dwm.c src/util.c
OBJ_DIR = build
OBJ = ${SRC:%.c=$(OBJ_DIR)/%.o}
BUILD_DIR = ${OBJ_DIR}/yo-dwm
BUILD_DIR = ${OBJ_DIR}/archy-dwm
all: options ${BUILD_DIR}
options:
@echo yo-dwm build options:
@echo archy-dwm build options:
@echo "CFLAGS = ${CFLAGS}"
@echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}"
@ -32,34 +32,34 @@ clean:
rm -rf ${OBJ_DIR}
dist: clean
mkdir -p yo-dwm_${VERSION}
mkdir -p archy-dwm_${VERSION}
cp -R LICENSE Makefile README config.def.h config.mk \
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}
archy-dwm.1 drw.h util.h ${SRC} dwm.png transient.c archy-dwm_${VERSION}
tar -cf archy-dwm_${VERSION}.tar archy-dwm_${VERSION}
gzip archy-dwm_${VERSION}.tar
rm -rf archy-dwm_${VERSION}
install: all
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f ${BUILD_DIR} ${DESTDIR}${PREFIX}/bin
chmod 755 ${DESTDIR}${PREFIX}/bin/yo-dwm
chmod 755 ${DESTDIR}${PREFIX}/bin/archy-dwm
mkdir -p ${DESTDIR}${MANPREFIX}/man1
sed "s/VERSION/${VERSION}/g" < yo-dwm.1 > ${DESTDIR}${MANPREFIX}/man1/yo-dwm.1
chmod 644 ${DESTDIR}${MANPREFIX}/man1/yo-dwm.1
sed "s/VERSION/${VERSION}/g" < archy-dwm.1 > ${DESTDIR}${MANPREFIX}/man1/archy-dwm.1
chmod 644 ${DESTDIR}${MANPREFIX}/man1/archy-dwm.1
desktop:
full_path=/usr/share/xsessions/yo-dwm.desktop
full_path=/usr/share/xsessions/archy-dwm.desktop
mkdir -p /usr/share/xsessions
cat <<EOT >> ${full_path}
[Desktop Entry]
Type=XSession
Exec=/usr/local/bin/yo-dwm
DesktopNames=yo-dwm
Name=yo-dwm
Comment=Anas Elgarhy's dwm fork, with a lot of beautiful patches
Exec=/usr/local/bin/archy-dwm
DesktopNames=archy-dwm
Name=archy-dwm
Comment="A dynamic window manager for X"
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/yo-dwm \
${DESTDIR}${MANPREFIX}/man1/yo-dwm.1
rm -f ${DESTDIR}${PREFIX}/bin/archy-dwm \
${DESTDIR}${MANPREFIX}/man1/archy-dwm.1
.PHONY: all options clean dist install uninstall

View file

@ -44,7 +44,7 @@
#include "drw.h"
#include "util.h"
#include "yo_dwm.h"
#include "archy_dwm.h"
/* macros */
#define SYSTEM_TRAY_REQUEST_DOCK 0

View file

@ -26,7 +26,7 @@ static const char dmenufont[] = "monospace:size=8";
#endif
#include "colors/dracula.h"
#include "yo_dwm.h"
#include "archy_dwm.h"
// Autostart programs
static const char *const autostart[] = {

View file

@ -5,7 +5,7 @@
#ifndef FUNCTIONS_H
#define FUNCTIONS_H
#include "../yo_dwm.h"
#include "../archy_dwm.h"
static void spawn(const Arg *arg);

View file

@ -1,7 +1,7 @@
#ifndef KEYS_H
#define KEYS_H
#include "../yo_dwm.h"
#include "../archy_dwm.h"
#include <X11/X.h>
typedef struct {

View file

@ -1,4 +1,4 @@
#include "../yo_dwm.h"
#include "../archy_dwm.h"
#include "../util.h"
void

View file

@ -1,4 +1,4 @@
#include "../yo_dwm.h"
#include "../archy_dwm.h"
void
fibonacci(Monitor *mon, int s) {

View file

@ -1,4 +1,4 @@
#include "../yo_dwm.h"
#include "../archy_dwm.h"
void
grid(Monitor *m) {

View file

@ -1,4 +1,4 @@
#include "../yo_dwm.h"
#include "../archy_dwm.h"
#include "../util.h"
void

View file

@ -1,4 +1,4 @@
#include "../yo_dwm.h"
#include "../archy_dwm.h"
#include "../util.h"
void

View file

@ -1,4 +1,4 @@
#include "yo_dwm.h"
#include "archy_dwm.h"
#include "util.h"
static void