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

bar: call first print from bar code

When starting the scheduler, the bar is printed (for static blocks and
loading labels). Move thi...

79f25ed0d643809c8dd7f6b1afd8166527a6f621 authored over 6 years ago by Vivien Didelot <[email protected]>
block: add support for clicks on persistent blocks

This commit opens a pipe between the parent process and the child's
standard input in order to s...

6e8b51d12848f3e3bce1011695706ee40abdc753 authored over 6 years ago by Vivien Didelot <[email protected]>
block: open a pipe for stdin with child processes

Similarly to stdout and stderr, open a pipe between the parent process
and a child process (for ...

d39a294405137ed898debdf3c6248e442d8665b5 authored over 6 years ago by Vivien Didelot <[email protected]>
block: do not update i3bar identifiers from JSON

The JSON format allows one to update any key from the block's command
output, but "name" and "in...

0c60987fde49fcdf556e243e7bcc558d9dde4432 authored over 6 years ago by Vivien Didelot <[email protected]>
block: set async I/O in parent only

For persistent block, the program enables event I/O on the read end of
the stdout pipe before fo...

aba33f6c95a565ef3467754286f82e9120b2179a authored over 6 years ago by Vivien Didelot <[email protected]>
block: explicit stdout and stderr parent routines

Similarly to the child code, provide explicit routines to the parent
code to deal with the block...

eede944fd6e70994f10cd11ea835529904dc39db authored over 6 years ago by Vivien Didelot <[email protected]>
block: add a block spawned helper

Introduce a block_is_spawned() helper to abstract the PID check.

634e3f347ddf655b9d2971eb98f936b398a8795c authored over 6 years ago by Vivien Didelot <[email protected]>
block: parse config all at once

Parse all i3blocks specific keys at once instead of iterating over all
keys with map_for_each, b...

a5eb88181dbfc3c413307b0e36d37fda0d3068b4 authored over 6 years ago by Vivien Didelot <[email protected]>
json: add is valid helper

Add a json_is_valid() helper for boiler plate, which checks if a given
value is either a boolean...

af67972f6804bd9cc61e0929b0c34ce81d41c0b7 authored over 6 years ago by Vivien Didelot <[email protected]>
sys: read void pointer

sys_read() must read a void pointer, not char.

01801a20c8be71b9ec0a8b4d0b76bcf01e13f20d authored over 6 years ago by Vivien Didelot <[email protected]>
sched: close stdin on exec

When forking processes, the best practice is to close the standard input
from within the child p...

d376075ff6eb1b26eaf0956796f9db8f178c5eab authored over 6 years ago by Vivien Didelot <[email protected]>
block: bind child stdin to /dev/null

When i3blocks forks a child process, the standard input gets duplicated.
Some commands such as "...

a586a3494ab1dd1359a83caed0fc2020d8993e6f authored over 6 years ago by Vivien Didelot <[email protected]>
block: provide explicit stdout and stderr routines

Split the block_child_pipe() function for two explicit
block_child_stdout() and block_child_stde...

2d15a3d09aa43d23bb4883e85e52d9e2794d22c3 authored over 6 years ago by Vivien Didelot <[email protected]>
sched: inconditionally setup event I/O on stdin

Do not check if stdin is a TTY, so that we get the same behavior when
running i3blocks from i3ba...

0acf5f3d3252b8cbd0716fd3fdc837a028447b46 authored over 6 years ago by Vivien Didelot <[email protected]>
log: add trace level

Add a LOG_TRACE level to trace system calls and signals. This level is
meant for development whi...

ff20c310772158c4cd464dafa3b25fe89c3eee0f authored over 6 years ago by Vivien Didelot <[email protected]>
docs: update label config and installation

Closes #316

55adf299d9666d9c65b8c00134912dffa9790161 authored over 6 years ago by Diki Ananta <[email protected]>
click: fix first click handling

The very first line on standard input is the beginning of an infinite
array, thus the first clic...

99767e6dc450b4e20eb1e83ae80c342883a88865 authored over 6 years ago by Vivien Didelot <[email protected]>
click: handle all properties

Rework the click handling code so that we don't filter properties passed
by i3bar anymore. This ...

f093f737d72fc384529cf3d9fbc6f6dcf4aa4eb3 authored over 6 years ago by Vivien Didelot <[email protected]>
line: propagate -EAGAIN

When reading a stream line by line (e.g. when reading clicks), we need
to know when there is not...

a0347f356295551160d50a9941c960409181e90b authored over 6 years ago by Vivien Didelot <[email protected]>
sys: return -EAGAIN for end-of-file

We have no need to distinguish the end of a stream (for non blocking I/O
for example) and the en...

82dfa14cb47f9f970eb3785f55a44eb97e53a2b9 authored over 6 years ago by Vivien Didelot <[email protected]>
sys: use monotonic clock

Use monotonic clock instead of wall-clock when timestamping blocks,
otherwise changing the syste...

a44b67f0a81562a5a8c4a5227386811121da8614 authored over 6 years ago by Vivien Didelot <[email protected]>
build: initial autotools

This automatically handles Makefile and tarball generation.

e895f80b566650a7f9391d51259c7041f7501f28 authored over 6 years ago by Tristan Matthews <[email protected]>
add link to x11-misc/i3blocks Gentoo package

3ebc14ddc722fe241c5f801b04c9f448aab43c6c authored over 6 years ago by Francesco Turco <[email protected]>
block: rename maps

"config" and "env" are clearer names for the property maps used by the
block. Get rid of the con...

355687de0417970b459583855e998d02ab3c1ee1 authored over 6 years ago by Vivien Didelot <[email protected]>
config: rename config members

"section" and "global" are clearer names for the config members.

6ce253f77ff28d294898a5ce747a01a32a97fcc1 authored over 6 years ago by Vivien Didelot <[email protected]>
block: remove support for label

The "label" property was specific to i3blocks and implemented as an easy
way to prefix the "full...

61646f22f6c4c2f39b7a025ce82f41981baba3a5 authored over 6 years ago by Vivien Didelot <[email protected]>
block: support background property with plain text

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]>
json: escape additional control characters

This commit adds additional escape sequences to the escape functions,
these are the escape seque...

550e8e658ff938122ce353c5836368df01ff7559 authored over 6 years ago by Tomasz Kramkowski <[email protected]>
json: ensure escaped string is not truncated

Check the return value of snprintf() to properly move in the buffer and
make sure the formatted ...

b92226a86e2e352b1e502a73b3d10cb3cead2d93 authored over 6 years ago by Vivien Didelot <[email protected]>
block: remove out-of-date comment

Now all file descriptors are opened and read in a non blocking way, thus
this comment becomes ir...

76b22a3bc299bcfc1c6b4d9d7b4d31e0bedb7d58 authored over 6 years ago by Vivien Didelot <[email protected]>
json: skip array delimiters

The JSON parser does not support parsing object or array at the moment,
since this use case is n...

859091ac9314d00a835403e9a610716777dd7c69 authored over 6 years ago by Vivien Didelot <[email protected]>
line: debug parsed line

Add a debug statement to print the lines being parsed.

131cc1f0ea0c5470b7f707886afb7d338d49c871 authored over 6 years ago by Vivien Didelot <[email protected]>
move source files to root directory

Now that the scripts have been removed from the repository, move the
src/ and include/ source fi...

635f9f0fe51b51b89601a1bb74b274acce32a342 authored over 6 years ago by Vivien Didelot <[email protected]>
scripts: move to contrib

The default scripts have been included in the contrib repository. From
now on, the i3blocks repo...

0e395b983a21b074c6365e34d96865334b994f4b authored over 6 years ago by Vivien Didelot <[email protected]>
remove unused files

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]>
block: drop custom error handling

Now that a generic log handling is implemented, there is no reason to
implement a custom one in ...

31ddc00821872793bf26ba7c4dab27f9d2914f51 authored over 6 years ago by Vivien Didelot <[email protected]>
bar: implement log handling

Implement a log handler for the bar, so that messages up to the error
level can be printed direc...

dcb4db1c6cc963e9da3fef81c826ef54dc99b491 authored over 6 years ago by Vivien Didelot <[email protected]>
bar: centralize bar printing

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]>
bar: centralize bar initialization

Move the bar initialization code, including i3bar protocol handling and
scheduler initialization...

7565c41ad21f4e228b63739d5b0fa3b8d96e1603 authored over 6 years ago by Vivien Didelot <[email protected]>
log: add a generic log handler

Add a generic log() helper to print a message of a given criticality
level, and define a log_han...

1a2bb2ce4be61ec6ab67da53f494933d0dfc88c5 authored over 6 years ago by Vivien Didelot <[email protected]>
json: split generic JSON parsing

Rework the JSON parsing code so that we can parse any arbitrary (flat)
JSON object. That will be...

06d99d0ce7ffd7657792de026ebf98bec393e377 authored over 6 years ago by Vivien Didelot <[email protected]>
config: provide callback for parsed maps

Instead of passing a bar structure around, pass a callback function to
the config code which is ...

425d8eb6898930ce34944f4bb1483f073eae5466 authored over 6 years ago by Vivien Didelot <[email protected]>
block: set every properties in environment

Now that we have dynamic properties, it'd be nice to set all of them
into the environment of a f...

1169da6f972eb23850d434465d71d0037092c277 authored over 6 years ago by Vivien Didelot <[email protected]>
line: rename from io files

Now that the system specific code is extracted from the io code, the
later now only handles line...

db5e39dd6400d93e14eefb1ad2b47a8fda247710 authored over 6 years ago by Vivien Didelot <[email protected]>
sys: wrap system calls

Introduce sys.c and sys.h files to wrap all system calls, and provide a
consistent debugging of ...

9da09d689a857a8311f276fee0dbe3097976ea5e authored over 6 years ago by Vivien Didelot <[email protected]>
block: provide click helper

Add a block_touch helper to reset the timestamp outside the spawn
function and a block_click hel...

5c11186a4a6146d11f73b2296f7b8321ea5ec50d authored over 6 years ago by Vivien Didelot <[email protected]>
map: support dynamic properties

Change the map implementation in order to support dynamic properties.
From now on, any key-value...

9bb057e85e0a5dcd3afb99533f9717a2868bcb34 authored over 6 years ago by Vivien Didelot <[email protected]>
map: abstract properties structure

Provide map.c and map.h files which implement map_* functions to
abstract the properties structu...

47d40839f071d13271a82d90b7c36aedac6f87ca authored over 6 years ago by Vivien Didelot <[email protected]>
ini: split generic INI and config parsing

Split the INI format parsing into ini.c which makes use of the newly
introduced io_open, io_read...

8bc806555a7bc6977b00198d4287fb3f502274bd authored almost 7 years ago by Vivien Didelot <[email protected]>
io: implement io_open, io_close and io_readlines

Rework the implementation of line reading and provide a new io_readlines
routing which calls a c...

21132df26af72abb1d6f03e3a1f74907964a1a71 authored almost 7 years ago by Vivien Didelot <[email protected]>
README: promote contrib scripts

Closes #178 #282

403308bc39056a3664a349d78ea83990a97fd47f authored almost 7 years ago by Alexandre Macabies <[email protected]>
sched: fix musl libc build

This commit solves the following error when building with musl libc
```
src/sched.c:34:17: error...

28c2b092f7d41aa723dad18b0484dca0da1cbbf5 authored over 7 years ago by Leorize <[email protected]>
new README, i3blocks is now in the official arch linux repositories

969eb2635d090345449fddafce29e4fc10a4b105 authored almost 8 years ago by Christian Rebischke <[email protected]>
scripts: (battery) try to guess status by quering ac adapter

The battery script uses `acpi -b` to query to battery status, but the
status might be 'Unknown',...

c4e16fddfb9dc7adb39a38bc400b0da8cc4fb3fe authored over 8 years ago by Damien Riegel <[email protected]>
scripts: (wifi) fix colour detection

Anything under 80 was being coloured the same.

Closes #203

66f8b9d6ca2e595284e1852a3c41fe0341e62524 authored over 8 years ago by Fice T <[email protected]>
scripts: (bandwidth) check presence of bc

bc doesn't come installed in base or base-devel for Arch users, so in
the case that it is not in...

fb7616aade41a5415b9426d7bfcb9b43a99d4c88 authored over 8 years ago by Chris de Graaf <[email protected]>
Makefile: make the build reproducible

This is done by sorting the list of sources, which will later turned into list
of objects (thus ...

43fadda4c950bb3bd8d57b4d927165d0ec3bfec9 authored over 8 years ago by Jason Pleau <[email protected]>
block: add support for the 'border' property

The i3bar protocol now supports a 'border' key to change the border
color of a block. Add suppor...

de1d46a8d80cdd9d97178906b6c2e87ab764960a authored over 8 years ago by Vivien Didelot <[email protected]>
block: add support for the 'background' property

The i3bar protocol now supports a 'background' key to change the
background color of a block. Ad...

702db2ac9da8d14736f5f012830f34248ba7f866 authored over 8 years ago by Vivien Didelot <[email protected]>
block: don't overwrite color from plain empty line

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]>
manpage: use pandoc instead of ruby-ronn

reasonning: ruby-ronn is abandonned, and will most likely be dropped
from debian and ubuntu [1]
...

b736a2732cfea7c4869ae34c6d2a900471a9348e authored over 8 years ago by Jason Pleau <[email protected]>
block: invalid file descriptors after close

When a new file descriptor is required, the process is given the lowest
one available, usually t...

017395f08498f357cfc4301017bb6d93085e05e6 authored almost 9 years ago by Vivien Didelot <[email protected]>
scripts: (memory) fix 'not enough argument' error

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]>
Makefile: use DATAROOTDIR for PREFIX/share

Allow specifying DATAROOTDIR to make install target compatible with filesystem
layouts where arc...

5ebb37226d110f0090ed65227b13868cd18322a1 authored almost 9 years ago by Volodymyr Medvid <[email protected]>
Makefile: add man targets

Extract the man page install and uninstall to their own install-man and
uninstall-man targets. T...

ea30eb3d00c58562532a29ad6bbf991b5587cf03 authored almost 9 years ago by Vivien Didelot <[email protected]>
block: increase size of instance to 256

Someone may use the instance property to pass long arguments such as
URIs. So increase its size ...

6a345440853d1cd16cef7096ffc636bed161fd91 authored almost 9 years ago by Vivien Didelot <[email protected]>
scripts: (cpu_usage) use variable decimals

Add a -d <decimals> option to control the number of decimals displayed
when printing the percent...

abf4e8ef3770c750c9a92b000beb8e29fe5a70af authored about 9 years ago by timp3289 <[email protected]>
scripts: (memory) add color

Color the output in yellowish for 70%-80%, in orangish for 80%-90%, and
red above 90% of used me...

a0cac137634b7608c407f67a0abfeeeceaed9c24 authored about 9 years ago by Andreas Lutro <[email protected]>
scripts: (memory) add short_text

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]>
scripts: (memory) use consistent full_text

The script currently outputs the amount of used memory for "swap", and
the amount of free memory...

d8e36123841d58820c97aa51755694974e9f6aa4 authored about 9 years ago by Andreas Lutro <[email protected]>
block: update only a single line of plain text for persistent block

Since we are copying also empty lines (see #109), short_text and color
of persistent block get o...

8f7097b359027bb3da189a0e89aaec32a1c5a9a6 authored about 9 years ago by Ingo Bürk <[email protected]>
block: expose $BLOCK_INTERVAL to blocklets

closes #139

01a4f4a9ca1e3d0b3c95d1d62000ad8506bdff1a authored about 9 years ago by James Murphy <[email protected]>
io: include newline char when reading a line

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]>
block: allow empty lines for plain text updates

An empty line from a blocklet should not be ignored. For instance in the
case of "xtitle -s" an ...

701dd3f704509278183090f9b3e66c546d5e0d68 authored over 9 years ago by Oliver Runge <[email protected]>
readme: fix regexp in volume example

If volume is 100%, only 00% is shown.

Closes: #133
Reviewed-by: @kb100

6cec173e6148eba925024f471dbd04c12ec8df71 authored over 9 years ago by Rainbow <[email protected]>
scripts: (bandwidth) add support for custom IN and OUT labels

The script now can get two command line arguments, -i/--inlabel and
-o/--outlabel to enable cust...

b5a6b25112744874305689408ac7bc818099af88 authored over 9 years ago by setzer22 <[email protected]>
scripts: (temperature) move to contrib repository

This blocklet has been moved to:
https://github.com/vivien/i3blocks-contrib/tree/master/temperat...

8858ef03e62c006fe304912c920e17d0ef5c074f authored over 9 years ago by Vivien Didelot <[email protected]>
scripts: (openvpn) move to contrib repository

This blocklet has been moved to:
https://github.com/vivien/i3blocks-contrib/tree/master/openvpn
...

75f97dc309b79f918b069046378dccccacbf9432 authored over 9 years ago by Vivien Didelot <[email protected]>
scripts: (mediaplayer) move to contrib repository

This blocklet has been moved to:
https://github.com/vivien/i3blocks-contrib/tree/master/mediapla...

3083aabffabe260577564ed2ec48fe6bd7495331 authored over 9 years ago by Vivien Didelot <[email protected]>
scripts: (keyindicator) move to contrib repository

This blocklet has been moved to:
https://github.com/vivien/i3blocks-contrib/tree/master/keyindic...

618f654db9fd583402fa461ee7ffc64b740bb801 authored over 9 years ago by Vivien Didelot <[email protected]>
readme: specify the command to create the default conf file

Closes: #131

c2a021dd33be49f55381aa228547b95a7ecbc5d8 authored over 9 years ago by Samy Dindane <[email protected]>
scripts: (openvpn) remove label

To avoid "VPN: " tagging along on any ride, this minor change removes it
from the script, so tha...

f31218e49f6d583d25d14506d27fcaf761cc8b27 authored over 9 years ago by Thor K. H <[email protected]>
prepare 1.4

37a77492a1eead537892086c68c6de57b4bfa51c authored over 9 years ago by Vivien Didelot <[email protected]>
scripts: (mediaplayer) add click actions

You can now go to the previous track with left button, next track with
right button, and play/pa...

f983d822ec21fd2e0ba85d5b54ddbdb95b3f9998 authored over 9 years ago by Roberto "Roobre" Santalla <[email protected]>
Revert "scripts: add a script to control MPD"

This reverts commit d14b56e8c2e5da44fc44a58cfaea4682fcbb168b.

According to @jpleau, this mpd sc...

19741a409515d7bda809128b6379436fe592b1a7 authored over 9 years ago by Vivien Didelot <[email protected]>
ini: extract file parsing to its own function

This commit extracts the nested parse() function from ini_load() to its
own try_parse() function...

6fec4ad1ff7758999e7966d7158f02af26f6d13c authored over 9 years ago by Vivien Didelot <[email protected]>
sched: move nested gcd function

Clang does not support nested functions. So remove the nested gcd()
function in sched.c to be ab...

0401f581308b38f87a9167d6b09108a9e4aba5d3 authored over 9 years ago by f-koehler <[email protected]>
ini: move bar allocation to parse_bar

2896a5be8f368f42f40d7b10d8d9d2088d3269da authored over 9 years ago by Vivien Didelot <[email protected]>
man: fix i3bar-protocol in href

The href was missing in the generated HTML manual.

Closes #99

2ce6b43756047f92ef8b10ad5bd5518e58a33142 authored over 9 years ago by Vivien Didelot <[email protected]>
block: add support for the markup property

The markup property has recently been introduced to the i3bar protocol
to prevent escaping issue...

322923a6e76b11ab095a3cca32f8ca62983ec31e authored almost 10 years ago by Ingo Bürk <[email protected]>
block: restore urgent block name and instance

i3blocks wasn't printing the block name and instance if the later set
the urgent flag. Restoring...

69aa250aaed22d10b7e0245e280889e7b28bb0e1 authored almost 10 years ago by Vivien Didelot <[email protected]>
json: invalidate imcomplete string

When parsing a JSON string, ensure the closing quote is present.

0170418bd80b380409c1ece0625e6fd7f3804cdc authored almost 10 years ago by Vivien Didelot <[email protected]>
json: skip pre-value whitespace

As suggested by @Zopieux.

Refs #87

6ac3246f02c177cd09876b6044cf8b65958e3a25 authored almost 10 years ago by Vivien Didelot <[email protected]>
block: add support for JSON output format

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]>
json: undef PRINT

Fix a typo, undef PRINT instead of JSON.

7a5cc630d3ebda4bd25e4adf9741f8f4b7f434b4 authored almost 10 years ago by Vivien Didelot <[email protected]>
scripts: add network bandwidth script

[vd: rename the script to bandwidth; use the default route interface if
not instance is supplied...

4be0ecee4493ead11917022aaae13d42012058d6 authored almost 10 years ago by Thiago Perrotta <[email protected]>
add support for persistent blocklets

This commit adds a new "persist" special interval value. This is meant
for block commands which ...

3c1944e1da3970fff54caf004e8aa62171d37aec authored almost 10 years ago by Vivien Didelot <[email protected]>
scripts: (iface) use default route interface

If no interface is specified, use the one used by the default route.
This will even simplify the...

69a1455524c55fb8743df83f6b1f7680337b1598 authored almost 10 years ago by Vivien Didelot <[email protected]>
scripts: (network) split into "iface" and "wifi"

[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]>
scripts: (mediaplayer) use /usr/bin/perl

The perl binary will usually be installed as /usr/bin/perl, and then
symlinked to /bin/perl. Thi...

3625f316dccdaa045ff25cdfacfe7d0f358707d4 authored almost 10 years ago by Jason Pleau <[email protected]>