Reformat rules more compactly
This commit is contained in:
parent
87cf79a71a
commit
0ecc9d9726
217
rules.lua
217
rules.lua
|
@ -41,173 +41,60 @@ awful.rules.rules = {
|
||||||
-- log name and class of new windows for debugging purposes
|
-- log name and class of new windows for debugging purposes
|
||||||
callback = function(c)
|
callback = function(c)
|
||||||
log("-----------\nnew client\n")
|
log("-----------\nnew client\n")
|
||||||
if (c["name"] ~= nil) then
|
if (c["name"] ~= nil) then log("name: " .. c["name"]) end
|
||||||
log("name: " .. c["name"])
|
if (c["class"] ~= nil) then log("class: " .. c["class"]) end
|
||||||
end
|
if (c["type"] ~= nil) then log("type: " .. c["type"]) end
|
||||||
if (c["class"] ~= nil) then
|
if (c["instance"] ~= nil) then log("instance: " .. c["instance"]) end
|
||||||
log("class: " .. c["class"])
|
|
||||||
end
|
|
||||||
if (c["type"] ~= nil) then
|
|
||||||
log("type: " .. c["type"])
|
|
||||||
end
|
|
||||||
if (c["instance"] ~= nil) then
|
|
||||||
log("instance: " .. c["instance"])
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{ rule = { class = "qutebrowser" }, properties = { tag = "2" }},
|
{ rule = { class = "qutebrowser" }, properties = { tag = "2" }},
|
||||||
--{ rule = { name = "", class = "jetbrains-idea", type = "dialog" },
|
{ rule = { class = "Passprompt" },
|
||||||
-- properties = { placement = false },
|
properties = { ontop = true, focus = true}},
|
||||||
-- callback = function(c)
|
{ rule = { class = "Dragon" },
|
||||||
-- c:connect_signal("unfocus", function() client.focus = c end)
|
properties = { ontop = true, sticky = true}},
|
||||||
-- end
|
{ rule = { class = "Sm" },
|
||||||
--},
|
properties = { floating = true, size_hints_honor = true, fullscreen = true, }},
|
||||||
{
|
{ rule_any = { class = { "pinentry", "Passprompt", "copyq" }},
|
||||||
rule = { class = "Onboard" },
|
properties = { floating = true, size_hints_honor = true }},
|
||||||
properties = { sticky = true, ontop = true, focusable = false}
|
{ rule_any = { class = {"Pidgin"}, instance = {"Weechat"}, name = {"Weechat"}},
|
||||||
},
|
properties = { screen = screen_chat, tag = "3", opacity = 0.8 },
|
||||||
{
|
callback = function(c) popup_urgent(c, "new chat message") end},
|
||||||
rule = { class = "Passprompt" },
|
{ rule = { role = "buddy_list" },
|
||||||
properties = { ontop = true, focus = true}
|
callback = awful.client.setmaster},
|
||||||
},
|
{ rule = { class = "Steam", name = "Friends" },
|
||||||
{
|
properties = { screen = screen_chat, tag = "3" },
|
||||||
rule = { class = "Dragon" },
|
callback = awful.client.setmaster},
|
||||||
properties = { ontop = true, sticky = true}
|
{ rule = { class = "Steam", name = "Chat" },
|
||||||
},
|
properties = { screen = screen_chat, tag = "3" },
|
||||||
{
|
callback = awful.client.setslave },
|
||||||
rule = { class = "Sm" },
|
{ rule = { class = "Steam", name = "Steam" },
|
||||||
properties = {
|
properties = { tag = "F1" }},
|
||||||
floating = true,
|
{ rule_any = { class = {"Rocket.Chat"}, instance = {"rocket.chat"}},
|
||||||
size_hints_honor = true,
|
properties = { screen = screen_chat, tag = "5" }},
|
||||||
-- --ontop = true,
|
{ rule_any = { class = {"Element"}, instance = {"element"}},
|
||||||
fullscreen = true,
|
properties = { screen = screen_chat, tag = "1" }},
|
||||||
-- border_width = 0
|
{ rule = { class = "Telegram" },
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
rule_any = { class = {
|
|
||||||
"pinentry", "Passprompt", "copyq"
|
|
||||||
}},
|
|
||||||
properties = { floating = true, size_hints_honor = true }
|
|
||||||
},
|
|
||||||
{
|
|
||||||
rule_any = { class = {"Pidgin"}, instance = {"Weechat"}, name = {"Weechat"}},
|
|
||||||
properties = {
|
|
||||||
screen = chat, tag = "3", opacity = 0.8
|
|
||||||
},
|
|
||||||
callback = function(c) popup_urgent(c, "new chat message") end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
rule = { role = "buddy_list" },
|
|
||||||
callback = awful.client.setmaster
|
|
||||||
},
|
|
||||||
{
|
|
||||||
rule = { class = "Eclipse" },
|
|
||||||
properties = {
|
|
||||||
screen = 1, tag = "8",
|
|
||||||
floating = false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
rule = { class = "Eclipse", name = ".*", type = "dialog" },
|
|
||||||
properties = {
|
|
||||||
screen = 1, tag = "8",
|
|
||||||
floating = false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
rule = { class = "Steam", name = "Friends" },
|
|
||||||
properties = {
|
|
||||||
screen = screen_chat, tag = "3"
|
|
||||||
},
|
|
||||||
callback = awful.client.setmaster
|
|
||||||
},
|
|
||||||
{
|
|
||||||
rule = { class = "Steam", name = "Chat" },
|
|
||||||
properties = {
|
|
||||||
screen = screen_chat, tag = "3"
|
|
||||||
},
|
|
||||||
callback = awful.client.setslave
|
|
||||||
},
|
|
||||||
{
|
|
||||||
rule = { class = "Steam", name = "Steam" },
|
|
||||||
properties = {
|
|
||||||
tag = "F1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
rule = { class = "rocketchat" },
|
|
||||||
properties = {
|
|
||||||
screen = screen_chat, tag = "5"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
rule = { class = "Telegram" },
|
|
||||||
except = { name = "Media viewer" },
|
except = { name = "Media viewer" },
|
||||||
properties = {
|
properties = { size_hints_honor = true, float = true, fullscreen = true }},
|
||||||
screen = screen_chat, tag = "3"
|
{ rule_any = { role ={ "conversation" }, instance = { "Weechat" }},
|
||||||
},
|
callback = awful.client.setslave },
|
||||||
callback = awful.client.setslave
|
{ rule = { class = "Irssi"},
|
||||||
},
|
properties = { tag = "3" } ,
|
||||||
{
|
callback = awful.client.setslave },
|
||||||
rule = { class = "Telegram", name = "Media viewer" },
|
{ rule_any = { instance = {"Gmutt"}, name = {"Gmutt"}},
|
||||||
properties = {
|
properties = { tag = "4", screen = screen_mail }},
|
||||||
fullscreen = true
|
{ rule_any = { class = {"Gmpc", "Spotify"}},
|
||||||
},
|
properties = { tag = "6" }},
|
||||||
},
|
{ rule = { class = "Pdfpc" },
|
||||||
{
|
properties = { size_hints_honor = true, float = true, fullscreen = true }},
|
||||||
rule_any = { role ={ "conversation" }, instance = { "Weechat" } },
|
{ rule_any = { class = {"URxvt", "Alacritty", "GVim" }},
|
||||||
callback = awful.client.setslave
|
properties = { opacity = 0.8 }},
|
||||||
},
|
{ rule = { name = "Awesomelog" },
|
||||||
{
|
properties = { tag = "F4" }},
|
||||||
rule = { class = "Irssi"},
|
{ rule = { class = "Dragon" },
|
||||||
properties = {
|
properties = { sticky = true, ontop = true }},
|
||||||
tag = "3"
|
{ rule = { class = "adobe dng converter.exe" },
|
||||||
} ,
|
properties = { floating = true, size_hints_honor = true }},
|
||||||
callback = awful.client.setslave
|
{ rule = { class = "Onboard" },
|
||||||
},
|
properties = { sticky = true, ontop = true, focusable = false}},
|
||||||
{
|
|
||||||
rule_any = { instance = {"Gmutt"}, name = {"Gmutt"} },
|
|
||||||
properties = {
|
|
||||||
tag = "4",
|
|
||||||
screen = screen_mail
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
rule = { class = "Gmpc" },
|
|
||||||
properties = {
|
|
||||||
tag = "6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
rule = { class = "Pdfpc" },
|
|
||||||
properties = {
|
|
||||||
size_hints_honor = true,
|
|
||||||
float = true,
|
|
||||||
fullscreen = true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
rule_any = { class = {"URxvt", "Alacritty", "GVim" } },
|
|
||||||
properties = {
|
|
||||||
opacity = 0.8
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
rule = { name = "Awesomelog" },
|
|
||||||
properties = {
|
|
||||||
tag = "F4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
rule = { class = "Dragon" },
|
|
||||||
properties = {
|
|
||||||
sticky = true,
|
|
||||||
ontop = true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
rule = { class = "adobe dng converter.exe" },
|
|
||||||
properties = { floating = true, size_hints_honor = true }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue