Skip to content

mikeredev/i3blocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

examples

style example
angles i3blocks-angles
powerline i3blocks-powerline
rounded i3blocks-rounded
simple i3blocks-simple
solid i3blocks-solid

description

a lightweight i3blocks implementation with stylised blocks and visual OK WARN NOK alerting on returned values

uses

alsa-utils nvidia pulseaudio

blocks

volume wifi memory cpu load gpu time

installation

  • update your i3 config to start the bar with the new i3blocks configuration file: bar { status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf }
  • clone or download this repo into ~/.config/i3blocks, and get the default fonts
sudo pacman -S python-psutil ttf-font-awesome ttf-inconsolata-nerd
cd ~/.config
git clone https://github.com/mikeredev/i3blocks.git
chmod +x control
i3-msg restart

signals

1 volume 2 ethernet 3 wifi

mouse actions

$BLOCK_BUTTON allows for the following mouse events:

1: left-click
2: middle-click
3: right-click
4: mouse wheel up
5: mouse wheel down

configuring thresholds

  • define warning and critical thresholds directly in i3blocks.conf, e.g.:
[load]
command="$HOME"/.config/i3blocks/control --check load --warning 0.7 --critical 1.0

[gpu]
command="$HOME"/.config/i3blocks/control --check $BLOCK_NAME --warning 70 --critical 80

creating new blocks

  • store new modules in the blocks directory
  • the control script will call its i3blocks_check(warning, critical) function

styling

  • colors/fonts/glyphs can be defined in i3blocks.conf

more info

About

i3blocks w/ monitoring and alerting

Topics

Resources

Stars

Watchers

Forks

Languages