spacetray is a status icon for showing the door status of your local hackerspace using the SpaceAPI.
  • C 94.6%
  • C++ 5.1%
  • CMake 0.3%
Find a file
2018-03-20 22:44:35 +01:00
.gitignore Initial commit 2018-03-20 22:39:36 +01:00
LICENSE Initial commit 2018-03-20 22:39:36 +01:00
Makefile initial commt... copied all stuff from ccchh/dooris... 2018-03-20 22:44:35 +01:00
pesthoernchen.h initial commt... copied all stuff from ccchh/dooris... 2018-03-20 22:44:35 +01:00
README.md initial commt... copied all stuff from ccchh/dooris... 2018-03-20 22:44:20 +01:00
spaceapi-gtk initial commt... copied all stuff from ccchh/dooris... 2018-03-20 22:44:35 +01:00
spaceapi-gtk.c initial commt... copied all stuff from ccchh/dooris... 2018-03-20 22:44:35 +01:00

dooris-gtk

Menubar item for GTK2 showing the Dooris status compatible with the SpaceAPI version 0.13.

Installation:

Requirements:

  • Standard tools like gcc, pkg-config etc.
  • curl
  • gtk+-2.0
  • json-c
  • libnotify - Only needed when compiling with libnotify support.

Use the following command for getting the sources:

git clone https://github.com/ccchh/dooris-gtk.git

Change into the new directory:

cd dooris-gtk

To compile the sources just run:

make

This will compile dooris with libnotify support.

If you don't want notifications run the following comand:

gcc `pkg-config --cflags --libs gtk+-2.0 --libs libcurl --libs json-c` -o dooris dooris.c

Installation

Just copy "dooris" to a folder in your $PATH. I do:

cp ./dooris ~/bin/

You can copy the file to /usr/bin to make it available for all users but I don't. If you want that just run:

sudo cp ./dooris /usr/bin/

Configuration:

Configuration needs to be done before compiling. There are some parameters you can set in the head of the dooris.c file where variables are declared. A configuration file will at this point make no sense.

Usage:

Run dooris with:

./dooris & 

Status Icon "Pesthörnchen" colors:

  • Red = Door closed
  • Yellow = Door open