update rules
This commit is contained in:
parent
0ecc9d9726
commit
8d61745f9c
|
@ -4,7 +4,7 @@ local awful = awful
|
||||||
-- modkey to use for most bindings
|
-- modkey to use for most bindings
|
||||||
conf.modkey = "Mod4"
|
conf.modkey = "Mod4"
|
||||||
|
|
||||||
-- screen number, on which rules will put clients by default
|
-- screen, on which rules will put clients by default
|
||||||
conf.screen = {
|
conf.screen = {
|
||||||
main = 1,
|
main = 1,
|
||||||
mail = 2,
|
mail = 2,
|
||||||
|
|
18
rules.lua
18
rules.lua
|
@ -8,14 +8,14 @@ local log = require("talkative")
|
||||||
|
|
||||||
-- create a notification when given client becomes urgent
|
-- create a notification when given client becomes urgent
|
||||||
local function popup_urgent(client, message)
|
local function popup_urgent(client, message)
|
||||||
client:connect_signal("property::urgent", function (c)
|
client:connect_signal("property::urgent", function (c)
|
||||||
if c.urgent and not c.focus then
|
if c.urgent and not c.focus then
|
||||||
naughty.notify({ text=message })
|
naughty.notify({ text=message })
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
if not localconf.screen then
|
if not localconf.screen then
|
||||||
localconf.screen = {}
|
localconf.screen = {}
|
||||||
end
|
end
|
||||||
local screen_main = math.min(localconf.screen.main or 1, screen.count())
|
local screen_main = math.min(localconf.screen.main or 1, screen.count())
|
||||||
local screen_chat = math.min(localconf.screen.chat or screen.count(), screen.count())
|
local screen_chat = math.min(localconf.screen.chat or screen.count(), screen.count())
|
||||||
|
@ -75,6 +75,8 @@ awful.rules.rules = {
|
||||||
properties = { screen = screen_chat, tag = "1" }},
|
properties = { screen = screen_chat, tag = "1" }},
|
||||||
{ rule = { class = "Telegram" },
|
{ rule = { class = "Telegram" },
|
||||||
except = { name = "Media viewer" },
|
except = { name = "Media viewer" },
|
||||||
|
properties = { screen = screen_chat, tag = "3" }},
|
||||||
|
{ rule = { class = "Telegram", name = "Media viewer" },
|
||||||
properties = { size_hints_honor = true, float = true, fullscreen = true }},
|
properties = { size_hints_honor = true, float = true, fullscreen = true }},
|
||||||
{ rule_any = { role ={ "conversation" }, instance = { "Weechat" }},
|
{ rule_any = { role ={ "conversation" }, instance = { "Weechat" }},
|
||||||
callback = awful.client.setslave },
|
callback = awful.client.setslave },
|
||||||
|
@ -87,8 +89,8 @@ awful.rules.rules = {
|
||||||
properties = { tag = "6" }},
|
properties = { tag = "6" }},
|
||||||
{ rule = { class = "Pdfpc" },
|
{ rule = { class = "Pdfpc" },
|
||||||
properties = { size_hints_honor = true, float = true, fullscreen = true }},
|
properties = { size_hints_honor = true, float = true, fullscreen = true }},
|
||||||
{ rule_any = { class = {"URxvt", "Alacritty", "GVim" }},
|
{ rule_any = { class = {"URxvt", "Alacritty", "GVim", "kitty" }},
|
||||||
properties = { opacity = 0.8 }},
|
properties = { opacity = 0.9 }},
|
||||||
{ rule = { name = "Awesomelog" },
|
{ rule = { name = "Awesomelog" },
|
||||||
properties = { tag = "F4" }},
|
properties = { tag = "F4" }},
|
||||||
{ rule = { class = "Dragon" },
|
{ rule = { class = "Dragon" },
|
||||||
|
|
Loading…
Reference in a new issue