I3blocks

From wikinotes
Revision as of 18:27, 21 August 2021 by Will (talk | contribs) (→‎Configuration)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

i3blocks is a menubar designed to be used with i3 similar to xmobar/dzen.

Documentation

official docs https://vivien.github.io/i3blocks/
github: i3blocks-contrib https://github.com/vivien/i3blocks-contrib

Locations

~/.i3blocks.conf config
~/.i3/config i3's config (which must be adjusted to enable i3blocks)
/usr/lib/i3blocks/* i3blocks/i3blocks-contrib extensions

Install

pacman -S i3blocks
pacaur -S i3blocks-contrib  # additional scripts

Usage

i3-msg restart   # restart i3blocks

Configuration

System Tray Monitor

You can dynamically swap which monitor gets the system tray by assigning a --primary with xrandr, and within i3's config bar { tray_output primary }.

i3blocks-contrib/calendar

The displayed calendar is created by yad.

Writing Extensions

You can write your own scripts to update the menubar.
You have a couple of options for how/when to run scripts:

  • on an preset interval
  • when the unix signal SIGRTMIN+1 (which can be run with pkill -RTMIN+1 i3blocks).