From 2ec461d732749ff9580c0a343523cc4b9fa19f34 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Wed, 24 Apr 2024 21:18:52 +0200 Subject: [PATCH 1/2] cleanup --- .config/lazygit/config.yml | 4 ++-- .local/bin/upgrades | 29 ++++++++++++++++------------- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/.config/lazygit/config.yml b/.config/lazygit/config.yml index 07099880b..09f1244dc 100644 --- a/.config/lazygit/config.yml +++ b/.config/lazygit/config.yml @@ -1,6 +1,6 @@ services: - gitlab.tralios.de: 'gitlab:gitlab.tralios.de' - git.snaile.de: 'gitea:git.snaile.de' + gitlab.tralios.de: "gitlab:gitlab.tralios.de" + git.snaile.de: "gitea:git.snaile.de" gui: nerdFontsVersion: "3" showRandomTip: false diff --git a/.local/bin/upgrades b/.local/bin/upgrades index f86e85363..6529be5d0 100755 --- a/.local/bin/upgrades +++ b/.local/bin/upgrades @@ -1,16 +1,19 @@ #!/bin/sh -script="sudo xbps-install -Su; pkill -RTMIN+8 dwmblocks" +# script="sudo xbps-install -Su; pkill -RTMIN+8 dwmblocks" +# +# if [ -n "$TERM_PROGRAM" ]; then +# sh -c "$script" +# else +# st -e sh -c " +# $script +# tput bold +# tput setaf 4 +# echo 'All done!' +# tput sgr 0 +# read -r _ +# " +# fi -if [ -n "$TERM" ]; then - sh -c "$script" -else - st -e sh -c " - $script - tput bold - tput setaf 4 - echo 'All done!' - tput sgr 0 - read -r _ - " -fi +sudo xbps-install -Su +pkill -RTMIN+8 dwmblocks From 59388be0397b2c7dc7d39f7d6e27b80ef169a1a5 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Wed, 24 Apr 2024 21:19:03 +0200 Subject: [PATCH 2/2] make nvim dashboard slimmer --- .config/nvim/lua/config/lazy.lua | 2 +- .config/nvim/lua/config/ui.lua | 38 ++++++++++++++++---------------- .config/nvim/lua/plugins/ui.lua | 2 +- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.config/nvim/lua/config/lazy.lua b/.config/nvim/lua/config/lazy.lua index d10a1bacf..7ce13d61a 100644 --- a/.config/nvim/lua/config/lazy.lua +++ b/.config/nvim/lua/config/lazy.lua @@ -16,7 +16,7 @@ require("lazy").setup({ spec = { { "LazyVim/LazyVim", - import = "lazyvim.plugins" + import = "lazyvim.plugins", }, { import = "lazyvim.plugins.extras.coding.yanky" }, { import = "lazyvim.plugins.extras.coding.copilot" }, diff --git a/.config/nvim/lua/config/ui.lua b/.config/nvim/lua/config/ui.lua index 4b8630198..5d1abc135 100644 --- a/.config/nvim/lua/config/ui.lua +++ b/.config/nvim/lua/config/ui.lua @@ -80,30 +80,30 @@ M.banners = { ---@type Array M.buttons = { + -- { + -- action = LazyVim.telescope("files"), + -- desc = " Find File" .. string.rep(" ", 33), + -- icon = " ", + -- key = "f", + -- }, { - action = LazyVim.telescope("files"), - desc = " Find File" .. string.rep(" ", 33), - icon = " ", - key = "f", - }, - { - action = "ene | startinsert", + action = "enew", desc = " New File" .. string.rep(" ", 34), icon = " ", key = "n", }, - { - action = "Telescope live_grep", - desc = " Find Text" .. string.rep(" ", 33), - icon = " ", - key = "g", - }, - { - action = "TodoTelescope", - desc = " Find Todo" .. string.rep(" ", 33), - icon = "󰱒 ", - key = "t", - }, + -- { + -- action = "Telescope live_grep", + -- desc = " Find Text" .. string.rep(" ", 33), + -- icon = " ", + -- key = "g", + -- }, + -- { + -- action = "TodoTelescope", + -- desc = " Find Todo" .. string.rep(" ", 33), + -- icon = "󰱒 ", + -- key = "t", + -- }, { action = 'lua require("persistence").load()', desc = " Restore Session" .. string.rep(" ", 27), diff --git a/.config/nvim/lua/plugins/ui.lua b/.config/nvim/lua/plugins/ui.lua index 5afbf2020..269f725e9 100644 --- a/.config/nvim/lua/plugins/ui.lua +++ b/.config/nvim/lua/plugins/ui.lua @@ -29,7 +29,7 @@ return { button.key_format = " %s" end math.randomseed(os.time()) - local banner = "\n\n" .. banners[math.random(#banners)] .. "\n\n" + local banner = "\n" .. banners[math.random(#banners)] .. "\n" opts.config.header = vim.split(banner, "\n") opts.config.center = center opts.config.footer = function()