Renamed the project and some refactoring...
This commit is contained in:
parent
f2a39fd327
commit
55a2f23594
4 changed files with 18 additions and 17 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,4 +1,4 @@
|
||||||
spaceapi-gtk
|
spacetray
|
||||||
*~
|
*~
|
||||||
|
|
||||||
# Prerequisites
|
# Prerequisites
|
||||||
|
|
|
||||||
13
Makefile
13
Makefile
|
|
@ -1,11 +1,12 @@
|
||||||
|
|
||||||
all: spaceapi-gtk
|
all: spacetray
|
||||||
|
|
||||||
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 spaceapi-gtk spaceapi-gtk.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
|
nonotify: spacetray.c
|
||||||
$(CC) -Wall -g `pkg-config --cflags --libs gtk+-2.0 --libs libcurl --libs json-c` -o spaceapi-gtk spaceapi-gtk.c
|
$(CC) -Wall -g `pkg-config --cflags --libs gtk+-2.0 --libs libcurl --libs json-c` -o spacetray spacetray.c
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f spaceapi-gtk
|
rm -f spacetray
|
||||||
|
|
||||||
|
|
|
||||||
20
README.md
20
README.md
|
|
@ -18,11 +18,11 @@ Requirements:
|
||||||
|
|
||||||
Use the following command for getting the sources:
|
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:
|
Change into the new directory:
|
||||||
|
|
||||||
cd spaceapi-gtk
|
cd spacetray
|
||||||
|
|
||||||
To compile the sources just run:
|
To compile the sources just run:
|
||||||
|
|
||||||
|
|
@ -37,31 +37,31 @@ If you don't want notifications run the following command:
|
||||||
Installation
|
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:
|
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:
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
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:
|
Usage:
|
||||||
------
|
------
|
||||||
|
|
||||||
Run spaceapi-gtk with:
|
Run spacetray with:
|
||||||
|
|
||||||
./spaceapi-gtk &
|
./spacetray &
|
||||||
|
|
||||||
Or if in your $PATH:
|
Or if in your $PATH:
|
||||||
|
|
||||||
spaceapi-gtk
|
spacetray
|
||||||
|
|
||||||
Status Icon "Pesthörnchen" colors:
|
Status Icon "Pesthoernchen" colors:
|
||||||
|
|
||||||
- Red = Door closed
|
- Red = Door closed
|
||||||
- Yellow = Door open
|
- Yellow = Door open
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue