awful.rules.rules = {
	{
		rule = {},
		properties = {
			border_width = beautiful.border_width,
			border_color = beautiful.border_color,
			focus = awful.client.focus.filter,
			raise = true,
			maximized = false,
			keys = keys.clientkeys,
			buttons = keys.clientbuttons,
			screen = awful.screen.preferred,
		},
	},

	-- Add titlebars to normal clients
	{
		rule_any = {
			type = { "normal" },
		},
		properties = { titlebars_enabled = false },
	},

	-- Floating, Titlebar exceptions
	{
		rule_any = {
			class = { "gnome", "gtk", "qt5ct", "steam", "VirtualBox Manager" },
			name = { "Event Tester", "Komikku", "marker" },
			type = { "dialog" },
		},
		properties = { floating = true, titlebars_enabled = false },
	},
	{
		rule_any = {
			class = { "feh", "Sxiv", "Gcr-prompter", "Pavucontrol", "Lxappearance", "Blueman-manager" },
			role = { "pop-up", "GtkFileChooserDialog" },
			type = { "dialog" },
		},
		properties = { floating = true, titlebars_enabled = false, placement = awful.placement.centered },
	},
}
