mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-01-12 01:28:01 +08:00
Unminimize LoL client after game window closes
This commit is contained in:
parent
2d02a7d6ca
commit
96daf9e29a
1 changed files with 19 additions and 0 deletions
|
|
@ -673,6 +673,24 @@ awful.rules.rules = {
|
|||
end
|
||||
},
|
||||
|
||||
-- Unminimize LoL client after game window closes
|
||||
{
|
||||
rule = { instance = "league of legends.exe" },
|
||||
properties = {},
|
||||
callback = function (c)
|
||||
c:connect_signal("unmanage", function()
|
||||
-- Search for LoL client and unminimize it
|
||||
local matcher = function (c)
|
||||
return awful.rules.match(c, { instance = "leagueclientux.exe" })
|
||||
end
|
||||
|
||||
for c in awful.client.iterate(matcher) do
|
||||
c.minimized = false
|
||||
end
|
||||
end)
|
||||
end
|
||||
},
|
||||
|
||||
---------------------------------------------
|
||||
-- Start application on specific workspace --
|
||||
---------------------------------------------
|
||||
|
|
@ -707,6 +725,7 @@ awful.rules.rules = {
|
|||
},
|
||||
instance = {
|
||||
"synthetik.exe",
|
||||
"leagueclient.exe"
|
||||
},
|
||||
},
|
||||
properties = { screen = 1, tag = awful.screen.focused().tags[2] }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue