Renamed the project and some refactoring...

This commit is contained in:
Johannes Findeisen 2023-02-12 09:29:27 +01:00
commit 55a2f23594
4 changed files with 18 additions and 17 deletions

2
.gitignore vendored
View file

@ -1,4 +1,4 @@
spaceapi-gtk
spacetray
*~
# Prerequisites

View file

@ -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

View file

@ -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