I3blocks: Difference between revisions

From wikinotes
 
No edit summary
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 33: Line 45:
You can dynamically swap which monitor gets the system tray by assigning a <code>--primary</code> with xrandr,
You can dynamically swap which monitor gets the system tray by assigning a <code>--primary</code> with xrandr,
and within i3's config <code>bar { tray_output primary }</code>.
and within i3's config <code>bar { tray_output primary }</code>.
</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 -->

Revision as of 16:58, 13 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 config bar { 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 with pkill -RTMIN+1 i3blocks).