neodotfiles/user/.config/awesome/core/rules.lua

149 lines
3.9 KiB
Lua
Raw Normal View History

2022-09-12 23:22:46 +00:00
local awful = require("awful")
local ruled = require("ruled")
-- Rules to apply to new clients.
ruled.client.connect_signal("request::rules", function()
-- All clients will match this rule.
ruled.client.append_rule {
id = "global",
rule = { },
properties = {
focus = awful.client.focus.filter,
raise = true,
screen = awful.screen.preferred,
placement = awful.placement.no_overlap+awful.placement.no_offscreen,
callback = awful.client.setslave
}
}
-- Floating clients.
ruled.client.append_rule {
id = "floating",
rule_any = {
instance = { "copyq", "pinentry" },
class = {
"Galculator",
"Blueman-manager",
"Gpick",
"Kruler",
"Tor Browser",
"Wpa_gui",
"veromix",
"xtightvncviewer"
},
-- Note that the name property shown in xprop might be set slightly after creation of the client
-- and the name shown there might not match defined rules here.
name = {
"Event Tester", -- xev.
},
role = {
"AlarmWindow", -- Thunderbird's calendar.
"ConfigManager", -- Thunderbird's about:config.
"pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
}
},
properties = { floating = true }
}
2022-09-15 03:30:48 +00:00
-- TAG 1
2022-09-12 23:22:46 +00:00
ruled.client.append_rule {
rule_any = { class = {
"Emacs",
"Godot",
"Virt-manager"
}
},
2022-09-14 00:44:31 +00:00
properties = { tag = "" },
2022-09-12 23:22:46 +00:00
}
2022-09-15 03:30:48 +00:00
-- TAG 2
2022-09-12 23:22:46 +00:00
ruled.client.append_rule {
rule = { class = "vifm" },
2022-09-14 00:44:31 +00:00
properties = { tag = "" },
2022-09-12 23:22:46 +00:00
}
2022-09-15 03:30:48 +00:00
-- TAG 3
2022-09-12 23:22:46 +00:00
ruled.client.append_rule {
rule_any = { class = {
"Brave-browser",
"librewolf",
2022-09-14 00:44:31 +00:00
"Firefox",
"Chromium",
2022-09-15 23:21:05 +00:00
"Bitwarden",
2022-09-12 23:22:46 +00:00
"qutebrowser"
}
},
2022-09-14 00:44:31 +00:00
properties = { tag = "" }
2022-09-12 23:22:46 +00:00
}
2022-09-15 03:30:48 +00:00
-- TAG 4
2022-09-12 23:22:46 +00:00
ruled.client.append_rule {
rule = { class = "gomuks" },
2022-09-14 00:44:31 +00:00
properties = { tag = "" }
2022-09-12 23:22:46 +00:00
}
2022-09-15 03:30:48 +00:00
-- TAG 5
2022-09-12 23:22:46 +00:00
ruled.client.append_rule {
rule_any = { class = {
"cmus",
"Audacity",
"Ardour",
"Carla2",
"Carla2-Control"
}
},
2022-09-14 00:44:31 +00:00
properties = { tag = "" }
2022-09-12 23:22:46 +00:00
}
2022-09-15 03:30:48 +00:00
-- TAG 6
2022-09-12 23:22:46 +00:00
ruled.client.append_rule {
rule_any = { class = {
"kdenlive",
"Blender",
"Natron",
"SimpleScreenRecorder",
"Ghb",
"obs",
"mpv"
}
},
2022-09-14 00:44:31 +00:00
properties = { tag = "" }
2022-09-12 23:22:46 +00:00
}
2022-09-15 03:30:48 +00:00
-- TAG 7
2022-09-12 23:22:46 +00:00
ruled.client.append_rule {
rule_any = { class = {
"Qjackctl",
"lsp-plugins",
"qpwgraph",
"Gimp-2.10",
"krita",
"Inkscape",
"Xournalpp",
}
},
2022-09-14 00:44:31 +00:00
properties = { tag = "" }
2022-09-12 23:22:46 +00:00
}
2022-09-15 03:30:48 +00:00
-- TAG 8
2022-09-12 23:22:46 +00:00
ruled.client.append_rule {
rule_any = { class = {
"DesktopEditors",
2022-09-15 23:21:05 +00:00
"libreoffice.*",
2022-09-12 23:22:46 +00:00
"Joplin"
2022-09-15 23:21:05 +00:00
},
instance = {
"libreoffice.*"
},
name = {
"libreoffice.*"
}
2022-09-12 23:22:46 +00:00
},
2022-09-14 00:44:31 +00:00
properties = { tag = "" }
2022-09-12 23:22:46 +00:00
}
2022-09-15 03:30:48 +00:00
-- TAG 9
2022-09-12 23:22:46 +00:00
ruled.client.append_rule {
2022-09-15 23:21:05 +00:00
rule_any = { class = {
"retroarch",
"steam"
}
},
2022-09-14 00:44:31 +00:00
properties = { tag = "" }
2022-09-12 23:22:46 +00:00
}
--}}}
-- }
end)