From 47a18ff34c593dec6deb86f624894285aa272635 Mon Sep 17 00:00:00 2001 From: Roel de Cort Date: Thu, 9 May 2024 01:34:33 +0200 Subject: [PATCH] add startup dashboard --- config/plugins/ui/startup.nix | 75 +++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 config/plugins/ui/startup.nix diff --git a/config/plugins/ui/startup.nix b/config/plugins/ui/startup.nix new file mode 100644 index 0000000..b6529ef --- /dev/null +++ b/config/plugins/ui/startup.nix @@ -0,0 +1,75 @@ +{ + plugins.startup = { + enable = true; + + colors = { + background = "#ffffff"; + foldedSection = "#ffffff"; + }; + + sections = { + header = { + type = "text"; + oldfilesDirectory = false; + align = "center"; + foldSection = false; + title = "Header"; + margin = 5; + content = [ + " ██████╗░███████╗░█████╗░░█████╗░██████╗░████████╗░░░████████╗███████╗░█████╗░██╗░░██╗" + " ██╔══██╗██╔════╝██╔══██╗██╔══██╗██╔══██╗╚══██╔══╝░░░╚══██╔══╝██╔════╝██╔══██╗██║░░██║" + " ██║░░██║█████╗░░██║░░╚═╝██║░░██║██████╔╝░░░██║░░░░░░░░░██║░░░█████╗░░██║░░╚═╝███████║" + " ██║░░██║██╔══╝░░██║░░██╗██║░░██║██╔══██╗░░░██║░░░░░░░░░██║░░░██╔══╝░░██║░░██╗██╔══██║" + " ██████╔╝███████╗╚█████╔╝╚█████╔╝██║░░██║░░░██║░░░██╗░░░██║░░░███████╗╚█████╔╝██║░░██║" + " ╚═════╝░╚══════╝░╚════╝░░╚════╝░╚═╝░░╚═╝░░░╚═╝░░░╚═╝░░░╚═╝░░░╚══════╝░╚════╝░╚═╝░░╚═╝" + ]; + highlight = "Statement"; + defaultColor = ""; + oldfilesAmount = 0; + }; + + body = { + type = "mapping"; + oldfilesDirectory = false; + align = "center"; + foldSection = false; + title = "Menu"; + margin = 5; + content = [ + [ + " Find File" + "Telescope find_files" + "ff" + ] + [ + "󰍉 Find Word" + "Telescope live_grep" + "fr" + ] + [ + " Recent Files" + "Telescope oldfiles" + "fg" + ] + [ + " File Browser" + "Telescope file_browser" + "fe" + ] + ]; + highlight = "string"; + defaultColor = ""; + oldfilesAmount = 0; + }; + }; + + options = { + paddings = [1 3]; + }; + + parts = [ + "header" + "body" + ]; + }; +}