I3blocks
From wikinotes
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 configbar { tray_output primary }
.
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 withpkill -RTMIN+1 i3blocks
).