5.0 KiB
Esto es un fork
Mas o menos. En realidad "solo" he copiado la configuración de lemonbar de ![Electro7] (https://github.com/electro7/dotfiles/) y la he modificado. Dejo el README como referencia. Los cambios vienen a ser, cambiar formato de la hora y fecha y quitar el wifi de conky, cambiar el script de gmail por uno de notmuch, cambiar colores y añadir Font Awesome.
I3 LemonBar
A functional config for lemonbar to work with i3wm.
![lemonbar full] (https://dl.dropboxusercontent.com/u/60065791/screenshots/lemonbar/i3bar_full.png)
Requeriments
-
Of course, [lemonbar] (https://github.com/LemonBoy/bar)
-
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] (https://i3wm.org)
Basically, how it works?
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.
Configuration
-
Change the bar section on i3wm config:
bar { i3bar_command ~./.i3/lemonbar/i3_lemonbar.sh }
-
Adjust bar settings editing i3_lemonnar_config. Settings for:
- Fifo file.
- Bar geometry.
- Normal and icon font. [Here are my fonts used] (https://github.com/electro7/dotfiles/tree/master/.fonts)
- CPU and NET usage alerts.
- Colors
- Specials symbols for separator (powerline).
- Icons glyps.
Sections
Workspace
Workspace changes are received from i3_workspace.pl perl script.
![lemonbar wsp] (https://dl.dropboxusercontent.com/u/60065791/screenshots/lemonbar/i3bar_wsp.png)
Focus window title
Window title is received from xprop spy process.
![lemonbar title] (https://dl.dropboxusercontent.com/u/60065791/screenshots/lemonbar/i3bar_title.png)
Time and date
Time and date is received from conky process. Conky config file is i3_lemonbar_conky and refresh meters every 2 seconds.
![lemonbar date] (https://dl.dropboxusercontent.com/u/60065791/screenshots/lemonbar/i3bar_date.png)
Volume
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.
![lemonbar volume] (https://dl.dropboxusercontent.com/u/60065791/screenshots/lemonbar/i3bar_vol.png)
Net use
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).
![lemonbar net off] (https://dl.dropboxusercontent.com/u/60065791/screenshots/lemonbar/i3bar_net_off.png) ![lemonbar net on] (https://dl.dropboxusercontent.com/u/60065791/screenshots/lemonbar/i3bar_net_on.png)
Disk use
Show HOME and / disk use, in %. Meter is received fron conky process.
![lemonbar disk] (https://dl.dropboxusercontent.com/u/60065791/screenshots/lemonbar/i3bar_disk.png)
RAM and CPU use
Is received from conky process. CPU use alert can be set at "cpu_alert" var in config file.
![lemonbar cpu off] (https://dl.dropboxusercontent.com/u/60065791/screenshots/lemonbar/i3bar_cpu_off.png) ![lemonbar cpu on] (https://dl.dropboxusercontent.com/u/60065791/screenshots/lemonbar/i3bar_cpu_on.png)
GMAIL unread message count
Is received from [gmail.sh] (https://github.com/electro7/dotfiles/blob/master/bin/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"
![lemonbar mail off] (https://dl.dropboxusercontent.com/u/60065791/screenshots/lemonbar/i3bar_mail_off.png) ![lemonbar mail on] (https://dl.dropboxusercontent.com/u/60065791/screenshots/lemonbar/i3bar_mail_on.png)
IRC private warning
Show a count of private messages in weechat and the last nick.
Is received from [irc_warn.sh] (https://github.com/electro7/dotfiles/blob/master/bin/irc_warn) 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.
![lemonbar irc off] (https://dl.dropboxusercontent.com/u/60065791/screenshots/lemonbar/i3bar_irc_off.png) ![lemonbar irc on] (https://dl.dropboxusercontent.com/u/60065791/screenshots/lemonbar/i3bar_irc_on.png)
MPD song info
Show autor and title of current song. Use mpd and mpc.
![lemonbar mpd off] (https://dl.dropboxusercontent.com/u/60065791/screenshots/lemonbar/i3bar_mpd_off.png) ![lemonbar mpd on] (https://dl.dropboxusercontent.com/u/60065791/screenshots/lemonbar/i3bar_mpd_on.png)