@@ -5,7 +5,7 @@ return {
|
||||
opts = function()
|
||||
local dashboard = require("alpha.themes.dashboard")
|
||||
require("alpha.term")
|
||||
local arttoggle = false
|
||||
local arttoggle = true
|
||||
|
||||
local logo = {
|
||||
[[ ██╗ █████╗ ███████╗██╗ ██╗██╗ ██╗██╗███╗ ███╗ Z]],
|
||||
@@ -16,14 +16,21 @@ return {
|
||||
[[ ╚══════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ]],
|
||||
}
|
||||
|
||||
local art = {
|
||||
-- { name, width, height }
|
||||
{ "tohru", 62, 17 },
|
||||
}
|
||||
|
||||
if arttoggle == true then
|
||||
dashboard.opts.opts.noautocmd = true
|
||||
dashboard.section.terminal.opts.redraw = true
|
||||
local path = os.getenv("HOME") .. "/asciiart/kanna"
|
||||
dashboard.section.terminal.command = "cat " .. path
|
||||
local path = vim.fn.stdpath("config") .. "/assets/"
|
||||
-- local random = math.random(1, #art)
|
||||
local currentart = art[1]
|
||||
dashboard.section.terminal.command = "cat " .. path .. currentart[1]
|
||||
|
||||
dashboard.section.terminal.width = 50
|
||||
dashboard.section.terminal.height = 25
|
||||
dashboard.section.terminal.width = currentart[2]
|
||||
dashboard.section.terminal.height = currentart[3]
|
||||
|
||||
dashboard.opts.layout = {
|
||||
dashboard.section.terminal,
|
||||
|
||||
Reference in New Issue
Block a user