This commit is contained in:
koksnuss 2018-05-14 10:15:50 +02:00
parent aa88b06bbc
commit aa3902839f
2 changed files with 43 additions and 17 deletions

View File

@ -1,8 +1,8 @@
# simple-i3blocks
This is a simple collection of i3blocks-modules accomagnied by a config file with the aim to display only important information in favor of not spilling lots of numbers into the status bar. I.e. only the amount of left RAM is displayed as this is - in my point of view - the most important information we like to know most of the times.
This is a simple collection of i3blocks-modules accompagnied by a config file with the aim to display only important information in favor of not spilling lots of numbers into the status bar. I.e. only the amount of left RAM is displayed as this is - in my point of view - the most important information we like to know most of the times.
# Requirements
Install `i3` and `i3blocks`. The following shows the requirements for each module:
Install [i3 window manager](https://i3wm.org) alongside with [i3blocks](https://github.com/vivien/i3blocks) and `git`. The following shows the requirements for each module:
```
module dependency
--------------------------
@ -17,20 +17,24 @@ backlight none, searches in /sys/class/backlight, intel and ati/amd supported
```
# Install
Clone this repo to `~/.config/i3blocks`. Remember to back up you existing configs and scripts inside that directory if you already created them.
- Clone this repo to `~/.config/i3blocks`. Remember to back up you existing configs and scripts inside that directory if you already created them.
```bash
git clone https://will.kein.hk/git/koksnuss/simple-i3blocks.git ~/.config/i3blocks
```
Adjust `~/.config/i3blocks/config` to control i3 status bar output (see [Usage](#Usage)). Finally reload your `i3` window manager. The default shortcut is `mod + SHIFT + r`, you should see a flickering.
- Adjust `~/.config/i3blocks/config` to control i3 status bar output (see [Usage](#usage)). Finally reload your `i3` window manager.
- The default shortcut is `mod + SHIFT + r`, you should see a flickering.
# Usage
Via the instance id you can choose:
- `instance=short` in every module provides even shorter output without units
- `instance=swap` in the module `ram` to show swap usage
- `instance=1` in the module `battery` to show the status of BAT1 of you have more than one battery attached to your device.
# Roadmap
- [x] date and time
## Modules
- [x] datetime
- [x] ram, swap
- [x] cpu
- [x] audio, mic
@ -39,6 +43,17 @@ Via the instance id you can choose:
- [x] battery
- [x] backlight
- [ ] wifi/ethernet/bluetooth
- [ ] external storage with mount
- [ ] external storage
- [ ] ethernet bandwith
## Click interactions
- [ ] datetime: left: show date, middle: show date and time, right: show time
- [ ] audio, mic: toggle mute
- [ ] external storage: mount it somewhere
## Signals
- [ ] audio, mic
- [ ] backlight
## Other
- [ ] nice icons as labels

33
config
View File

@ -6,35 +6,46 @@ command=$HOME/.config/i3blocks/modules/$BLOCK_NAME
interval=5
[backlight]
label=backlight
# label=backlight
label=
[storage]
label=storage
# label=storage
label=
[ram]
label=ram
# label=ram
label=
[ram]
label=swap
# label=swap
label=
instance=swap
[cpu]
label=cpu
# label=cpu
label=
[ip]
label=ip
# label=ip
label=
interval=once
[battery]
label=battery
# label=battery
label=⚡
separator_block_width=5
[battery]
instance=1
[mic]
label=mic
[audio]
label=audio
# label=audio
label= ♪
separator_block_width=5
[audio]
label= m
instance=mic
[datetime]
label=
instance=short