You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.7 KiB
45 lines
1.7 KiB
-- This file is part of Reno desktop.
|
|
--
|
|
-- Reno desktop is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
|
--
|
|
-- Reno desktop is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
--
|
|
-- You should have received a copy of the GNU General Public License along with Reno desktop. If not, see <https://www.gnu.org/licenses/>.
|
|
local awful = require("awful")
|
|
local gears = require("gears")
|
|
awful.rules.rules = gears.table.join(awful.rules.rules, {
|
|
{ rule_any = { class = {
|
|
"steam_app_548430",
|
|
"steam_app_%d*",
|
|
"love",
|
|
"^Minecraft.*"
|
|
}},
|
|
properties = {inhibit_compositor = true},
|
|
},
|
|
{ rule_any = { class = {
|
|
"thunderbird"
|
|
}},
|
|
properties = {callback = function(c)
|
|
gears.timer.delayed_call(function()
|
|
c.minimized = true
|
|
end)
|
|
end}
|
|
},
|
|
{ rule = { fullscreen = true },
|
|
properties = {
|
|
titlebars_enabled = false,
|
|
floating = true,
|
|
border_width = 0,
|
|
border_color = 0,
|
|
size_hints_honor = false,
|
|
placement=awful.placement.no_offscreen
|
|
},
|
|
callback = function(c)
|
|
gears.timer.delayed_call(function()
|
|
if c.valid then
|
|
c:geometry(c.screen.geometry)
|
|
end
|
|
end)
|
|
end
|
|
}
|
|
})
|