2023-03-09 03:58:04 +01:00
spacetray
=========
2018-03-20 22:44:20 +01:00
2023-03-09 03:58:04 +01:00
A panel Applet using GTK2 for showing the Status of a Hackerspace. Compatible with the SpaceAPI version >= 0.13.
2018-03-20 22:44:20 +01:00
2018-03-20 23:12:46 +01:00
2018-03-20 22:44:20 +01:00
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:
2023-02-12 09:29:27 +01:00
git clone https://github.com/hanez/spacetray.git
2018-03-20 22:44:20 +01:00
Change into the new directory:
2023-02-12 09:29:27 +01:00
cd spacetray
2018-03-20 22:44:20 +01:00
To compile the sources just run:
make
This will compile dooris with libnotify support.
2018-03-20 23:18:03 +01:00
If you don't want notifications run the following command:
2018-03-20 22:44:20 +01:00
2018-03-20 23:45:45 +01:00
make nonotify
2018-03-20 22:44:20 +01:00
Installation
------------
2023-02-12 09:29:27 +01:00
Just copy "spacetray" to a folder in your $PATH. I do:
2018-03-20 22:44:20 +01:00
2023-02-12 09:29:27 +01:00
cp ./spacetray ~/bin/
2018-03-20 22:44:20 +01:00
2018-03-20 23:19:19 +01:00
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:
2018-03-20 22:44:20 +01:00
2023-02-12 09:29:27 +01:00
sudo cp ./spacetray /usr/bin/
2018-03-20 22:44:20 +01:00
Configuration:
--------------
2023-02-12 09:29:27 +01:00
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.
2018-03-20 22:44:20 +01:00
Usage:
------
2023-02-12 09:29:27 +01:00
Run spacetray with:
2018-03-20 22:44:20 +01:00
2023-03-09 03:58:04 +01:00
./spacetray &
2018-03-20 23:07:35 +01:00
Or if in your $PATH:
2023-02-12 09:29:27 +01:00
spacetray
2018-03-20 22:44:20 +01:00
2023-02-12 09:29:27 +01:00
Status Icon "Pesthoernchen" colors:
2018-03-20 22:44:20 +01:00
- Red = Door closed
- Yellow = Door open
2023-03-09 03:58:04 +01:00
Themes:
-------
You can create your own icon theme by generating a C header file containing the icons as "static const GdkPixdata" data structure.
This can be done using the following commands:
2023-03-09 03:59:40 +01:00
gdk-pixbuf-csource --struct PATH_TO_OPEN_IMAGE > ./themes/THEME_NAME.h
2023-03-09 03:58:04 +01:00
2023-03-09 03:59:40 +01:00
gdk-pixbuf-csource --struct PATH_TO_CLOSED_IMAGE >> ./themes/THEME_NAME.h
2023-03-09 03:58:04 +01:00
Afterwards you need to rename the first generated struct to:
2023-03-09 03:59:40 +01:00
icon_open_pixbuf
2023-03-09 03:58:04 +01:00
The second must be renamed to:
2023-03-09 03:59:40 +01:00
icon_closed_pixbuf
2023-03-09 03:58:04 +01:00
in:
2023-03-09 03:59:40 +01:00
./themes/THEME_NAME.h
2023-03-09 03:58:04 +01:00
You can then use your custom icon theme when changing the line:
2023-03-09 03:59:40 +01:00
#include "themes/lock.h"
2023-03-09 03:58:04 +01:00
to:
2023-03-09 03:59:40 +01:00
#include "themes/THEME_NAME.h"
2023-03-09 03:58:04 +01:00
2023-03-09 04:00:37 +01:00
in:
./spacetray.c