mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-01-29 03:37:13 +08:00
Minimize LoL client after game window opens
This commit is contained in:
parent
25ce01e408
commit
6526374bc4
1 changed files with 10 additions and 6 deletions
|
|
@ -700,17 +700,21 @@ 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
|
||||
local matcher = function (c)
|
||||
return awful.rules.match(c, { instance = "leagueclientux.exe" })
|
||||
end
|
||||
-- Minimize LoL client after game window opens
|
||||
for c in awful.client.iterate(matcher) do
|
||||
c.urgent = false
|
||||
c.minimized = true
|
||||
end
|
||||
|
||||
-- Unminimize LoL client after game window closes
|
||||
c:connect_signal("unmanage", function()
|
||||
for c in awful.client.iterate(matcher) do
|
||||
c.minimized = false
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue