I3blocks: Difference between revisions
From wikinotes
No edit summary |
|||
Line 45: | 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>. | ||
== i3blocks-contrib/calendar == | |||
<blockquote> | |||
The displayed calendar is created by [[yad]]. | |||
</blockquote><!-- i3blocks-contrib/calendar --> | |||
</blockquote><!-- configuration --> | </blockquote><!-- configuration --> | ||
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
).