This commit is contained in:
parent
7ff5b31ce8
commit
84fd3269cc
73
README.md
73
README.md
|
@ -5,7 +5,7 @@ Blocks compatible with [i3blocks](https://github.com/vivien/i3blocks).
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
* `go` for compilation
|
* `go` for compilation
|
||||||
* `sudo` for `wireguard` block
|
* `sudo` and `wg-quick` for `wireguard` block
|
||||||
* `tmux` for `app` and `date` blocks
|
* `tmux` for `app` and `date` blocks
|
||||||
* `df` for `du` block
|
* `df` for `du` block
|
||||||
* `xdg-open` for `du` block
|
* `xdg-open` for `du` block
|
||||||
|
@ -27,81 +27,112 @@ make
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
Each binary has a help, eg `./app -h`.
|
||||||
|
|
||||||
|
### App
|
||||||
|
|
||||||
Add the shortcut `<name>` and run `<command>` when clicked.
|
Add the shortcut `<name>` and run `<command>` when clicked.
|
||||||
|
|
||||||
```
|
```
|
||||||
app -block=<block_name> -name=<name> -cmd=<command> -bg-color=<background_color> -fg-color<foreground_color>
|
command=/path/to/app -block=<block_name> -name=<name> -cmd=<command> -bg-color=<background_color> -fg-color<foreground_color>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Date
|
||||||
|
|
||||||
Show the time using given format and run `gnome-calendar` when clicked.
|
Show the time using given format and run `gnome-calendar` when clicked.
|
||||||
|
|
||||||
```
|
```
|
||||||
date -format="%H:%M:%S %d/%m/%Y"
|
command=/path/to/date -format="%H:%M:%S %d/%m/%Y"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Disk usage
|
||||||
|
|
||||||
Show mount point usage and warns with limits and colors.
|
Show mount point usage and warns with limits and colors.
|
||||||
|
|
||||||
```
|
```
|
||||||
du -block=<block_name> -name=<name> -mount-point=<mount_point> -limit-warning=<limit_warning> -limit-danger=<limit_danger>
|
command=/path/to/du -block=<block_name> -name=<name> -mount-point=<mount_point> -limit-warning=<limit_warning> -limit-danger=<limit_danger>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### IP
|
||||||
|
|
||||||
Show the IP of the given iface.
|
Show the IP of the given iface.
|
||||||
|
|
||||||
```
|
```
|
||||||
ip -iface=<iface> -version=<ip4|ip6> -name=<name>
|
command=/path/to/ip -iface=<iface> -version=<ip4|ip6> -name=<name>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### IP (wan)
|
||||||
|
|
||||||
Show the public IP.
|
Show the public IP.
|
||||||
|
|
||||||
```
|
```
|
||||||
ip_wan
|
command=/path/to/ip_wan
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Prusa telemetry
|
||||||
|
|
||||||
Show the telemetry using Prusa Printer API.
|
Show the telemetry using Prusa Printer API.
|
||||||
|
|
||||||
```
|
```
|
||||||
prusa_telemetry -api=http://1.2.3.4/api/telemetry
|
command=/path/to/prusa_telemetry -api=http://1.2.3.4/api/telemetry
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Process
|
||||||
|
|
||||||
Show a message when the given process is running (use `preg -f`).
|
Show a message when the given process is running (use `preg -f`).
|
||||||
|
|
||||||
```
|
```
|
||||||
ps -process=<process> -message=<message>
|
command=/path/to/ps -process=<process> -message=<message>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Feed indicator
|
||||||
|
|
||||||
Show indicator of RSS.
|
Show indicator of RSS.
|
||||||
|
|
||||||
```
|
```
|
||||||
rss -block=<block_name> -feed=<feed_url> -website=<feed_reader_url> -empty-color=<color> -non-empty-color=<color>
|
command=/path/to/rss -block=<block_name> -feed=<feed_url> -website=<feed_reader_url> -empty-color=<color> -non-empty-color=<color>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Spotify status
|
||||||
|
|
||||||
Show current song played (spotify).
|
Show current song played (spotify).
|
||||||
|
|
||||||
```
|
```
|
||||||
spotify
|
command=/path/to/spotify
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Volume
|
||||||
|
|
||||||
Show volume.
|
Show volume.
|
||||||
|
|
||||||
```
|
```
|
||||||
volume -channel=<channel>
|
command=/path/to/volume -channel=<channel>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Wireguard toggler
|
||||||
|
|
||||||
Toggler for wireguard.
|
Toggler for wireguard.
|
||||||
|
|
||||||
```
|
```
|
||||||
wireguard -iface=<iface> -name=<name>
|
command=/path/to/wireguard -iface=<iface> -name=<name>
|
||||||
```
|
```
|
||||||
|
|
||||||
Add a blocks that represent opened apps to create a task bar.
|
### Task bar
|
||||||
|
|
||||||
|
Add blocks that represent opened apps and create a task bar.
|
||||||
|
|
||||||
```
|
```
|
||||||
workspace_apps 0 $BLOCK_BUTTON
|
[workspace_apps_0]
|
||||||
workspace_apps 1 $BLOCK_BUTTON
|
command=/path/to/workspace_apps 0 $BLOCK_BUTTON
|
||||||
workspace_apps 2 $BLOCK_BUTTON
|
format=json
|
||||||
workspace_apps 3 $BLOCK_BUTTON
|
markup=pango
|
||||||
workspace_apps 4 $BLOCK_BUTTON
|
interval=1
|
||||||
workspace_apps 5 $BLOCK_BUTTON
|
|
||||||
workspace_apps 6 $BLOCK_BUTTON
|
[workspace_apps_1]
|
||||||
workspace_apps 7 $BLOCK_BUTTON
|
command=/path/to/workspace_apps 1 $BLOCK_BUTTON
|
||||||
|
format=json
|
||||||
|
markup=pango
|
||||||
|
interval=1
|
||||||
|
|
||||||
|
...
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue