summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-09-11 20:43:11 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-09-11 20:43:11 +0200
commit5718ca094a5865c0a3fcc4284da68719e91306db (patch)
treedf3b557f8a02f874b222f4568c3fab0b7f50c156
parent1579194d6aeb95f1dbdd17266585f0ee3193d54b (diff)
downloadawesome-configs-5718ca094a5865c0a3fcc4284da68719e91306db.tar.xz
rc.lua: simplify titlebar handling
-rw-r--r--rc.lua28
1 files changed, 12 insertions, 16 deletions
diff --git a/rc.lua b/rc.lua
index 7e13081..0a1e891 100644
--- a/rc.lua
+++ b/rc.lua
@@ -45,11 +45,8 @@ require("teardrop")
beautiful.init(awful.util.getdir("config") .. "/zenburn.lua")
-- Modifier keys
-altkey = "Mod1" -- Alt_L
-modkey = "Mod4" -- Super_L
-
--- Window titlebars
-use_titlebar = false -- True for floaters
+altkey = "Mod1" -- Alt_L
+modkey = "Mod4" -- Super_L
-- Window management layouts
layouts = {
@@ -706,17 +703,16 @@ awful.rules.rules = {
--
-- {{{ Signal function to execute when a new client appears
client.add_signal("manage", function (c, startup)
- -- Add a titlebar to each client if enabled globaly
- if use_titlebar then
- awful.titlebar.add(c, { modkey = modkey })
- -- Floating clients always have titlebars
- elseif awful.client.floating.get(c)
- or awful.layout.get(c.screen) == awful.layout.suit.floating then
- if not c.titlebar and c.class ~= "Xmessage" then
- awful.titlebar.add(c, { modkey = modkey })
- end
- -- Floating clients are always on top
- c.above = true
+ -- Add a titlebar to each floating client
+ if awful.client.floating.get(c) or
+ awful.layout.get(c.screen) == awful.layout.suit.floating
+ then
+ if not c.titlebar and c.class ~= "Xmessage" then
+ awful.titlebar.add(c, { modkey = modkey })
+ end
+
+ -- Floating clients are always on top
+ c.above = true
end
-- Enable sloppy focus