local awful = require "awful" local beautiful = require "beautiful" local ruled = require "ruled" ruled.client.connect_signal("request::rules", function() 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, }, }, { id = "titlebars", rule_any = { type = { "normal", "dialog", }, }, properties = { titlebars_enabled = true, }, }, { id = "pip", rule = { name = "Picture-in-Picture", }, properties = { ontop = true, }, }, { id = "browser_tag", rule_any = { instance = { "Navigator" }, }, properties = { screen = 1, tag = awful.screen.focused().tags[2], }, }, { id = "chat_tag", rule_any = { class = { "discord" }, }, properties = { screen = 1, tag = awful.screen.focused().tags[3], }, }, { id = "music_tag", rule_any = { class = { "Spotify" }, }, properties = { screen = 1, tag = awful.screen.focused().tags[4], titlebars_enabled = false, }, }, { id = "code_tag", rule_any = { class = { "lite-xl", "code_term" }, }, properties = { screen = 1, tag = awful.screen.focused().tags[5], }, }, { id = "steam", rule_any = { class = { "steam" }, }, properties = { screen = 1, tag = awful.screen.focused().tags[6], }, }, } end)