From: Samir Benmendil Date: Mon, 10 Jun 2013 17:18:25 +0000 (+0200) Subject: split rules into its own file X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/0f3c5be8e79d77ab166da0f238ab12c9f7b05765?ds=inline split rules into its own file --- 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] } }, +} +-- }}}