From 55a2f2359480904fc6d43a661729f3cf57d49196 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Sun, 12 Feb 2023 09:29:27 +0100 Subject: [PATCH] Renamed the project and some refactoring... --- .gitignore | 2 +- Makefile | 13 +++++++------ README.md | 20 ++++++++++---------- spaceapi-gtk.c => spacetray.c | 0 4 files changed, 18 insertions(+), 17 deletions(-) rename spaceapi-gtk.c => spacetray.c (100%) diff --git a/.gitignore b/.gitignore index af55d2e..8c1af60 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -spaceapi-gtk +spacetray *~ # Prerequisites diff --git a/Makefile b/Makefile index 436b618..bdf938f 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,12 @@ -all: spaceapi-gtk +all: spacetray -spaceapi-gtk: spaceapi-gtk.c - $(CC) -Wall -g `pkg-config --cflags --libs gtk+-2.0 --libs libcurl --libs json-c --libs libnotify` -DLIBNOTIFY -o spaceapi-gtk spaceapi-gtk.c +spacetray: spacetray.c + $(CC) -Wall -g `pkg-config --cflags --libs gtk+-2.0 --libs libcurl --libs json-c --libs libnotify` -DLIBNOTIFY -o spacetray spacetray.c -nonotify: spaceapi-gtk.c - $(CC) -Wall -g `pkg-config --cflags --libs gtk+-2.0 --libs libcurl --libs json-c` -o spaceapi-gtk spaceapi-gtk.c +nonotify: spacetray.c + $(CC) -Wall -g `pkg-config --cflags --libs gtk+-2.0 --libs libcurl --libs json-c` -o spacetray spacetray.c clean: - rm -f spaceapi-gtk + rm -f spacetray + diff --git a/README.md b/README.md index 6ce38d8..dc0b77b 100644 --- a/README.md +++ b/README.md @@ -18,11 +18,11 @@ Requirements: Use the following command for getting the sources: - git clone https://git.unixpeople.org/hanez/spaceapi-gtk.git + git clone https://github.com/hanez/spacetray.git Change into the new directory: - cd spaceapi-gtk + cd spacetray To compile the sources just run: @@ -37,31 +37,31 @@ If you don't want notifications run the following command: Installation ------------ -Just copy "spaceapi-gtk" to a folder in your $PATH. I do: +Just copy "spacetray" to a folder in your $PATH. I do: - cp ./spaceapi-gtk ~/bin/ + cp ./spacetray ~/bin/ You can copy the file to /usr/bin to make it available to all users but I don't. If you want that just run: - sudo cp ./spaceapi-gtk /usr/bin/ + sudo cp ./spacetray /usr/bin/ Configuration: -------------- -Configuration needs to be done before compiling. There are some parameters you can set in the head of the spaceapi-gtk.c file where variables are declared. A configuration file will at this point make no sense. +Configuration needs to be done before compiling. There are some parameters you can set in the head of the spacetray.c file where variables are declared. A configuration file will at this point make no sense. Usage: ------ -Run spaceapi-gtk with: +Run spacetray with: - ./spaceapi-gtk & + ./spacetray & Or if in your $PATH: - spaceapi-gtk + spacetray -Status Icon "Pesthörnchen" colors: +Status Icon "Pesthoernchen" colors: - Red = Door closed - Yellow = Door open diff --git a/spaceapi-gtk.c b/spacetray.c similarity index 100% rename from spaceapi-gtk.c rename to spacetray.c