Skip to content

Commit 1edb8d1

Browse files
authored
Merge branch 'master' into kbdd-layout-update
2 parents 69b6e4a + 21708ed commit 1edb8d1

File tree

173 files changed

+9430
-429
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+9430
-429
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.swp

CONTRIBUTING.md

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,21 @@ interpreted as described in [RFC 2119](https://www.ietf.org/rfc/rfc2119.txt).
2121
5. Any non-obvious assumptions required to make the configuration work SHOULD
2222
be included either in the `README.md` or as comments in the configuration.
2323
6. A blocklet's suggested command SHOULD be of the form
24-
`command=/path/to/myscript[.ext] [args...]` even
25-
if the script is a single line.
26-
7. The command file (`myscript[.ext]` above) SHOULD be the entirety of the
24+
`command=$SCRIPT_DIR/myscript [args...]` even
25+
if the script is a single line. The [args...] SHOULD be empty, in favor of
26+
using injected properties.
27+
7. The command file (`myscript` above) SHOULD be the entirety of the
2728
executable part of your blocklet, i.e. your code is a single script.
28-
8. The command file's name, up to extension, SHOULD match the name of the
29-
containing directory. E.g. `myscript/myscript.ext` and `myscript/myscript`
30-
are both good names, but `myscript/yourscript.ext` is not.
29+
8. The command file's name, SHOULD match the name of the
30+
containing directory. E.g. `myscript/myscript`
31+
is a good name, but `myscript/yourscript` is not.
3132
9. A blocklet SHOULD NOT have a separate non `i3blocks.conf` configuration
3233
file. Any extra configuration (e.g. default colors, paths, etc.) SHOULD be
33-
contained in the command file near the top.
34-
10. A blocklet SHOULD include at least one screenshot of what it looks like in
34+
injected properties.
35+
10. A blocklet MUST include at least one screenshot of what it looks like in
3536
action.
36-
11. A blocklet SHOULD NOT require building.
37+
11. A blocklet MAY require building/compiling, but if it does the build process SHOULD be
38+
as simple as possible (preferably nothing more than running `make`)
3739
12. A blocklet SHOULD include a `LICENSE` file.
3840
13. A blocklet MAY include a `.gitignore` file.
3941

@@ -47,16 +49,20 @@ interpreted as described in [RFC 2119](https://www.ietf.org/rfc/rfc2119.txt).
4749
# Pull request guidelines
4850

4951
1. Every commit being merged in a pull request MUST begin with the name of the
50-
blocklet it concerns.
52+
blocklet it concerns, .e.g. `myscript: update colors`
5153
2. A contributor with write access MUST NOT merge any pull request that he or
52-
she created.
54+
she created, unless there are no other contributors with write access
55+
currently active.
5356
3. Commit messages SHOULD be written in imperative form. E.g.
5457
`myscript: add option to configure colors`, instead of
5558
`myscript: added option to configure colors`.
5659
4. Commit message first lines SHOULD be 72 characters or less but descriptive,
5760
and details MAY be added to subsequent lines.
58-
5. A pull request SHOULD contribute significant change to exactly one
59-
blocklet. A bug fix will usually be considered a significant change.
61+
5. Commit details SHOULD write `Fixes: [issue]` or `Closes: [issue]` if
62+
the commit is meant to fix/close an issue on the issues page.
63+
6. A pull request SHOULD contribute significant change to exactly one
64+
blocklet. A bug fix or new injected property will usually be considered
65+
a significant change.
6066

6167
# Example workflow
6268

@@ -70,14 +76,14 @@ In case you have never made a pull request before, here is an example workflow.
7076
3. You fork the i3blocks-contrib repository on github, and clone your fork of
7177
i3blocks-contrib onto your computer with `git clone [your fork here]`.
7278
4. You copy your `myscript` directory to the top level of the cloned
73-
i3blocks-contrib directory and change to the top level directory.
79+
i3blocks-contrib directory and `cd` to the top level directory.
7480
5. You `git add myscript` to tell git to track your blocklet's directory, you
7581
will need to do this before every commit.
7682
6. You `git commit` and leave a commit message of the form
7783
`myscript: add myscript, a short description of myscript`
7884
7. Perhaps you make a few last minute changes, and add another commit.
7985
8. You squash your commits into one with `git rebase -i` and follow the
80-
instruction, leaving only your first commit and commits that were already
86+
instructions, leaving only your first commit and commits that were already
8187
there unsquashed.
8288
9. You push your changes to your fork on github with `git push`.
8389
10. You navigate to vivien's i3blocks-contrib, click "pull requests" and
@@ -93,7 +99,8 @@ In case you have never made a pull request before, here is an example workflow.
9399
13. You push to your remote fork of i3blocks-contrib, and the changes
94100
automatically get incorporated into the pull request process.
95101
14. A maintainer with write access to vivien's i3blocks-contrib decides your
96-
script is ready to be merged and merges it in.
102+
script is ready to be merged and merges it in, possibly making minor changes
103+
of their own in the process.
97104

98105
Whenever you make a significant change to your blocklet or fix a bug,
99106
squash your local commits since your last pull request and replace the commit

ISSUE_TEMPLATE.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### Expected behavior
2+
3+
4+
### Actual behavior
5+
6+
7+
### i3blocks config relevant to blocklet(s)
8+
9+
10+
### Output of blocklet(s) when run from command line
11+
12+
13+
### Output of any relevant other commands that might help diagnostics
14+
15+

README.adoc

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
= Community contributed blocklets
2+
3+
This repository contains a set of scripts (a.k.a. *blocklets*) for link:https://github.com/vivien/i3blocks[i3blocks], contributed by the community.
4+
5+
|===
6+
| Blocklet | Description
7+
| link:afs[] | Show usage information for an AFS directory
8+
| link:apt-upgrades[] | Show system upgrades using aptitude
9+
| link:arch-update[] | Show AUR updates using yaourt
10+
| link:aur-update[] | Show AUR updates
11+
| link:bandwidth[] | Show bandwidth information (default bash version)
12+
| link:bandwidth2[] | Show bandwidth information (C version)
13+
| link:bandwidth3[] | Show bandwidth information (another bash version)
14+
| link:battery[] | Show battery info
15+
| link:battery2[] | Pretty battery info
16+
| link:batterybar[] | Show battery info graphically as a bar
17+
| link:calendar[] | Current date/time and click for calendar
18+
| link:cpu_usage[] | Show current CPU usage
19+
| link:cpu_usage2[] | Show current CPU usage (C version)
20+
| link:disk[] | Show disk usage (space used) for a given directory
21+
| link:disk-io[] | Monitor disk reads and writes
22+
| link:docker[] | Show the number of Docker containers and container IP
23+
| link:email[] | Show the number of unread IMAP messages
24+
| link:essid[] | Show the wifi ESSID you are connected to
25+
| link:gpu-load[] | Shows load of Nvidia GPUs
26+
| link:iface[] | Show network interface IP/status
27+
| link:kbdd_layout[] | Show the keyboard layout using dbus and kbdd
28+
| link:keyindicator[] | Show the status of capslock or numlock
29+
| link:key_layout[] | Show the current keyboard layout using setxkbmap
30+
| link:kubernetes[] | Show the kubernetes current context and namespace
31+
| link:load_average[] | Show the system 1 minute load average
32+
| link:mediaplayer[] | Generic media player status/controls using playerctl
33+
| link:memory[] | Show ram or swap usage
34+
| link:monitor_manager[] | Manage monitor on/off, resolution, extend, clone
35+
| link:nm-vpn[] | Show vpn status using network manager
36+
| link:openvpn[] | Show openvpn status
37+
| link:rofi-calendar[] | Current date/time and click for callendar using rofi
38+
| link:shutdown_menu[] | Shutdown menu using rofi or zenity
39+
| link:tahoe-lafs[] | Show status of your tahoe-lafs grid
40+
| link:temperature[] | Show system temperatures using lm-sensors
41+
| link:time[] | Show the current date/time and click to change timezones
42+
| link:usb[] | Show connected usb storage device info
43+
| link:volume[] | Show the current system volume (default)
44+
| link:volume-pulseaudio[] | Pretty print system volume for pulseaudio
45+
| link:wifi[] | Show the strength of your wifi connection in percent
46+
| link:wlan-dbm[] | Show wifi interface link quality in dBm or percent
47+
| link:ytdl-mpv[] | Play youtube videos from your clipboard using youtube-dl
48+
|===
49+
50+
It is officially maintained by @kb100 with the help of a bench of active i3blocks crafters.
51+
52+
Each release of this repository will be guaranteed to work against a given link:https://github.com/vivien/i3blocks/releases[release] of i3blocks (a.k.a. *core*).
53+
54+
|===
55+
| contrib | core
56+
| master | master
57+
| next | next
58+
|===
59+
60+
You may want to take a look at the individual blocklet directories, which contain descriptions, screenshots, and installation/configuration instructions.
61+
62+
NOTE: configurations reference `$SCRIPT_DIR`, meaning the directory that you put the script into. +
63+
You must change `$SCRIPT_DIR` appropriately to coincide with where you put your scripts, for more info see the link:https://github.com/vivien/i3blocks-contrib/wiki/FAQ#blocklets-refer-to-script_dir-what-does-that-mean-how-can-i-use-it[FAQ].
64+
65+
Want to contribute?
66+
Great!
67+
Check the link:https://github.com/vivien/i3blocks-contrib/blob/master/CONTRIBUTING.md[contribution guidelines] in order to get started.
68+
69+
NOTE: i3blocks now supports dynamics properties, and all scripts have been updated to do the same. +
70+
i3blocks-contrib REQUIRES a version of i3blocks that supports dynamics properties, which is currently only +
71+
available in the git version since the last release (v1.4) was years ago.
72+
73+
Happy crafting!

README.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)