aboutsummaryrefslogtreecommitdiff
path: root/.config/awesome/misc/rules.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/awesome/misc/rules.lua')
-rw-r--r--.config/awesome/misc/rules.lua161
1 files changed, 81 insertions, 80 deletions
diff --git a/.config/awesome/misc/rules.lua b/.config/awesome/misc/rules.lua
index b4d1dfa..92ac596 100644
--- a/.config/awesome/misc/rules.lua
+++ b/.config/awesome/misc/rules.lua
@@ -3,98 +3,99 @@ local beautiful = require "beautiful"
local ruled = require "ruled"
ruled.client.connect_signal("request::rules", function()
- ruled.client.append_rule({
- id = "global",
- rule = {},
- properties = {
- border_width = beautiful.border_width,
- border_color = beautiful.border_normal,
- focus = awful.client.focus.filter,
- raise = true,
- screen = awful.screen.preferred,
- placement = awful.placement.centered+awful.placement.no_offscreen,
- floating = false,
- honor_padding = true
- }
- })
+ ruled.client.append_rules {
+ {
+ id = "global",
+ rule = {},
+ properties = {
+ border_width = beautiful.border_width,
+ border_color = beautiful.border_normal,
+ focus = awful.client.focus.filter,
+ raise = true,
+ screen = awful.screen.preferred,
+ placement = awful.placement.centered + awful.placement.no_offscreen,
+ floating = false,
+ honor_padding = true,
+ },
+ },
- ruled.client.append_rule({
- id = "titlebars",
- rule_any = {
- type = {
- "normal",
- "dialog"
- }
+ {
+ id = "titlebars",
+ rule_any = {
+ type = {
+ "normal",
+ "dialog",
+ },
+ },
+ properties = {
+ titlebars_enabled = true,
+ },
},
- properties = {
- titlebars_enabled = true
- }
- })
- ruled.client.append_rule({
- id = "pip",
- rule = {
- name = "Picture-in-Picture"
+ {
+ id = "pip",
+ rule = {
+ name = "Picture-in-Picture",
+ },
+ properties = {
+ ontop = true,
+ },
},
- properties = {
- ontop = true
- }
- })
- ruled.client.append_rule({
- id = "browser_tag",
- rule_any = {
- instance = { "Navigator" }
+ {
+ id = "browser_tag",
+ rule_any = {
+ instance = { "Navigator" },
+ },
+ properties = {
+ screen = 1,
+ tag = awful.screen.focused().tags[2],
+ },
},
- properties = {
- screen = 1,
- tag = screen[1].tags[2]
- }
- })
- ruled.client.append_rule({
- id = "chat_tag",
- rule_any = {
- class = { "discord" }
+ {
+ id = "chat_tag",
+ rule_any = {
+ class = { "discord" },
+ },
+ properties = {
+ screen = 1,
+ tag = awful.screen.focused().tags[3],
+ },
},
- properties = {
- screen = 1,
- tag = screen[1].tags[3]
- }
- })
-
- ruled.client.append_rule({
- id = "music_tag",
- rule_any = {
- class = { "Spotify" }
+ {
+ id = "music_tag",
+ rule_any = {
+ class = { "Spotify" },
+ },
+ properties = {
+ screen = 1,
+ tag = awful.screen.focused().tags[4],
+ titlebars_enabled = false,
+ },
},
- properties = {
- screen = 1,
- tag = screen[1].tags[4],
- titlebars_enabled = false
- }
- })
- ruled.client.append_rule({
- id = "code_tag",
- rule_any = {
- class = { "lite-xl", "code_term" }
+ {
+ id = "code_tag",
+ rule_any = {
+ class = { "lite-xl", "code_term" },
+ },
+ properties = {
+ screen = 1,
+ tag = awful.screen.focused().tags[5],
+ },
},
- properties = {
- screen = 1,
- tag = screen[1].tags[5]
- }
- })
- ruled.client.append_rule({
- id = "steam",
- rule_any = {
- class = { "steam" }
+ {
+ id = "steam",
+ rule_any = {
+ class = { "steam" },
+ },
+ properties = {
+ screen = 1,
+ tag = awful.screen.focused().tags[6],
+ },
},
- properties = {
- screen = 1,
- tag = screen[1].tags[6]
- }
- })
+ }
end)