Added interval argument (-i/--interval)
This commit is contained in:
parent
68eb540e41
commit
50be6a3db4
7 changed files with 1715 additions and 1693 deletions
25
README.md
25
README.md
|
|
@ -29,22 +29,20 @@ Change into the new directory:
|
|||
|
||||
cd spacetray
|
||||
|
||||
To compile the sources, run:
|
||||
To configure and compile the sources, run:
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ..
|
||||
make
|
||||
cmake -S . -B build
|
||||
cmake --build build
|
||||
|
||||
This will compile spacetray with status icon and notification support.
|
||||
|
||||
Just copy "bin/spacetray" to a folder in your $PATH. I do:
|
||||
Just copy "build/spacetray" to a folder in your $PATH. I do:
|
||||
|
||||
cp ./bin/spacetray ~/bin/
|
||||
cp ./build/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 ./bin/spacetray /usr/bin/
|
||||
sudo cp ./build/spacetray /usr/bin/
|
||||
|
||||
Configuration:
|
||||
--------------
|
||||
|
|
@ -56,12 +54,20 @@ Usage:
|
|||
|
||||
Run spacetray with:
|
||||
|
||||
./bin/spacetray <statusurl> &
|
||||
./build/spacetray <statusurl> &
|
||||
|
||||
Or if in your $PATH:
|
||||
|
||||
spacetray <statusurl>
|
||||
|
||||
The polling interval defaults to 300 seconds (5 minutes). It can be changed with the `-i` or `--interval` option, given either before or after the status URL:
|
||||
|
||||
./build/spacetray <statusurl> -i 60 &
|
||||
|
||||
./build/spacetray -i 60 <statusurl>
|
||||
|
||||
The interval is specified in seconds and must be a positive number.
|
||||
|
||||
Themes:
|
||||
-------
|
||||
|
||||
|
|
@ -105,4 +111,3 @@ to:
|
|||
in:
|
||||
|
||||
./spacetray.cpp
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue