Commit 8ecb096f authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add extra AwesomeWM rules & callbacks for floating windows

parent b4c4706d
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -6,4 +6,21 @@ function rules.add_rule(r)
	table.insert(awful.rules.rules, r)
end


rules.add_rule{
	rule_any = {
		role = {
			"EventDialog",        -- | Thunderbird
			"EventSummaryDialog", -- |
		},
		type = {
			"dialog",
		},
	},
	properties = {
		floating = true,
	}
}


return rules
+21 −0
Original line number Diff line number Diff line
@@ -3,6 +3,25 @@ local gears = require("gears")
local awful = require("awful")
local beautiful = require("beautiful")


-- {{{ Link titlebars with floating property

function set_titlebar(c)
	if c.floating then
		awful.titlebar.show(c)
	else
		awful.titlebar.hide(c)
	end
end

client.connect_signal("property::floating", set_titlebar)
client.connect_signal("request::titlebars", set_titlebar)
--
-- }}}


-- {{{ Load local configs

local local_dir = '.local/etc/awesome/config'
local status, files = pcall(function() return io.popen('ls '..local_dir..'/*.lua') end)
if status then
@@ -11,6 +30,8 @@ if status then
	end
end

-- }}}


-- {{{ Better menus