LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 02-24-2014, 02:57 PM   #1
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 91

Rep: Reputation: Disabled
Tasklist Awesome wm


Hi, I'm trying running Awesome WM and at the moment I'm trying to move the tasklist from the standard top bar, to a new wibox I created on the bottom. The bottom bar is there, but the tasklist won't actually show up.

I'm fairly certain there is proabably one small detail or line of code I'm missing in rc.lua to make it work. Any ideas?

rc.lua
Code:
-- }}}

mywibox2 = awful.wibox({ position = "bottom" })

    mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, mytasklist.buttons)

local layout = wibox.layout.align.horizontal()
layout:set_middle(mytasklist)


-- {{{ Mouse bindings
That's the wibox I created. It's located directly underneath the main one. Thanks.
 
Old 02-25-2014, 12:48 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,580
Blog Entries: 2

Rep: Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037
I am neither an expert in Lua nor with AwesomeWM, but shouldn't you somewhere assign mytasklist (or the layout it is in) to mywibox2?
What I mean is:
- You create mywibox2
- You create mytasklist
- You create a local layout and assign mytasklist to it
- You do not assign that layout to mywibar2

I would guess that you just have missed the last step.
 
Old 02-26-2014, 04:35 PM   #3
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 91

Original Poster
Rep: Reputation: Disabled
Thank you, will try that. It's always something simple.
 
Old 03-04-2014, 12:51 PM   #4
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 91

Original Poster
Rep: Reputation: Disabled
Well, I tried assigning the layout to wibox2 but it didn't seem to work. Here's what I have:

Code:
mywibox2 = awful.wibox({ position = "bottom" })


mytasklist = {}
mytasklist.buttons = awful.util.table.join(
                     awful.button({ }, 1, function (c)
                                              if c == client.focus then
                                                  c.minimized = true
                                              else
                                                  -- Without this, the following
                                                  -- :isvisible() makes no sense
                                                  c.minimized = false
                                                  if not c:isvisible() then
                                                      awful.tag.viewonly(c:tags()[1])
                                                  end
                                                  -- This will also un-minimize
                                                  -- the client, if needed
                                                  client.focus = c
                                                  c:raise()
                                              end
                                          end),
                     awful.button({ }, 3, function ()
                                              if instance then
                                                  instance:hide()
                                                  instance = nil
                                              else
                                                  instance = awful.menu.clients({ width=250 })
                                              end
                                          end),
                     awful.button({ }, 4, function ()
                                              awful.client.focus.byidx(1)
                                              if client.focus then client.focus:raise() end
                                          end),
                     awful.button({ }, 5, function ()
                                              awful.client.focus.byidx(-1)
                                              if client.focus then client.focus:raise() end
                                          end))

for s = 1, screen.count() do
    -- Create a promptbox for each screen
    mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, mytasklist.buttons)

mywibox2:set_widget(mytasklist)
local layout2 = wibox.layout.align.horizontal()
layout2:set_middle(mytasklist)
mywibox2:set_widget(layout2)

end
Still, the bottom bar is lighter then the top bar.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Ifplugd > Awesome WM 3.4.5-1 widget using awesome-client Biowaste Linux - General 3 07-09-2010 07:37 AM
FC10 KDE 4 dissatisfactions... how to fix? Specifically the horrible tasklist widget. rylan76 Fedora 6 05-28-2009 01:00 PM
Ubuntu Gnome Tasklist Bar Make Standard Size Pauli Ubuntu 0 03-31-2007 04:47 PM
how to get gnome tasklist back? hemlock Linux - Software 1 09-02-2002 07:15 AM


All times are GMT -5. The time now is 05:48 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration