Making a Status Bar III

From awesome
Jump to: navigation, search

Next one setup for status bar.

What we need:

conky
awesome
mpd

First step is installing conky, after that you have to create ~/.conkyrc. My .conkyrc is here, but you can put one of other conky functions [1 ], it's great and simple way to get full information about system in status bar.


background yes
no_buffers yes
out_to_console yes
update_interval 1
uppercase no
use_spacer no
total_run_times 0
TEXT
0 widget_tell tb ${time %H:%M:%S %A %d.%m.%y} | CPU: ${cpu} | net: ${downspeedf eth0}/${upspeedf eth0} | disk: ${fs_free /}/${fs_free /home}
0 widget_tell tb1 $mpd_status $mpd_artist - $mpd_title


Next step, editing .awesomerc. In section statusbar {} add something like this (icons and mpc commands are optional, i'm using mpd ). The textbox should have tag same as those one in conkyrc. If you want to change design of statusbar messages you should edit conkyrc.


textbox tb1
  { width = "250" }
  iconbox mpc_prev
  {
       image = "/home/czarnas/.awesome/icons/prev.png"
       mouse {
       button = "1"
       command = "spawn"
       arg = "exec mpc prev"
       }
   }
   iconbox mpc_toggle
   {
       image = "/home/czarnas/.awesome/icons/toggleplay.png"
       mouse {
       button = "1"
       command = "spawn"
       arg = "exec mpc toggle"
       }
   }
   iconbox mpc_next
   {
       image = "/home/czarnas/.awesome/icons/next.png"
       mouse {
       button = "1"
       command = "spawn"
       arg = "exec mpc next"
       }
   }
  textbox tb
  {}



Last step, starting conky with awesome. In ~/.xinitrc add line (before exec awesome). It should looks like this:

exec conky &

It's simple and easy way to get awesome statusbar, with many different functions.. Thanks to sec_ for help.

Personal tools