add(create_tags) spawn a terminal on the first_tag

This commit is contained in:
Aire-One 2021-12-26 17:21:30 +01:00
parent 588c4f241c
commit 6fd8406ac7
1 changed files with 8 additions and 1 deletions

View File

@ -53,6 +53,7 @@ end
function slots.create_tags(screen)
local atag = require "awful.tag"
local gtimer = require "gears.timer"
local home_layout = require "MyTagLayout.home_layout"
local first_tag = atag.add("home", {
@ -62,7 +63,13 @@ function slots.create_tags(screen)
master_width_factor = beautiful.hometag_master_width_factor,
})
first_tag:view_only()
gtimer.delayed_call(function()
local spawn = require "awful.spawn"
local apps = require "configuration.applications"
first_tag:view_only()
spawn(apps.open_terminal(), { screen = screen, tag = first_tag })
end)
end
function slots.build_desktop_decoration(screen)