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

scripts: add a script to control MPD

Displays the current song, as well as pause/play toggling by left
clicking the song name.

Mouse...

d14b56e8c2e5da44fc44a58cfaea4682fcbb168b authored almost 10 years ago by Jason Pleau <[email protected]>
merge contrib scripts

To simplify user experience and maintainability, merge the contrib
scripts into the defaults, an...

1d30b3d5cc58ab5654ee0498b3ee73de8e282973 authored almost 10 years ago by Vivien Didelot <[email protected]>
bar: read click from stdin, not stderr

The commit 305c1ffbed60728532a562cfc236c061feab1ad9 breaks the click
handling, as it tries to re...

b0fb6cbd94a0b4649782bdb8230ac4d5be983430 authored almost 10 years ago by Vivien Didelot <[email protected]>
separate source files and headers

As the number of source files grows, the root directory starts being
cluttered. This commit move...

b615bcc6e6e98aea56925cb5eca47995f209752c authored almost 10 years ago by Vivien Didelot <[email protected]>
io: add new source files for I/O related routines

These files are meant to regroup (mainly non-blocking) I/O functions.

This commit updates sched...

305c1ffbed60728532a562cfc236c061feab1ad9 authored almost 10 years ago by Vivien Didelot <[email protected]>
block: extract block update

Extract the reading and parsing of the block output from the
block_reap() function to a new bloc...

784e0e6d31e1bf63e1772c68f6d8f9c1a8908f82 authored almost 10 years ago by Vivien Didelot <[email protected]>
block: move stderr dump to its own function

The dump of the block stderr is not critical. So move it to its own
block_dump_stderr() function...

ef7983c8f90016ccc5e09ca047b7b83a7ce03a86 authored almost 10 years ago by Vivien Didelot <[email protected]>
clean headers

[vd: keep alphabetical order]

Closes #91

86437e3501db47717c6fca428d55a53ebe1bbbe3 authored almost 10 years ago by Guillaume Coré <[email protected]>
readme: add Gitter badge

Closes #88

9a8ba79e9e8554003babbe1932bf8a2c41f0b81e authored almost 10 years ago by The Gitter Badger <[email protected]>
ini: simply return from the PARSE macro

Return directly from the expansion of the PARSE macro instead of using a
label.

af8d041f3127d0bc3716f4caebffa1eaea5a448a authored almost 10 years ago by Vivien Didelot <[email protected]>
sched: check fcntl(F_GETFL) for error

fcntl(F_GETFL) may fail, so check its return value. Also use errorx()
instead of error() to hand...

d1a3b99133f436f059941934d92c6863842259b0 authored almost 10 years ago by Vivien Didelot <[email protected]>
block: ensure terminating null byte on read

If we read sizeof(buf) bytes (which is unlikely), we lose the
terminating null byte. Read sizeof...

0b45030815743fa4f41e485bfb63df904a0f560e authored almost 10 years ago by Vivien Didelot <[email protected]>
json: remove const for parameter passed by value

It makes no sense for the caller to use const for function parameters
passed by value.

a2981751441a87183ce61e7728bcdd081e820437 authored almost 10 years ago by Vivien Didelot <[email protected]>
block: change size type to size_t

Use size_t instead of unsigned int, as used by strncpy().

5456a6787a06d89a2bb7ee128738e78bacbf0f41 authored almost 10 years ago by Vivien Didelot <[email protected]>
manpage: fix a typo

18c41033ecd58ae75ae907ad9b921da84ec8c762 authored almost 10 years ago by Jason Pleau <[email protected]>
readme: add links to i3blocks for debian/ubuntu

6cde14e2affc801f9dea0c0b152326204cca00bd authored almost 10 years ago by Jason Pleau <[email protected]>
block: do not reset PID if waitpid fails

If waitpid() fails (if interrupted for instance), the block->pid is
reset anyway, which could le...

434a57518cdafe0945417e3867d7cd2a7f3c2d28 authored almost 10 years ago by Vivien Didelot <[email protected]>
bar: remove const for parameter passed by value

It makes no sense for the caller to use const for function parameters
passed by value.

e9ec51b975a78f9122b63ed9ca10478392810255 authored almost 10 years ago by Vivien Didelot <[email protected]>
scripts: (volume) unmute on change

Closes #81

f296ffb9851fa1d2c2d60ed055ab119978d84c8e authored almost 10 years ago by Nycroth <[email protected]>
Makefile: remove unused src/ from objects

d55bdcd9a5334a4d9bb12989445791303e35bbf8 authored almost 10 years ago by Vivien Didelot <[email protected]>
scripts: (cpu_usage) include %nice in calculation

Fixes #74
Closes #75

54c96440fb276ef310c5a80de15419abe968df2c authored about 10 years ago by Alexander Kauer <[email protected]>
contrib: add new key indicator script

This contrib script shows the status of the CAPS and NUM lock keys.

Closes #71

0a94f55e3972eb7e48708691812d6e9d268f7e3a authored about 10 years ago by Marcelo Cerri <[email protected]>
readme: fix signal number in the volume example

Closes #72

1c74dd32d8d410bf947d3c29f6de4e29ba2d2be0 authored about 10 years ago by Vivien Didelot <[email protected]>
scripts: (load_average) use numerical comparison

Compare load average and number of CPUs numerically instead of
lexicographically.

[vd: exit wit...

88e2ff664c9e2f257e2977fbc2081ca8f54c52d2 authored about 10 years ago by kb100 <[email protected]>
manpage: fix a small spelling error

Debian's lintian tool checks for common spelling errors in packages, it
reported this one.

Clos...

4b36dba4fd1679f2732c7866a2ffc0d247960c05 authored about 10 years ago by Jason Pleau <[email protected]>
scripts: (disk) do not discard stderr

In the meantime, comment out the default instance, add a label and
group it with the memory blocks.

e6a8225f2015e0773c2dd20c96a515eceb3ae20f authored about 10 years ago by Vivien Didelot <[email protected]>
scripts: (battery) support individual batteries

Optionally use the instance property to match individual batteries,
instead of using the first o...

28c5595fd2d4ef54b3fb6936d20dad14b22da646 authored about 10 years ago by Revan Sopher <[email protected]>
prepare 1.3

92f844589e33d3740e8c0f12b1350d3bae3db89a authored about 10 years ago by Vivien Didelot <[email protected]>
scripts: (memory) use instance

Refs #53

d7be5512d160f88be94fc76f19b1ef1ef6f03889 authored about 10 years ago by Alexander Keller <[email protected]>
scripts: (volume) make it more flexible

- Dynamically choose main volume control
- Selectable volume adjustment step
- Selectable volume...

b06380f15b29f15a6360c1334bb09cfabc0fbd88 authored about 10 years ago by Alexander Keller <[email protected]>
scripts: (disk) use instance

Refs #53

bf1f267d8421580a6379c0eaa5cc00c5c7a8d3b4 authored about 10 years ago by Alexander Keller <[email protected]>
config: remove useless battery argument

Refs #53

072d7559e81a44932bb661cabaf8b40c28f9a45f authored about 10 years ago by Alexander Keller <[email protected]>
Makefile: compress dist archive

The generated archive was not gzipped. Add a -z flag to the tar command.

Reported-by: Jason Ple...

c1620930277b6589e6b4eb267ab86a853e75e0f5 authored about 10 years ago by Vivien Didelot <[email protected]>
Makefile: add a distclean target

i3blocks.1 is removed during a "make clean", which is not convenient
when used from an archive. ...

f0e1b843ad42edca2026b9be5363706e9a07341c authored about 10 years ago by Vivien Didelot <[email protected]>
Makefile: fix VERSION test

Because I removed the double quotes of VERSION in Jason's d686490
commit, make is invoked with -...

2e899e6367a37d4d56602a4bd451af02a8f8e2e0 authored about 10 years ago by Vivien Didelot <[email protected]>
config: document the default config file

Add the list of valid properties in the default config file, as well as
a link to the manual page.

19b4e56caf11169b808fecbbfbdd0f076dc74a45 authored about 10 years ago by Vivien Didelot <[email protected]>
readme: notice the ruby-ronn dependency

This tool is needed to manually generate the man page.

Closes #56

e2469abc6b5475a75871f3107d9c7fc182a96c99 authored about 10 years ago by Vivien Didelot <[email protected]>
scripts: (cpu_usage) use default error message

die() already provide a very similar default message.

ef01f01ead276760d8ed31c10d305a507d6d85e8 authored about 10 years ago by Vivien Didelot <[email protected]>
contrib: add new temperature script

This script uses the raw output to support any sensor chip.

[vd: squash and move to contrib]

C...

47ebf5a3fcd5a597356de26164ef75825629bb47 authored about 10 years ago by Benjamin Chrétien <[email protected]>
add incremental log level

Add a cumulative -v option to control the display of log messages. By
default, error messages ar...

4799f98779b3e5b72f85596d3bf4a964d50010b8 authored about 10 years ago by Vivien Didelot <[email protected]>
Makefile: add a "dist" target

The dist target in the Makefile will take care of generating the manual
page, and also create an...

d6864901196c2c9916043f01c9a2d4fe0bf41626 authored about 10 years ago by Jason Pleau <[email protected]>
sched: fix unexpected exit when hiding the bar

When the bar visibility is toggled (e.g. with "i3-msg bar mode toggle"),
sigwaitinfo may be inte...

55c9832094d9bfa2ecae3ea9b8d54811fafdfcc0 authored about 10 years ago by Vivien Didelot <[email protected]>
scripts: (volume) handle clicks and mute

Thanks to:
@xelite for mouse volume controls
@jpleau for feedback about UI design
@Elfram ...

48461235fdb918640ca1364b0e5e0be8701a4790 authored over 10 years ago by Nycroth <[email protected]>
Makefile: move man target as an install dependency

The ruby-ronn dependency for the man page generation should not be a
dependency to compile i3blo...

4c99f85d31045678524cacfd505ef124258dc195 authored over 10 years ago by Vivien Didelot <[email protected]>
Revert "travis: install ruby-ronn"

This reverts commit 822a6f8e069b7accf622004465b521900cc5357e.

145850a329d4a304cce073f2887a6ef686c77dd5 authored over 10 years ago by Vivien Didelot <[email protected]>
do not version the generated manpage

Since the Ruby ronn gem is packaged (usually as ruby-ronn) in many
distro, it is not necessary t...

77a95571a43866e52615083161dd627140c460ba authored over 10 years ago by Vivien Didelot <[email protected]>
Makefile: change the way VERSION is generated

Issues:

- If we're building from a release tarball, VERSION is not set
- If we're building ...

89755a4da6d7b6ae1d9065291c966cb7e451f4ed authored over 10 years ago by Jason Pleau <[email protected]>
readme: use label in volume example

560bee196b1e7e52f9c07fa79d375b3fca3436c1 authored over 10 years ago by Vivien Didelot <[email protected]>
travis: install ruby-ronn

822a6f8e069b7accf622004465b521900cc5357e authored over 10 years ago by Vivien Didelot <[email protected]>
Makefile: install the content of the contrib folder

Added DOCDIR (defaulting to $PREFIX/usr/share/doc/$PROGRAM), and
installed the contents of contr...

3b9e62f71f1f088561e0b65be81c4ecf4044ab2b authored over 10 years ago by Jason Pleau <[email protected]>
Makefile: fix manpage uninstall

[vd: split from Jason's PR43]

e143058d546770d275dbf287587d95fac7b17aba authored over 10 years ago by Jason Pleau <[email protected]>
Makefile: allow customization of LIBEXECDIR

By default, scripts are installed in /usr/libexec, but on Debian based
system, this directory is...

adc6dab346665b5c184d482045ff93a24e3428cb authored over 10 years ago by Jason Pleau <[email protected]>
fix a compilation error with -Werror=format-security

Debian's dpkg-buildpackage seems to use -Werror=format-security.

This patch fixes this compilat...

fa3881e3133bb9c2804db632dca1ec362fd3fa74 authored over 10 years ago by Jason Pleau <[email protected]>
ini: check system config files in XDG dirs

According to the XDG specification, check for a system-wide config file
in {,/usr/local}/etc/xdg...

a1782404c7d933145b048d0d1872ea40d7a293b6 authored over 10 years ago by Vivien Didelot <[email protected]>
bar: warn about too fast repetition

4180098284ae33f753b26e9854cca083e5012f98 authored over 10 years ago by Vivien Didelot <[email protected]>
use -V for version

Save -v for future verbose mode.

0849651ba4b549ac28d0c52d542ca256e5a1301d authored over 10 years ago by Vivien Didelot <[email protected]>
man: review i3blocks description

ee71418c56bb0ace24a4e0bcfb359b16e34642c4 authored over 10 years ago by Vivien Didelot <[email protected]>
Revert "introduce the BLOCK_LIBEXEC env variable"

This reverts commit 2833ae631a5298bff3a71e28b91cdafc1063413c.

This new option added too much co...

4939ed2ae74f8cc6706b1001380a1cab2165af08 authored over 10 years ago by Vivien Didelot <[email protected]>
block: detail internal error

Print error messages for any failure between the fork and exec. On
internal error, return a spec...

6a7b07fdc49c84597a1f41d8ddac973e5046181b authored over 10 years ago by Vivien Didelot <[email protected]>
readme: add compile instructions

Also add a link to the Archlinux i3blocks-git AUR package.

Closes #38

f04b736afa95bd2b2ccd3de7f6beeec66cce3e56 authored over 10 years ago by Vivien Didelot <[email protected]>
config: avoid special char

Use word labels for volume and battery, instead of unicode characters.

Refs #36

2ddf288353029105b0dd3dfbe335d586277b52c1 authored over 10 years ago by Vivien Didelot <[email protected]>
scripts: (network) take interface from ENV

Make the network script more i3bar-ish by taking the interface from the
BLOCK_INSTANCE environme...

63b0e581eeaa4997144f2de7382a33765d7b468f authored over 10 years ago by Vivien Didelot <[email protected]>
scripts: (battery) avoid utf-8 chars

Refs #36

59b7e22b79adeb64ba8959cf544c41ddc6a90fef authored over 10 years ago by Vivien Didelot <[email protected]>
block: add a new "label" property

Add a new i3blocks-specific property named "label", used to specify an
optional string to prepen...

4f70ef99546478c82547a752e46d7db1ac27a195 authored over 10 years ago by Vivien Didelot <[email protected]>
scripts: extract labels

Move labels to the config file instead of letting the scripts print
their own version.

1209af41cbe83cebb0dc44d86a5d21ae171af534 authored over 10 years ago by Vivien Didelot <[email protected]>
Merge branch 'special-intervals'

* special-intervals:
block: introduce special interval value "repeat"
block: introduce speci...

22cc8229f7798ca7105853511880a1118d451f32 authored over 10 years ago by Vivien Didelot <[email protected]>
block: introduce special interval value "repeat"

If a block interval is specified as "repeat", then its command is
respawned as soon as it termin...

821db4f68b07db973275ec105fafbaac9da7f25a authored over 10 years ago by Vivien Didelot <[email protected]>
block: introduce special interval value "once"

If "once" is specified for the interval, then the command will be
spawned just once on load. Thi...

ede585192daa2a7495869a055e3059fd5e785b19 authored over 10 years ago by Vivien Didelot <[email protected]>
sched: execute only timed commands on startup

Add a bar_poll_timed() function meant to be called on startup, to fork
commands with a time inte...

81eafe387dcb31d1085e935923c2df23b61b2ce4 authored over 10 years ago by Vivien Didelot <[email protected]>
sched: consider only positive intervals

It is actually allowed to specify a negative interval, so ignore it in
the sleeptime calculation...

45184b7ab8e44c53076d8d7618bea7e2a9b7996c authored over 10 years ago by Vivien Didelot <[email protected]>
json: parse quoted key

searching for the quoted key is more accurate than just the name. For
example, parsing a click f...

1fa5abb00735f7bc8d30c508261fed6dbdc3ab38 authored over 10 years ago by Vivien Didelot <[email protected]>
scripts: do not redirect stderr to stdout

Let i3blocks catch an error and print it on its stderr.

e80259fc0f5afa511bcdff7407c079dace557547 authored over 10 years ago by Vivien Didelot <[email protected]>
block: catch block error stream

Pipe stderr when forking a block command, in order to dump any error
message.

4adcdd774db6344d652751f4a197c784b9474b41 authored over 10 years ago by Vivien Didelot <[email protected]>
block: better error handling

Do not print the first stdout line on error;
Close pipe read end on any error;
Simplify the mark...

016b48501af43ee751c361243911aca0111a2f3d authored over 10 years ago by Vivien Didelot <[email protected]>
block: do not update time stamp on click

As a user may want to trigger a different action on click, do not update
the time stamp when a c...

dd33fca32cd47d4fb51705c6596fbad2905f1e3d authored over 10 years ago by Vivien Didelot <[email protected]>
use for-loop initial declarations

As allowed by the C99 standard.

5adf6e6d6d1ef3ba5b573eedeb5714f01fa811c1 authored over 10 years ago by Vivien Didelot <[email protected]>
use gnu99 mode

This standard allows for-loop initial declarations, but also includes
the definitions of things ...

0e77d09b6de3fcbcbd54a006448e0b6424fb1a96 authored over 10 years ago by Vivien Didelot <[email protected]>
implement event-driven scheduler

This tremendous diff constitutes a major refactoring of the scheduler.

Setup an interval timer ...

6712002589853ea51e02398f07579b6422918d73 authored over 10 years ago by Vivien Didelot <[email protected]>
ini: fix block name bundary

75c71c1a9c295ee2a3dd9e856c7d21c97330a5fb authored over 10 years ago by Vivien Didelot <[email protected]>
readme: add a link to a Gentoo ebuild

This ebuild is a contribution from @mudler sabayon repository.

Closes #31

da24d4fc382575d0eafdf9b30352fb49a9b0dafc authored over 10 years ago by Vivien Didelot <[email protected]>
ini: check config in ~/.config/i3blocks/ first

Similar to what i3 does, check for the i3blocks user configuration file
first at ~/.config/i3blo...

78c55c3878b87d3e4b725ad119e58e63d48b6ceb authored over 10 years ago by igwan <[email protected]>
scripts: (cpu_usage) use consistent floating-point format

[vd: adjust the min_width]

Closes #29

1c1742425e2653ec7aa14b0762719f7c6f629bcb authored over 10 years ago by Benjamin Chrétien <[email protected]>
man: update `BUGS` section

Remove the JSON escape bug from the man page since it was fixed by #24.

Add a link to the issue...

c776e47aa89865e1a39866ed2531a1b1f909afaa authored over 10 years ago by Valérian Galliat <[email protected]>
cpu_usage: shell out to mpstat with en_US locale

If LANG, LC_MESSAGES or LC_ALL is set to a language that has a different
word for "average", the...

06c381e2a2ec7886cbba9c283d02db795b0a7f2b authored over 10 years ago by pink-mist <[email protected]>
log.h: include string.h for strerror()

8cfe257bd61a33978e2e4fa96196070463fa261d authored over 10 years ago by Vivien Didelot <[email protected]>
json: escape strings

Closes #24

9e8e313d252e5000d6bebb59fbaaff506bcb0408 authored over 10 years ago by Valérian Galliat <[email protected]>
contrib: (mediaplayer) use instance for player

The 'player' argument to `playerctl` is given by `instance` in the
i3blocks config file.

Player...

16802713d942e397f88f40fb74b8eb20dfe13e75 authored over 10 years ago by Tony Crisci <[email protected]>
integrate Travis CI

01d34023d42f0f8908401be9599b9783c0bd2756 authored over 10 years ago by Philippe Proulx <[email protected]>
add a contrib/ directory

The new contrib/ directory is meant to include some well done and useful
scripts. It is scripts ...

d2304db16d892e19f29ba548a4720fa35c0e1ddb authored over 10 years ago by Vivien Didelot <[email protected]>
contrib: (openvpn) new script

Closes #18

[vd: fix typo i3block -> i3blocks]

b6d98be227f05bfa843fb4ad1c4126ee6910147f authored over 10 years ago by Pierre Mavro <[email protected]>
contrib: (mediaplayer) add cmus support

Add support for cmus by using the cmus-remote utility to query metadata.

https://cmus.github.io...

54b0e777e7a65f8a336ad56f857e6e392f5b5bfd authored over 10 years ago by Tony Crisci <[email protected]>
introduce the BLOCK_LIBEXEC env variable

On runtime, i3blocks now sets a BLOCK_LIBEXEC variable to the
environment. It is introduces for ...

2833ae631a5298bff3a71e28b91cdafc1063413c authored over 10 years ago by Vivien Didelot <[email protected]>
scripts: (mediaplayer) new script

Add the mediaplayer script for displaying "[ARTIST] - [TITLE]" in a
block if this information is...

e3429111290ac7f087e3fe3a48040eb22bbcc213 authored over 10 years ago by Tony Crisci <[email protected]>
scripts: (cpu_usage) flatten the script

This commit flattens the cpu_usage script, and add a few tweaks, like:
using $! instead of $?, s...

fb105e806e5700a6acab924b6d8a7836225a4284 authored over 10 years ago by Vivien Didelot <[email protected]>
scripts: (battery) color and urgent on discharge

Change the script to consider color and urgent flag only on discharge.

Refs #12

e6bee6e46652dc3938e0cfe5cf663a9d8944f0fd authored over 10 years ago by Vivien Didelot <[email protected]>
scripts: (battery) new script

This new version of the battery script uses the acpi tool to retrieve
percentage and remaining t...

f9d256614ba9b013778d7e591452a12efa528883 authored over 10 years ago by Pierre Mavro <[email protected]>
block: better failure message

This commit adds the exit code (if given) to the short_text,
concatenates the full_text with it ...

d17781dce898a76f1d87cbb6ce203352b0c18a42 authored almost 11 years ago by Vivien Didelot <[email protected]>
block: add b{debug,error*} macros

This commit introduces macros bdebug(), berror() and berrorx() which
takes a block as their firs...

05fdccf01d747289a7c239ec7f23c40d6ea2dfa9 authored almost 11 years ago by Vivien Didelot <[email protected]>
man: a bad error code is displayed

Correct the man page to specify that an error is displayed, instead of
skipping the block.

In t...

085af234cacf7a1daa0e7e0496e69d0475aa2d2c authored almost 11 years ago by Vivien Didelot <[email protected]>
scripts: (volume) remove colon char

4ce679aaa22427dd83677e51f54014b2fe547b6c authored almost 11 years ago by Vivien Didelot <[email protected]>