diff options
author | delta <darkussdelta@gmail.com> | 2023-03-04 22:04:55 +0100 |
---|---|---|
committer | delta <darkussdelta@gmail.com> | 2023-03-04 22:18:21 +0100 |
commit | f0b32f45746c026d402651013b7e98315d6956a1 (patch) | |
tree | f42609e98522da081cebdd21a674a702d1054bbc /.config/awesome/misc/rules.lua | |
parent | a0f8b5fa6acdd1c2477fb1881dd9067956bf0ae6 (diff) |
restructure awesome config, add fresnel
Diffstat (limited to '.config/awesome/misc/rules.lua')
-rw-r--r-- | .config/awesome/misc/rules.lua | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/.config/awesome/misc/rules.lua b/.config/awesome/misc/rules.lua new file mode 100644 index 0000000..803d49a --- /dev/null +++ b/.config/awesome/misc/rules.lua @@ -0,0 +1,103 @@ +local ruled = require "ruled" +local beautiful = require "beautiful" +local awful = require "awful" +local vars = require "misc.vars" + +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, + -- shape = vars.shape, + honor_padding = true + -- tag = "1" + } + }) + + ruled.client.append_rule({ + id = "titlebars", + rule_any = { + type = { + "normal", + "dialog" + } + }, + properties = { + titlebars_enabled = true + } + }) + + ruled.client.append_rule({ + id = "pip", + rule = { + name = "Picture-in-Picture" + }, + properties = { + ontop = true + } + }) + + ruled.client.append_rule({ + id = "browser_tag", + rule_any = { + class = { "firefox" } + }, + properties = { + screen = 1, + tag = screen[1].tags[2] + } + }) + + ruled.client.append_rule({ + id = "chat_tag", + rule_any = { + class = { "discord" } + }, + properties = { + screen = 1, + tag = screen[1].tags[3] + } + }) + + + ruled.client.append_rule({ + id = "music_tag", + rule_any = { + class = { "Spotify" } + }, + 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" } + }, + properties = { + screen = 1, + tag = screen[1].tags[5] + } + }) + + ruled.client.append_rule({ + id = "steam", + rule_any = { + class = { "Steam" } + }, + properties = { + screen = 1, + tag = screen[1].tags[6] + } + }) +end) |