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