I’ve been running the AwesomeWM (Awesome Window Manager) on Slackware for the past few months, and wanted to make more use of the screen when it comes to the “taskbar”. In AwesomeWM, taskbars are described as a “wibox”.

I wanted to make my Awesome desktop appear similar to the classic GNOME2 interface where there are two desktop taskbars, and came up with this:

2017-07-25-185715_1920x1080_scrot

To add a second wibox, we need to adjust the contents of theme.lua, which you will typically have stored under ~/.config/awesome.

You simply need to add an identical wibox. So copy/paste your existing wibox changing the “position” variable:

 -- the top wibox
 s.mywibox = awful.wibar({ position = "top", screen = s, height = 18, bg = theme.bg_normal, fg = theme.fg_normal })

 -- the bottom wibox
 s.mybottomwibox = awful.wibar({ position = "bottom", screen = s, height = 18, bg = theme.bg_normal, fg = theme.fg_normal })

After modifying this section in your theme.lua file, setup both of the wibox’s to contain your desired widgets.

-- the top wibox
s.mywibox:setup {
  layout = wibox.layout.align.horizontal,
  { 
    -- left widgets
    layout = wibox.layout.fixed.horizontal,
    s.mytaglist,
    s.mypromptbox,
  },
  --separator
  spr,
  { 
    -- right widgets
    layout = wibox.layout.fixed.horizontal,
    wibox.widget.systray(),
    clock,
  },
}

-- the bottom wibox
s.mybottomwibox:setup {
  layout = wibox.layout.align.horizontal,
  {
    --left widgets
    layout = wibox.layout.fixed.horizontal, 
    s.mytasklist,
  },
}

That’s all there is to it!

Advertisements