Re: Remove titlebar in some applications (awesome 3.5)

2014-10-15 Thread Zum Testen
My solution is not good. If I want to toggle the title bar, there is no title 
bar available.

Better:


awful.titlebar(c, {size = 14}):set_widget(layout)
if c.class == "Chromium" then
awful.titlebar.hide(c)
end

-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


Re: Remove titlebar in some applications (awesome 3.5)

2014-10-15 Thread Zum Testen
In awesome 3.5 there is no awful.titlebar.add anymore. But I figured it out: 
After the lines

local titlebars_enabled = true 
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then

I just added

if c.class == "Chromium" then
return
end

-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


RE: Remove titlebar in some applications (awesome 3.5)

2014-10-15 Thread David Sorkovsky

I'm still on the Ubuntu Server 14.04 package version of Awesome (3.4.15),
but for what it's worth...

I used to do this (may work for you)...

client.add_signal("manage", function (c, startup)

if not startup then
-- Test
-- naughty.notify({ title="Signal: " .. c.name,
text=c.class .. ", " .. c.type .. ", " .. c.instance, timeout = 5 })

-- Add a titlebar
if c.name ~= "mythfrontend.real" and c.class ~=
"Remmina" then
awful.titlebar.add(c, { modkey = modkey })

end


Thanks to your email I now do this...

-- Add titlebar to windows

{ rule = {},
  except_any = { name = { "mythfrontend.real" } },
  callback = awful.titlebar.add
}


-Original Message-
From: Zum Testen [mailto:zum.tes...@yahoo.de] 
Sent: Wednesday, 15 October 2014 8:15 PM
To: awesome@naquadah.org
Subject: Remove titlebar in some applications (awesome 3.5)

I would like to exclude some of my applications to have a title bar. For
example, chromium should have no title bar but all other applications should
have one.

I found this thread: 
https://bbs.archlinux.org/viewtopic.php?id=142862
Unfortunately, the solutions seem to be a little bit outdated. I couldn't
port them to awesome 3.5

What would be the appropriate way to remove the title bar for specific
applications in awesome 3.5?

-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.