diff --git a/rc.lua.blackburn b/rc.lua.blackburn index 3c41205..05569d4 100644 --- a/rc.lua.blackburn +++ b/rc.lua.blackburn @@ -545,39 +545,8 @@ clientbuttons = awful.util.table.join( root.keys(globalkeys) -- }}} --- {{{ 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, - size_hints_honor = false } }, - { rule = { class = "URxvt" }, - properties = { opacity = 0.99 } }, - - { rule = { class = "MPlayer" }, - properties = { floating = true } }, - - { rule = { class = "Dwb" }, - properties = { tag = tags[1][1] } }, - - { rule = { class = "Iron" }, - properties = { tag = tags[1][1] } }, - - { rule = { instance = "plugin-container" }, - properties = { tag = tags[1][1] } }, - - { rule = { class = "Gimp" }, - properties = { tag = tags[1][4] } }, - - { rule = { class = "Gimp", role = "gimp-image-window" }, - properties = { maximized_horizontal = true, - maximized_vertical = true } }, -} --- }}} +-- Rules +require("settings.rules") -- {{{ Signals -- Signal function to execute when a new client appears. diff --git a/rc.lua.copland b/rc.lua.copland index b8824cf..632e274 100644 --- a/rc.lua.copland +++ b/rc.lua.copland @@ -599,39 +599,8 @@ clientbuttons = awful.util.table.join( root.keys(globalkeys) -- }}} --- {{{ 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, - size_hints_honor = false } }, - { rule = { class = "URxvt" }, - properties = { opacity = 0.99 } }, - - { rule = { class = "MPlayer" }, - properties = { floating = true } }, - - { rule = { class = "Dwb" }, - properties = { tag = tags[1][1] } }, - - { rule = { class = "Iron" }, - properties = { tag = tags[1][1] } }, - - { rule = { instance = "plugin-container" }, - properties = { tag = tags[1][1] } }, - - { rule = { class = "Gimp" }, - properties = { tag = tags[1][3] } }, - - { rule = { class = "Gimp", role = "gimp-image-window" }, - properties = { maximized_horizontal = true, - maximized_vertical = true } }, -} --- }}} +-- Rules +require("settings.rules") -- {{{ Signals -- Signal function to execute when a new client appears. diff --git a/rc.lua.dremora b/rc.lua.dremora index f786382..42f3344 100644 --- a/rc.lua.dremora +++ b/rc.lua.dremora @@ -545,39 +545,8 @@ clientbuttons = awful.util.table.join( root.keys(globalkeys) -- }}} --- {{{ 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, - size_hints_honor = false } }, - { rule = { class = "URxvt" }, - properties = { opacity = 0.99 } }, - - { rule = { class = "MPlayer" }, - properties = { floating = true } }, - - { rule = { class = "Dwb" }, - properties = { tag = tags[1][1] } }, - - { rule = { class = "Iron" }, - properties = { tag = tags[1][1] } }, - - { rule = { instance = "plugin-container" }, - properties = { tag = tags[1][1] } }, - - { rule = { class = "Gimp" }, - properties = { tag = tags[1][4] } }, - - { rule = { class = "Gimp", role = "gimp-image-window" }, - properties = { maximized_horizontal = true, - maximized_vertical = true } }, -} --- }}} +-- Rules +require("settings.rules") -- {{{ Signals -- Signal function to execute when a new client appears. diff --git a/rc.lua.holo b/rc.lua.holo index 022d3cf..505ff71 100644 --- a/rc.lua.holo +++ b/rc.lua.holo @@ -680,39 +680,8 @@ clientbuttons = awful.util.table.join( root.keys(globalkeys) -- }}} --- {{{ 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, - size_hints_honor = false } }, - { rule = { class = "URxvt" }, - properties = { opacity = 0.99 } }, - - { rule = { class = "MPlayer" }, - properties = { floating = true } }, - - { rule = { class = "Dwb" }, - properties = { tag = tags[1][1] } }, - - { rule = { class = "Iron" }, - properties = { tag = tags[1][1] } }, - - { rule = { instance = "plugin-container" }, - properties = { tag = tags[1][1] } }, - - { rule = { class = "Gimp" }, - properties = { tag = tags[1][4] } }, - - { rule = { class = "Gimp", role = "gimp-image-window" }, - properties = { maximized_horizontal = true, - maximized_vertical = true } }, -} --- }}} +-- Rules +require("settings.rules") -- {{{ Signals -- Signal function to execute when a new client appears. diff --git a/rc.lua.multicolor b/rc.lua.multicolor index 186103c..2c56adf 100644 --- a/rc.lua.multicolor +++ b/rc.lua.multicolor @@ -609,39 +609,8 @@ clientbuttons = awful.util.table.join( root.keys(globalkeys) -- }}} --- {{{ 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, - size_hints_honor = false } }, - { rule = { class = "URxvt" }, - properties = { opacity = 0.99 } }, - - { rule = { class = "MPlayer" }, - properties = { floating = true } }, - - { rule = { class = "Dwb" }, - properties = { tag = tags[1][1] } }, - - { rule = { class = "Iron" }, - properties = { tag = tags[1][1] } }, - - { rule = { instance = "plugin-container" }, - properties = { tag = tags[1][1] } }, - - { rule = { class = "Gimp" }, - properties = { tag = tags[1][4] } }, - - { rule = { class = "Gimp", role = "gimp-image-window" }, - properties = { maximized_horizontal = true, - maximized_vertical = true } }, -} --- }}} +-- Rules +require("settings.rules") -- {{{ Signals -- Signal function to execute when a new client appears. diff --git a/rc.lua.powerarrow-darker b/rc.lua.powerarrow-darker index 3ff3a09..1391990 100644 --- a/rc.lua.powerarrow-darker +++ b/rc.lua.powerarrow-darker @@ -598,39 +598,8 @@ clientbuttons = awful.util.table.join( root.keys(globalkeys) -- }}} --- {{{ 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, - size_hints_honor = false } }, - { rule = { class = "URxvt" }, - properties = { opacity = 0.99 } }, - - { rule = { class = "MPlayer" }, - properties = { floating = true } }, - - { rule = { class = "Dwb" }, - properties = { tag = tags[1][1] } }, - - { rule = { class = "Iron" }, - properties = { tag = tags[1][1] } }, - - { rule = { instance = "plugin-container" }, - properties = { tag = tags[1][1] } }, - - { rule = { class = "Gimp" }, - properties = { tag = tags[1][4] } }, - - { rule = { class = "Gimp", role = "gimp-image-window" }, - properties = { maximized_horizontal = true, - maximized_vertical = true } }, -} --- }}} +-- Rules +require("settings.rules") -- {{{ Signals -- Signal function to execute when a new client appears. diff --git a/rc.lua.rainbow b/rc.lua.rainbow index 5dc3663..389026c 100644 --- a/rc.lua.rainbow +++ b/rc.lua.rainbow @@ -543,39 +543,8 @@ clientbuttons = awful.util.table.join( root.keys(globalkeys) -- }}} --- {{{ 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, - size_hints_honor = false } }, - { rule = { class = "URxvt" }, - properties = { opacity = 0.99 } }, - - { rule = { class = "MPlayer" }, - properties = { floating = true } }, - - { rule = { class = "Dwb" }, - properties = { tag = tags[1][1] } }, - - { rule = { class = "Iron" }, - properties = { tag = tags[1][1] } }, - - { rule = { instance = "plugin-container" }, - properties = { tag = tags[1][1] } }, - - { rule = { class = "Gimp" }, - properties = { tag = tags[1][4] } }, - - { rule = { class = "Gimp", role = "gimp-image-window" }, - properties = { maximized_horizontal = true, - maximized_vertical = true } }, -} --- }}} +-- Rules +require("settings.rules") -- {{{ Signals -- Signal function to execute when a new client appears. diff --git a/rc.lua.steamburn b/rc.lua.steamburn index b1feff5..91f8d47 100644 --- a/rc.lua.steamburn +++ b/rc.lua.steamburn @@ -552,39 +552,8 @@ clientbuttons = awful.util.table.join( root.keys(globalkeys) -- }}} --- {{{ 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, - size_hints_honor = false } }, - { rule = { class = "URxvt" }, - properties = { opacity = 0.99 } }, - - { rule = { class = "MPlayer" }, - properties = { floating = true } }, - - { rule = { class = "Dwb" }, - properties = { tag = tags[1][1] } }, - - { rule = { class = "Iron" }, - properties = { tag = tags[1][1] } }, - - { rule = { instance = "plugin-container" }, - properties = { tag = tags[1][1] } }, - - { rule = { class = "Gimp" }, - properties = { tag = tags[1][4] } }, - - { rule = { class = "Gimp", role = "gimp-image-window" }, - properties = { maximized_horizontal = true, - maximized_vertical = true } }, -} --- }}} +-- Rules +require("settings.rules") -- {{{ Signals -- Signal function to execute when a new client appears. diff --git a/settings/rules.lua b/settings/rules.lua new file mode 100644 index 0000000..faecbb9 --- /dev/null +++ b/settings/rules.lua @@ -0,0 +1,37 @@ +-- {{{ Rules + +local awful = require("awful") +local beautiful = require("beautiful") + +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, + size_hints_honor = false } }, + { rule = { class = "URxvt" }, + properties = { opacity = 0.99 } }, + + { rule = { class = "MPlayer" }, + properties = { floating = true } }, + + { rule = { class = "Dwb" }, + properties = { tag = tags[1][1] } }, + + { rule = { class = "Iron" }, + properties = { tag = tags[1][1] } }, + + { rule = { instance = "plugin-container" }, + properties = { tag = tags[1][1] } }, + + { rule = { class = "Gimp" }, + properties = { tag = tags[1][4] } }, + + { rule = { class = "Gimp", role = "gimp-image-window" }, + properties = { maximized_horizontal = true, + maximized_vertical = true } }, +} +-- }}}