A functional config for lemonbar to work with i3wm.
-
Of course, lemonbar
-
Alsa-utils for volume indicator.
-
Conky for CPU, MEM, NET and DISK usage.
-
Curl for gmail alert.
-
Weechat for private messages alert. Bitlbee for twitter and chat protocols integration.
-
MPD and mpc for song info.
-
xprop for focus app indicator.
-
And finally, i3wm
i3_lemonbar.sh bash script read the configuration from i3_lemonbar_config file.
Later, execute the requested apps for the diferent meter sections. The output is redirected to fifo file, adding 3 letters ID for each.
Finally, run a i3_lemonbar_parser.sh that read from fifo, check the ID meter, and converts it with lemonbar format.
-
Change the bar section on i3wm config:
bar { i3bar_command ~./.i3/lemonbar/i3_lemonbar.sh } -
Adjust bar settings editing i3_lemonbar_config. Settings for:
- Fifo file.
- Bar geometry.
- Normal and icon font. Here are my fonts used
- CPU and NET usage alerts.
- Colors
- Specials symbols for separator (powerline).
- Icons glyps.
Workspace changes are received from i3_workspace.pl perl script.
Window title is received from xprop spy process.
Time and date is received from conky process. Conky config file is i3_lemonbar_conky and refresh meters every 2 seconds.
Volume is received asking amixer every 3 seconds. If is muted show a cross.
Volume channel can be set in "snd_cha" variable at config file.
ETH and WLAN use is received from conky process. If a interface is down, the section is displayed gray with cross.
Net use alert can be set in "net_alert" var at config file (Kb).
Show HOME and / disk use, in %. Meter is received fron conky process.
Is received from conky process. CPU use alert can be set at "cpu_alert" var in config file.
Is received from gmail.sh bash script using curl. The script is run every five minutes. Less time can block the gmail external check.
The account user and password are read from ~/.private/accounts, example:
MAIL_USER="guest"
MAIL_PASS="1234"
Show a count of private messages in weechat and the last nick.
Is received from irc_warn.sh bash script. This script is executed by weechat every time a private message is received.
For this, a beep trigger in weechat must be set with this:
"/exec -bg ~/bin/irc_warn ${tg_date} ${tg_tag_nick}"
For reset the warning, run irc_warn without parameters.
Show autor and title of current song. Use mpd and mpc.















