I3blocks: Difference between revisions
From wikinotes
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
|- | |- | ||
| official docs || https://vivien.github.io/i3blocks/ | | official docs || https://vivien.github.io/i3blocks/ | ||
|- | |||
| github: i3blocks-contrib || https://github.com/vivien/i3blocks-contrib | |||
|- | |- | ||
|} | |} | ||
Line 17: | Line 19: | ||
|- | |- | ||
| <code>~/.i3/config</code> || i3's config (which must be adjusted to enable i3blocks) | | <code>~/.i3/config</code> || i3's config (which must be adjusted to enable i3blocks) | ||
|- | |||
| <code>/usr/lib/i3blocks/*</code> || i3blocks/i3blocks-contrib extensions | |||
|- | |||
|} | |} | ||
</blockquote><!-- Locations --> | </blockquote><!-- Locations --> | ||
= Install = | |||
<blockquote> | |||
<syntaxhighlight lang="bash"> | |||
pacman -S i3blocks | |||
pacaur -S i3blocks-contrib # additional scripts | |||
</syntaxhighlight> | |||
</blockquote><!-- Install --> | |||
= Usage = | = Usage = | ||
<blockquote> | <blockquote> | ||
<source lang="bash"> | <source lang="bash"> | ||
i3-msg restart # restart i3blocks | i3-msg restart # restart i3blocks | ||
Line 34: | Line 46: | ||
and within i3's config <code>bar { tray_output primary }</code>. | and within i3's config <code>bar { tray_output primary }</code>. | ||
== i3blocks-contrib/calendar == | |||
<blockquote> | |||
The displayed calendar is created by [[yad]]. | |||
</blockquote><!-- i3blocks-contrib/calendar --> | |||
</blockquote><!-- configuration --> | </blockquote><!-- configuration --> | ||
= Writing Extensions = | = Writing Extensions = | ||
<blockquote> | <blockquote> | ||
You can write your own scripts to update the menubar.<br> | |||
You can write your own scripts to update the menubar. | |||
You have a couple of options for how/when to run scripts: | You have a couple of options for how/when to run scripts: | ||
* on an preset interval | * on an preset interval | ||
* when the unix signal <code>SIGRTMIN+1</code> (which can be run with <code>pkill -RTMIN+1 i3blocks</code>). | * when the unix signal <code>SIGRTMIN+1</code> (which can be run with <code>pkill -RTMIN+1 i3blocks</code>). | ||
</blockquote><!-- writing extensions --> | </blockquote><!-- writing extensions --> |
Latest revision as of 18:27, 21 August 2021
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 }
.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 withpkill -RTMIN+1 i3blocks
).