181 lines
10 KiB
Lua
181 lines
10 KiB
Lua
local status, plugin = pcall(require, 'dashboard')
|
||
if not status then
|
||
print('Error with plugin: ', plugin)
|
||
return
|
||
end
|
||
|
||
function edit_nvim()
|
||
vim.cmd(":e $MYVIMRC")
|
||
vim.cmd(":cd ~/.config/nvim")
|
||
vim.cmd(":NvimTreeOpen")
|
||
end
|
||
|
||
function randomquote()
|
||
local quote = {
|
||
"Bing Chilling",
|
||
"The Stink Boys",
|
||
"Whopper Whopper Whopper Whopper Junior Double Triple Whopper",
|
||
"White Monster",
|
||
"The system plays us everday...",
|
||
"sudo systemctl restart justinlime",
|
||
"sudo systemctl start justinlime",
|
||
"sudo systemctl stop justinlime",
|
||
"sudo systemctl enable justinlime",
|
||
"sudo systemctl disable justinlime",
|
||
}
|
||
return quote[math.random(1,#quote)]
|
||
end
|
||
|
||
function randomsplash()
|
||
local splash = {
|
||
{
|
||
[[ ⠀ ]],
|
||
[[ ⠀⠀ ⣞⢽⢪⢣⢣⢣⢫⡺⡵⣝⡮⣗⢷⢽⢽⢽⣮⡷⡽⣜⣜⢮⢺⣜⢷⢽⢝⡽⣝ ]],
|
||
[[ ⠀ ⠸⡸⠜⠕⠕⠁⢁⢇⢏⢽⢺⣪⡳⡝⣎⣏⢯⢞⡿⣟⣷⣳⢯⡷⣽⢽⢯⣳⣫⠇ ]],
|
||
[[ ⠀⠀ ⠀⢀⢀⢄⢬⢪⡪⡎⣆⡈⠚⠜⠕⠇⠗⠝⢕⢯⢫⣞⣯⣿⣻⡽⣏⢗⣗⠏ ⠀]],
|
||
[[ ⠀ ⠀ ⠪⡪⡪⣪⢪⢺⢸⢢⢓⢆⢤⢀⠀⠀⠀⠀⠈⢊⢞⡾⣿⡯⣏⢮⠷⠁⠀ ⠀ ]],
|
||
[[ ⠀ ⠀ ⠀⠀⠈⠊⠆⡃⠕⢕⢇⢇⢇⢇⢇⢏⢎⢎⢆⢄⠀⢑⣽⣿⢝⠲⠉⠀⠀⠀ ⠀]],
|
||
[[ ⠀ ⠀⠀⠀ ⠀⠀⡿⠂⠠⠀⡇⢇⠕⢈⣀⠀⠁⠡⠣⡣⡫⣂⣿⠯⢪⠰⠂⠀⠀⠀⠀ ]],
|
||
[[ ⠀⠀ ⠀⠀⠀⡦⡙⡂⢀⢤⢣⠣⡈⣾⡃⠠⠄⠀⡄⢱⣌⣶⢏⢊⠂⠀⠀⠀⠀⠀⠀ ]],
|
||
[[ ⠀ ⠀ ⠀⠀⠀⢝⡲⣜⡮⡏⢎⢌⢂⠙⠢⠐⢀⢘⢵⣽⣿⡿⠁⠁⠀⠀⠀⠀⠀⠀ ⠀]],
|
||
[[ ⠀ ⠀ ⠀⠀⠀⠨⣺⡺⡕⡕⡱⡑⡆⡕⡅⡕⡜⡼⢽⡻⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ]],
|
||
[[ ⠀ ⠀ ⠀⠀⠀⣼⣳⣫⣾⣵⣗⡵⡱⡡⢣⢑⢕⢜⢕⡝⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ]],
|
||
[[ ⠀ ⠀ ⠀⠀⣴⣿⣾⣿⣿⣿⡿⡽⡑⢌⠪⡢⡣⣣⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ]],
|
||
[[ ⠀ ⠀ ⠀⠀⡟⡾⣿⢿⢿⢵⣽⣾⣼⣘⢸⢸⣞⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ]],
|
||
[[ ⠀ ⠀ ⠀⠀⠀⠁⠇⠡⠩⡫⢿⣝⡻⡮⣒⢽⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ]],
|
||
[[ ⠀ _ _ _ ___ ]],
|
||
[[ ⠀ | \ | | (_) |__ \ ]],
|
||
[[ ⠀ | \| | ___ ___ __ __ _ _ __ ___ ) | ]],
|
||
[[ ⠀ | . ` | / _ \ / _ \\ \ / /| || '_ ` _ \ / / ]],
|
||
[[ ⠀ | |\ || __/| (_) |\ V / | || | | | | ||_| ]],
|
||
[[ ⠀ |_| \_| \___| \___/ \_/ |_||_| |_| |_|(_) ]],
|
||
[[ ⠀ ]],
|
||
[[______________________________________________________]],
|
||
[[ ⠀ ]],
|
||
[[ ⠀ ]],
|
||
},
|
||
{
|
||
[[ ⠀ ]],
|
||
[[⠀⠀⠀⠀⠀⡰⢂⣾⠿⠛⠒⠚⠛⠃⠺⢶⡀⠀⠀⠀⠀⠀⠀⠀⠀]],
|
||
[[⠀⠀⠀⠀⢠⡣⠋⠁⠀⠀⠀⠀⠀⢀⡐⠒⢙⣄⠀⠀⠀⠀⠀⠀⠀]],
|
||
[[⠀⠀⠀⠀⡘⠀⠀⠀⠀⠀⠀⢄⠉⠀⠐⠀⠀⠙⢦⠀⠀⠀⠀⠀⠀]],
|
||
[[⠀⠀⠀⣾⠁⠀⠀⠄⠂⢈⣠⠎⠀⠀⣸⣿⡿⠓⢬⡇⠀⠀⠀⠀⠀]],
|
||
[[⠀⠀⢸⡟⠀⠔⣁⣤⣶⣿⠋⢰⠀⠀⣿⡟⠻⣦⠀⢳⠀⠀⠀⠀⠀]],
|
||
[[⠀⠀⣷⡇⢠⣾⢟⢭⣭⡭⡄⠀⡆⠀⣿⣷⣶⠺⡆⢸⡄⠀⠀⠀⠀]],
|
||
[[⠀⠀⠇⡇⠛⠡⣑⣈⣛⠝⢁⡀⠇⠀⣿⡿⠛⠒⣡⠇⣧⣀⠀⠀⠀]],
|
||
[[⠀⠀⢠⠁⠈⠐⠤⠄⠀⣠⢸⠈⠢⠀⣿⡇⠀⠀⠠⠚⣿⣿⠀⠀⠀]],
|
||
[[⡄⠀⢾⠀⡆⠠⣴⠞⠯⡀⠈⠙⠲⣶⣿⡇⠑⣦⡄⠀⣿⣿⠀⠀⠀]],
|
||
[[⠈⠺⡮⠀⢡⠀⠀⠀⠀⠀⠁⠐⠒⠒⠛⠃⠈⠛⠇⠀⡏⡏⠀⠀⠀]],
|
||
[[⠀⢰⠁⠀⠘⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⡄⠀⢷⠀⠀⠀]],
|
||
[[⠀⠘⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠃⠀⢸⠀⠀⠀]],
|
||
[[⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⡄⠀⠀]],
|
||
[[⠀⠀⢣⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⠸⡳⡀⠀]],
|
||
[[⠀⠀⠀⠑⢄⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣯⣼⡇⠑⣄]],
|
||
[[ ]],
|
||
[[ ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗ ]],
|
||
[[ ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║ ]],
|
||
[[ ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║ ]],
|
||
[[ ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║ ]],
|
||
[[ ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ ]],
|
||
[[ ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ]],
|
||
[[ ⠀ ]],
|
||
[[______________________________________________________]],
|
||
[[ ⠀ ]],
|
||
[[ ⠀ ]],
|
||
},
|
||
{
|
||
[[ ]],
|
||
[[⣿⣿⣿⣿⡏⣀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣤⣤⣄⡀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣿⣿]],
|
||
[[⣿⣿⣿⢏⣴⣿⣷⠀⠀⠀⠀⠀⢾⣿⣿⣿⣿⣿⣿⡆⠀⠀⠀⠀⠀⠀⠀⠈⣿⣿]],
|
||
[[⣿⣿⣟⣾⣿⡟⠁⠀⠀⠀⠀⠀⢀⣾⣿⣿⣿⣿⣿⣷⢢⠀⠀⠀⠀⠀⠀⠀⢸⣿]],
|
||
[[⣿⣿⣿⣿⣟⠀⡴⠄⠀⠀⠀⠀⠀⠀⠙⠻⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀⣿]],
|
||
[[⣿⣿⣿⠟⠻⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠶⢴⣿⣿⣿⣿⣿⣧⠀⠀⠀⠀⠀⠀⣿]],
|
||
[[⣿⣁⡀⠀⠀⢰⢠⣦⠀⠀⠀⠀⠀⠀⠀⠀⢀⣼⣿⣿⣿⣿⣿⡄⠀⣴⣶⣿⡄⣿]],
|
||
[[⣿⡋⠀⠀⠀⠎⢸⣿⡆⠀⠀⠀⠀⠀⠀⣴⣿⣿⣿⣿⣿⣿⣿⠗⢘⣿⣟⠛⠿⣼]],
|
||
[[⣿⣿⠋⢀⡌⢰⣿⡿⢿⡀⠀⠀⠀⠀⠀⠙⠿⣿⣿⣿⣿⣿⡇⠀⢸⣿⣿⣧⢀⣼]],
|
||
[[⣿⣿⣷⢻⠄⠘⠛⠋⠛⠃⠀⠀⠀⠀⠀⢿⣧⠈⠉⠙⠛⠋⠀⠀⠀⣿⣿⣿⣿⣿]],
|
||
[[⣿⣿⣧⠀⠈⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠟⠀⠀⠀⠀⢀⢃⠀⠀⢸⣿⣿⣿⣿]],
|
||
[[⣿⣿⡿⠀⠴⢗⣠⣤⣴⡶⠶⠖⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⡸⠀⣿⣿⣿⣿]],
|
||
[[⣿⣿⣿⡀⢠⣾⣿⠏⠀⠠⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠛⠉⠀⣿⣿⣿⣿]],
|
||
[[⣿⣿⣿⣧⠈⢹⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿⣿]],
|
||
[[⣿⣿⣿⣿⡄⠈⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣴⣾⣿⣿⣿⣿⣿]],
|
||
[[⣿⣿⣿⣿⣧⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
|
||
[[⣿⣿⣿⣿⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
|
||
[[⣿⣿⣿⣿⣿⣦⣄⣀⣀⣀⣀⠀⠀⠀⠀⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
|
||
[[ __ ]],
|
||
[[ ___ ___ ___ __ __ /\_\ ___ ___ ]],
|
||
[[ / _ `\ / __`\ / __`\/\ \/\ \\/\ \ / __` __`\ ]],
|
||
[[/\ \/\ \/\ __//\ \_\ \ \ \_/ |\ \ \/\ \/\ \/\ \ ]],
|
||
[[\ \_\ \_\ \____\ \____/\ \___/ \ \_\ \_\ \_\ \_\]],
|
||
[[ \/_/\/_/\/____/\/___/ \/__/ \/_/\/_/\/_/\/_/]],
|
||
[[ ]],
|
||
[[______________________________________________________]],
|
||
[[ ]],
|
||
[[ ]],
|
||
},
|
||
}
|
||
return splash[math.random(1,#splash)]
|
||
end
|
||
|
||
plugin.setup({
|
||
theme = 'doom',
|
||
config = {
|
||
header = randomsplash(),
|
||
center = {
|
||
{
|
||
icon = ' ',
|
||
icon_hl = '@variable',
|
||
desc = 'Find File',
|
||
desc_hl = 'String',
|
||
key = 'f',
|
||
keymap = 'SPC ff',
|
||
key_hl = 'Number',
|
||
action = 'Telescope find_files'
|
||
},
|
||
{
|
||
icon = ' ',
|
||
icon_hl = '@variable',
|
||
desc = 'File Browser',
|
||
desc_hl = 'String',
|
||
key = 'd',
|
||
keymap = 'SPC dt',
|
||
key_hl = 'Number',
|
||
action = 'NvimTreeToggle'
|
||
},
|
||
{
|
||
icon = ' ',
|
||
icon_hl = '@variable',
|
||
desc = 'Update',
|
||
desc_hl = 'String',
|
||
key = 'u',
|
||
keymap = ':Lazy update',
|
||
key_hl = 'Number',
|
||
action = 'Lazy update'
|
||
},
|
||
{
|
||
icon = ' ',
|
||
icon_hl = '@variable',
|
||
desc = 'Transparency Toggle',
|
||
desc_hl = 'String',
|
||
key = 't',
|
||
keymap = 'SPC tt',
|
||
key_hl = 'Number',
|
||
action = 'TransparentToggle'
|
||
},
|
||
{
|
||
icon = ' ',
|
||
icon_hl = '@variable',
|
||
desc = 'Edit Neovim',
|
||
desc_hl = 'String',
|
||
key = 'e',
|
||
keymap = 'SPC en',
|
||
key_hl = 'Number',
|
||
action = 'lua edit_nvim()' -- Declared in functions.lua
|
||
},
|
||
|
||
},
|
||
footer = {
|
||
randomquote()
|
||
}
|
||
}
|
||
}) |