From 0f3c5be8e79d77ab166da0f238ab12c9f7b05765 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Mon, 10 Jun 2013 19:18:25 +0200 Subject: [PATCH] split rules into its own file --- awesome/rc.lua | 22 ++-------------------- awesome/rules.lua | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 20 deletions(-) create mode 100644 awesome/rules.lua diff --git a/awesome/rc.lua b/awesome/rc.lua index cd71125..7448eb1 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -185,26 +185,8 @@ end -- Mouse/Key Bindings require("bindings") --- {{{ Rules -awful.rules.rules = { - -- All clients will match this rule. - { rule = { }, - properties = { border_width = beautiful.border_width, - border_color = beautiful.border_normal, - focus = awful.client.focus.filter, - keys = clientkeys, - buttons = clientbuttons } }, - { rule = { class = "MPlayer" }, - properties = { floating = true } }, - { rule = { class = "pinentry" }, - properties = { floating = true } }, - { rule = { class = "gimp" }, - properties = { floating = true } }, - -- Set Firefox to always map on tags number 2 of screen 1. - -- { rule = { class = "Firefox" }, - -- properties = { tag = tags[1][2] } }, -} --- }}} +-- Rules +require("rules") -- {{{ Signals -- Signal function to execute when a new client appears. diff --git a/awesome/rules.lua b/awesome/rules.lua new file mode 100644 index 0000000..6eb9790 --- /dev/null +++ b/awesome/rules.lua @@ -0,0 +1,20 @@ +-- {{{ Rules +awful.rules.rules = { + -- All clients will match this rule. + { rule = { }, + properties = { border_width = beautiful.border_width, + border_color = beautiful.border_normal, + focus = awful.client.focus.filter, + keys = clientkeys, + buttons = clientbuttons } }, + { rule = { class = "MPlayer" }, + properties = { floating = true } }, + { rule = { class = "pinentry" }, + properties = { floating = true } }, + { rule = { class = "gimp" }, + properties = { floating = true } }, + -- Set Firefox to always map on tags number 2 of screen 1. + -- { rule = { class = "Firefox" }, + -- properties = { tag = tags[1][2] } }, +} +-- }}} -- 2.48.1