stuff
This commit is contained in:
parent
11187dc11c
commit
05595c2e14
28 changed files with 210 additions and 246 deletions
11
crates/00-system/crate.arch.sh
Normal file
11
crates/00-system/crate.arch.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
super_apply() {
|
||||
pacman -S --needed sudo reflector
|
||||
if ! grep -q "Reflector" /etc/pacman.d/mirrorlist; then
|
||||
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
|
||||
reflector -c NL -f 10 --threads 4 --save /etc/pacman.d/mirrorlist
|
||||
else
|
||||
echo "err: reflector already executed -- skipping..."
|
||||
fi
|
||||
|
||||
cp files/pacman.conf /etc/pacman.conf
|
||||
}
|
7
crates/00-system/crate.sh
Normal file
7
crates/00-system/crate.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
describe="Install stuff on the system!"
|
||||
|
||||
super_apply() {
|
||||
cp files/sudoers /etc/sudoers
|
||||
}
|
31
crates/00-system/files/pacman.conf
Normal file
31
crates/00-system/files/pacman.conf
Normal file
|
@ -0,0 +1,31 @@
|
|||
[options]
|
||||
HoldPkg = pacman glibc yay
|
||||
Architecture = auto
|
||||
|
||||
Color
|
||||
CheckSpace
|
||||
ParallelDownloads = 5
|
||||
|
||||
SigLevel = Required DatabaseOptional
|
||||
LocalFileSigLevel = Optional
|
||||
|
||||
#[testing]
|
||||
#Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[core]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[extra]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
#[community-testing]
|
||||
#Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
#[multilib-testing]
|
||||
#Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[multilib]
|
||||
Include = /etc/pacman.d/mirrorlist
|
4
crates/00-system/files/sudoers
Normal file
4
crates/00-system/files/sudoers
Normal file
|
@ -0,0 +1,4 @@
|
|||
root ALL=(ALL:ALL) ALL
|
||||
%wheel ALL=(ALL:ALL) ALL
|
||||
%root ALL=(ALL:ALL) NOPASSWD: ALL
|
||||
@includedir /etc/sudoers.d
|
7
crates/10-zsh/crate.arch.sh
Normal file
7
crates/10-zsh/crate.arch.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
super_apply() {
|
||||
pacman -S --needed zsh cmake
|
||||
}
|
||||
|
||||
super_undo() {
|
||||
pacman -R zsh
|
||||
}
|
41
crates/10-zsh/crate.sh
Normal file
41
crates/10-zsh/crate.sh
Normal file
|
@ -0,0 +1,41 @@
|
|||
#!/bin/sh
|
||||
|
||||
describe="Install zsh and oh-my-zsh!"
|
||||
scripts="@distro @self"
|
||||
|
||||
super_apply() {
|
||||
[ -d /tmp/fastfetch ] || git clone https://github.com/LinusDierheimer/fastfetch /tmp/fastfetch
|
||||
|
||||
if ! command -v fastfetch &> /dev/null; then
|
||||
cd /tmp/fastfetch
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake ..
|
||||
cmake --build . --target fastfetch
|
||||
mv fastfetch /usr/local/bin/fastfetch
|
||||
fi
|
||||
|
||||
usermod $USER --shell /bin/zsh
|
||||
}
|
||||
|
||||
super_undo() {
|
||||
usermod $USER --shell /bin/bash
|
||||
}
|
||||
|
||||
apply() {
|
||||
if [ ! -d "$HOME/.oh-my-zsh" ]; then
|
||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
|
||||
|
||||
PL_DIR=${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
||||
[ -d "$PL_DIR" ] || git clone https://github.com/zsh-users/zsh-autosuggestions $PL_DIR
|
||||
PL_DIR=${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
|
||||
[ -d "$PL_DIR" ] || git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $PL_DIR
|
||||
fi
|
||||
|
||||
[ -e "$HOME/.zshrc" ] || ln files/.zshrc $HOME/.zshrc
|
||||
}
|
||||
|
||||
undo() {
|
||||
unlink $HOME/.zshrc
|
||||
rm -rf $HOME/.oh-my-zsh
|
||||
}
|
23
crates/10-zsh/files/.zshrc
Normal file
23
crates/10-zsh/files/.zshrc
Normal file
|
@ -0,0 +1,23 @@
|
|||
export GPG_TTY=$(tty)
|
||||
|
||||
# paths
|
||||
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
|
||||
# ZSH
|
||||
export ZSH="$HOME/.oh-my-zsh"
|
||||
|
||||
ZSH_THEME="afowler"
|
||||
plugins=(git docker docker-compose node zsh-autosuggestions zsh-syntax-highlighting)
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
# ALIASES
|
||||
alias open="xdg-open"
|
||||
alias nobeep="sudo modprobe -r pcspkr"
|
||||
alias s="title $HOST && cmatrix -rs && clear"
|
||||
alias q="exit"
|
||||
|
||||
# COSMETICS
|
||||
fastfetch
|
||||
|
||||
export PATH="${PATH}:/home/${USER}/.local/bin"
|
||||
export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"
|
7
crates/20-vim/crate.arch.sh
Normal file
7
crates/20-vim/crate.arch.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
super_apply() {
|
||||
pacman -S --needed vim
|
||||
}
|
||||
|
||||
super_undo() {
|
||||
echo "we never uninstall vim -_-"
|
||||
}
|
10
crates/20-vim/files/.ideavimrc
Normal file
10
crates/20-vim/files/.ideavimrc
Normal file
|
@ -0,0 +1,10 @@
|
|||
source ~/.vimrc
|
||||
|
||||
set scrolloff=5
|
||||
set incsearch
|
||||
|
||||
map Q gq
|
||||
|
||||
Plug 'machakann/vim-highlightedyank'
|
||||
Plug 'tpope/vim-commentary'
|
||||
Plug 'wellle/targets.vim'
|
2
crates/20-vim/files/.vimrc
Normal file
2
crates/20-vim/files/.vimrc
Normal file
|
@ -0,0 +1,2 @@
|
|||
set number
|
||||
set relativenumber
|
7
crates/30-alacritty/crate.arch.sh
Normal file
7
crates/30-alacritty/crate.arch.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
super_apply() {
|
||||
pacman -S --needed alacritty
|
||||
}
|
||||
|
||||
super_undo() {
|
||||
pacman -R alacritty
|
||||
}
|
12
crates/30-alacritty/crate.sh
Normal file
12
crates/30-alacritty/crate.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
describe="Installs alacritty and configs"
|
||||
scripts="@distro @self"
|
||||
|
||||
apply() {
|
||||
[ -e "$HOME/.config/alacritty/alacritty.yml" ] || ln files/alacritty.yml $HOME/.config/alacritty/alacritty.yml
|
||||
}
|
||||
|
||||
undo() {
|
||||
unlink $HOME/.config/alacritty/alacritty.yml
|
||||
}
|
6
crates/30-alacritty/files/alacritty.yml
Normal file
6
crates/30-alacritty/files/alacritty.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
cursor:
|
||||
style:
|
||||
shape: 'Block'
|
||||
blinking: 'On'
|
||||
blink_interval: 500
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue