Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/regolith-linux/i3xrocks
A fork of i3blocks that can read Xresources.
https://github.com/regolith-linux/i3xrocks
When starting the scheduler, the bar is printed (for static blocks and
loading labels). Move thi...
This commit opens a pipe between the parent process and the child's
standard input in order to s...
Similarly to stdout and stderr, open a pipe between the parent process
and a child process (for ...
The JSON format allows one to update any key from the block's command
output, but "name" and "in...
For persistent block, the program enables event I/O on the read end of
the stdout pipe before fo...
Similarly to the child code, provide explicit routines to the parent
code to deal with the block...
Introduce a block_is_spawned() helper to abstract the PID check.
634e3f347ddf655b9d2971eb98f936b398a8795c authored over 6 years ago by Vivien Didelot <[email protected]>
Parse all i3blocks specific keys at once instead of iterating over all
keys with map_for_each, b...
Add a json_is_valid() helper for boiler plate, which checks if a given
value is either a boolean...
sys_read() must read a void pointer, not char.
01801a20c8be71b9ec0a8b4d0b76bcf01e13f20d authored over 6 years ago by Vivien Didelot <[email protected]>
When forking processes, the best practice is to close the standard input
from within the child p...
When i3blocks forks a child process, the standard input gets duplicated.
Some commands such as "...
Split the block_child_pipe() function for two explicit
block_child_stdout() and block_child_stde...
Do not check if stdin is a TTY, so that we get the same behavior when
running i3blocks from i3ba...
Add a LOG_TRACE level to trace system calls and signals. This level is
meant for development whi...
Closes #316
55adf299d9666d9c65b8c00134912dffa9790161 authored over 6 years ago by Diki Ananta <[email protected]>
The very first line on standard input is the beginning of an infinite
array, thus the first clic...
Rework the click handling code so that we don't filter properties passed
by i3bar anymore. This ...
When reading a stream line by line (e.g. when reading clicks), we need
to know when there is not...
We have no need to distinguish the end of a stream (for non blocking I/O
for example) and the en...
Use monotonic clock instead of wall-clock when timestamping blocks,
otherwise changing the syste...
This automatically handles Makefile and tarball generation.
e895f80b566650a7f9391d51259c7041f7501f28 authored over 6 years ago by Tristan Matthews <[email protected]>3ebc14ddc722fe241c5f801b04c9f448aab43c6c authored over 6 years ago by Francesco Turco <[email protected]>
"config" and "env" are clearer names for the property maps used by the
block. Get rid of the con...
"section" and "global" are clearer names for the config members.
6ce253f77ff28d294898a5ce747a01a32a97fcc1 authored over 6 years ago by Vivien Didelot <[email protected]>
The "label" property was specific to i3blocks and implemented as an easy
way to prefix the "full...
Add support for a 4th line of plain text to describe the background
color.
Fixes #217
3877b632cae0f7bcfd44d424b14b74a63251b268 authored over 6 years ago by Vivien Didelot <[email protected]>
This commit adds additional escape sequences to the escape functions,
these are the escape seque...
Check the return value of snprintf() to properly move in the buffer and
make sure the formatted ...
Now all file descriptors are opened and read in a non blocking way, thus
this comment becomes ir...
The JSON parser does not support parsing object or array at the moment,
since this use case is n...
Add a debug statement to print the lines being parsed.
131cc1f0ea0c5470b7f707886afb7d338d49c871 authored over 6 years ago by Vivien Didelot <[email protected]>
Now that the scripts have been removed from the repository, move the
src/ and include/ source fi...
The default scripts have been included in the contrib repository. From
now on, the i3blocks repo...
Github Services are being deprecated, thus remove the Travis
configuration file.
Also remove th...
63f07f81cdee8b8f2ae359e645365f6ffafc7367 authored over 6 years ago by Vivien Didelot <[email protected]>
Now that a generic log handling is implemented, there is no reason to
implement a custom one in ...
Implement a log handler for the bar, so that messages up to the error
level can be printed direc...
Move the i3bar printing code from the JSON code to bar.c.
This also fixes a regression where a ...
700269f83e1e0f28461cea5bf90a667721951e23 authored over 6 years ago by Vivien Didelot <[email protected]>
Move the bar initialization code, including i3bar protocol handling and
scheduler initialization...
Add a generic log() helper to print a message of a given criticality
level, and define a log_han...
Rework the JSON parsing code so that we can parse any arbitrary (flat)
JSON object. That will be...
Instead of passing a bar structure around, pass a callback function to
the config code which is ...
Now that we have dynamic properties, it'd be nice to set all of them
into the environment of a f...
Now that the system specific code is extracted from the io code, the
later now only handles line...
Introduce sys.c and sys.h files to wrap all system calls, and provide a
consistent debugging of ...
Add a block_touch helper to reset the timestamp outside the spawn
function and a block_click hel...
Change the map implementation in order to support dynamic properties.
From now on, any key-value...
Provide map.c and map.h files which implement map_* functions to
abstract the properties structu...
Split the INI format parsing into ini.c which makes use of the newly
introduced io_open, io_read...
Rework the implementation of line reading and provide a new io_readlines
routing which calls a c...
Closes #178 #282
403308bc39056a3664a349d78ea83990a97fd47f authored almost 7 years ago by Alexandre Macabies <[email protected]>
This commit solves the following error when building with musl libc
```
src/sched.c:34:17: error...
969eb2635d090345449fddafce29e4fc10a4b105 authored almost 8 years ago by Christian Rebischke <[email protected]>
The battery script uses `acpi -b` to query to battery status, but the
status might be 'Unknown',...
Anything under 80 was being coloured the same.
Closes #203
66f8b9d6ca2e595284e1852a3c41fe0341e62524 authored over 8 years ago by Fice T <[email protected]>
bc doesn't come installed in base or base-devel for Arch users, so in
the case that it is not in...
This is done by sorting the list of sources, which will later turned into list
of objects (thus ...
The i3bar protocol now supports a 'border' key to change the border
color of a block. Add suppor...
The i3bar protocol now supports a 'background' key to change the
background color of a block. Ad...
Apply patch from @dkarwowski who said:
"Commit 701dd3f is the problem, since it's reading the e...
40e396aeedda7bc8de62622f4cdf8a641f77544c authored over 8 years ago by Ammar Najjar <[email protected]>
reasonning: ruby-ronn is abandonned, and will most likely be dropped
from debian and ubuntu [1]
...
When a new file descriptor is required, the process is given the lowest
one available, usually t...
The memory script throws the following error:
awk: run time error: not enough arguments pas...
7b818bc0772a1d0a46b2dfa3193a7538bc6cf8e9 authored almost 9 years ago by Yuce Tekol <[email protected]>
Allow specifying DATAROOTDIR to make install target compatible with filesystem
layouts where arc...
Extract the man page install and uninstall to their own install-man and
uninstall-man targets. T...
Someone may use the instance property to pass long arguments such as
URIs. So increase its size ...
Add a -d <decimals> option to control the number of decimals displayed
when printing the percent...
Color the output in yellowish for 70%-80%, in orangish for 80%-90%, and
red above 90% of used me...
Output the percentage of used memory for the short_text.
[vd: split #148 and output used percen...
7259dae0e77fa3099eb0aa0f9e9a30c9766cba72 authored about 9 years ago by Andreas Lutro <[email protected]>
The script currently outputs the amount of used memory for "swap", and
the amount of free memory...
Since we are copying also empty lines (see #109), short_text and color
of persistent block get o...
closes #139
01a4f4a9ca1e3d0b3c95d1d62000ad8506bdff1a authored about 9 years ago by James Murphy <[email protected]>When read(2) returns 0, it means the pipe is closed.
To make the difference with a closed pipe ...
c5b973498e9771632df3b1f0e1026e942eb51fe7 authored over 9 years ago by Oliver Runge <[email protected]>
An empty line from a blocklet should not be ignored. For instance in the
case of "xtitle -s" an ...
If volume is 100%, only 00% is shown.
Closes: #133
Reviewed-by: @kb100
The script now can get two command line arguments, -i/--inlabel and
-o/--outlabel to enable cust...
This blocklet has been moved to:
https://github.com/vivien/i3blocks-contrib/tree/master/temperat...
This blocklet has been moved to:
https://github.com/vivien/i3blocks-contrib/tree/master/openvpn
...
This blocklet has been moved to:
https://github.com/vivien/i3blocks-contrib/tree/master/mediapla...
This blocklet has been moved to:
https://github.com/vivien/i3blocks-contrib/tree/master/keyindic...
Closes: #131
c2a021dd33be49f55381aa228547b95a7ecbc5d8 authored over 9 years ago by Samy Dindane <[email protected]>
To avoid "VPN: " tagging along on any ride, this minor change removes it
from the script, so tha...
37a77492a1eead537892086c68c6de57b4bfa51c authored over 9 years ago by Vivien Didelot <[email protected]>
You can now go to the previous track with left button, next track with
right button, and play/pa...
This reverts commit d14b56e8c2e5da44fc44a58cfaea4682fcbb168b.
According to @jpleau, this mpd sc...
19741a409515d7bda809128b6379436fe592b1a7 authored over 9 years ago by Vivien Didelot <[email protected]>
This commit extracts the nested parse() function from ini_load() to its
own try_parse() function...
Clang does not support nested functions. So remove the nested gcd()
function in sched.c to be ab...
2896a5be8f368f42f40d7b10d8d9d2088d3269da authored over 9 years ago by Vivien Didelot <[email protected]>
The href was missing in the generated HTML manual.
Closes #99
2ce6b43756047f92ef8b10ad5bd5518e58a33142 authored over 9 years ago by Vivien Didelot <[email protected]>
The markup property has recently been introduced to the i3bar protocol
to prevent escaping issue...
i3blocks wasn't printing the block name and instance if the later set
the urgent flag. Restoring...
When parsing a JSON string, ensure the closing quote is present.
0170418bd80b380409c1ece0625e6fd7f3804cdc authored almost 10 years ago by Vivien Didelot <[email protected]>As suggested by @Zopieux.
Refs #87
6ac3246f02c177cd09876b6044cf8b65958e3a25 authored almost 10 years ago by Vivien Didelot <[email protected]>
This commit is based on the initial work from @Zopieux, adding support
for JSON output format.
...
df5b8aaafc27408bb777d0490a11f8f43ebd38f8 authored almost 10 years ago by Vivien Didelot <[email protected]>Fix a typo, undef PRINT instead of JSON.
7a5cc630d3ebda4bd25e4adf9741f8f4b7f434b4 authored almost 10 years ago by Vivien Didelot <[email protected]>
[vd: rename the script to bandwidth; use the default route interface if
not instance is supplied...
This commit adds a new "persist" special interval value. This is meant
for block commands which ...
If no interface is specified, use the one used by the default route.
This will even simplify the...
[thiagowfx: change eth0 to wlan0 for wifi]
[vd: remove brackets in wifi for the moment; factori...
f9cf56ea61acd3437aa73a8a95befb912bb51fd3 authored almost 10 years ago by Nycroth <[email protected]>
The perl binary will usually be installed as /usr/bin/perl, and then
symlinked to /bin/perl. Thi...