mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2025-01-10 17:58:09 +00:00
Moved rules away from rc.lua.theme files
This commit is contained in:
parent
6bd3ed8f37
commit
79f7396b73
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
35
rc.lua.holo
35
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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
37
settings/rules.lua
Normal file
37
settings/rules.lua
Normal file
|
@ -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 } },
|
||||
}
|
||||
-- }}}
|
Loading…
Reference in a new issue