From 38988226737bd8da28283083208e8c5f5da937d8 Mon Sep 17 00:00:00 2001 From: datalore Date: Fri, 26 Jul 2024 17:01:46 +0200 Subject: [PATCH] Initial commit --- README.md | 3 +++ system/installadditions.sh | 3 +++ system/installbasics.sh | 13 +++++++++++++ system/installthemes.sh | 13 +++++++++++++ user/bashrc | 5 +++++ user/init.lua | 23 +++++++++++++++++++++++ user/setupadditions.sh | 6 ++++++ 7 files changed, 66 insertions(+) create mode 100644 README.md create mode 100755 system/installadditions.sh create mode 100755 system/installbasics.sh create mode 100755 system/installthemes.sh create mode 100644 user/bashrc create mode 100644 user/init.lua create mode 100755 user/setupadditions.sh diff --git a/README.md b/README.md new file mode 100644 index 0000000..75fc527 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# alpine-setup + +Just a bunch of utility scripts for my alpine setups. diff --git a/system/installadditions.sh b/system/installadditions.sh new file mode 100755 index 0000000..4a8fe91 --- /dev/null +++ b/system/installadditions.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +apk add bash zoxide neovim eza bat diff --git a/system/installbasics.sh b/system/installbasics.sh new file mode 100755 index 0000000..32858ed --- /dev/null +++ b/system/installbasics.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +# RUN AFTER DESKTOP SETUP! + +apk add doas dbus dbus-x11 elogind polkit-elogind xfce-polkit + +rc-update add dbus +rc-update add elogind + +service dbus start +service elogind start + +echo "Done. Remember configuring doas!" diff --git a/system/installthemes.sh b/system/installthemes.sh new file mode 100755 index 0000000..3d24c8b --- /dev/null +++ b/system/installthemes.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +cd /usr/share/icons/ +wget https://github.com/EliverLara/candy-icons/archive/refs/heads/master.zip +unzip master.zip +rm master.zip + +cd /usr/share/themes/ +wget https://github.com/EliverLara/Sweet/releases/download/latest/Sweet-Dark-v40.tar.xz +tar xf Sweet-Dark-v40.tar.xz +rm Sweet-Dark-v40.tar.xz + +echo "Themes installed. Configuration has to be done manually." diff --git a/user/bashrc b/user/bashrc new file mode 100644 index 0000000..108125b --- /dev/null +++ b/user/bashrc @@ -0,0 +1,5 @@ +alias ls="eza --icons" +alias ll="ls -lga --header" +alias tree="ls -T" +alias cat="bat -S" +eval "$(zoxide init --cmd cd bash)" diff --git a/user/init.lua b/user/init.lua new file mode 100644 index 0000000..5d814ff --- /dev/null +++ b/user/init.lua @@ -0,0 +1,23 @@ +-- deactivating netrw as it conflicts with nvim-tree +vim.g.loaded_netrw = 1 +vim.g.loaded_netrwPlugin = 1 + +local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim' +if not vim.loop.fs_stat(lazypath) then + local lazyrepo = 'https://github.com/folke/lazy.nvim.git' + vim.fn.system{'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath} +end +vim.opt.rtp:prepend(lazypath) + +require("lazy").setup { + "xiyaowong/transparent.nvim", + {"willothy/nvim-cokeline", dependencies = { + "nvim-lua/plenary.nvim", + "nvim-tree/nvim-web-devicons" + }, config = true}, + {"nvim-tree/nvim-tree.lua", dependencies = { + "nvim-tree/nvim-web-devicons" + }} +} + +require("nvim-tree").setup() diff --git a/user/setupadditions.sh b/user/setupadditions.sh new file mode 100755 index 0000000..8bc4621 --- /dev/null +++ b/user/setupadditions.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +chsh /bin/bash +cp bashrc ~/.bashrc +mkdir -p ~/.config/nvim +cp init.lua ~/.config/nvim/