Add repository files

This commit is contained in:
hok7z 2023-01-02 16:33:55 +02:00
parent c78b13b4b9
commit bf502b2d5b
4 changed files with 134 additions and 0 deletions

25
README.md Normal file
View File

@ -0,0 +1,25 @@
<div align="center">
<img src="images/my_rice.png" alt="">
### My first rice
</div>
# Overview
- **wm** [**`bspwm`**](https://github.com/hok7z/dotfiles/tree/main/.config/bspwm) & [**`sxhkd`**](https://github.com/hok7z/dotfiles/tree/main/.config/sxhkd)
- **terminal** [**`kitty`**](https://github.com/hok7z/dotfiles/tree/main/.config/kitty)
- **editor** [**`neovim`**](https://github.com/hok7z/dotfiles/tree/main/.config/nvim)
- **status bar** [**`polybar`**](https://github.com/hok7z/dotfiles/tree/main/.config/polybar)
- **launcher** [**`rofi`**](https://github.com/hok7z/dotfiles/tree/main/.config/rofi)
- **shell** [**`fish`**](https://github.com/hok7z/dotfiles/tree/main/.config/fish)
- **notifications** [**`dunst`**](https://github.com/hok7z/dotfiles/tree/main/.config/dunst)
- [**`shell scripts`**](https://github.com/hok7z/dotfiles/tree/main/.config/scripts)
- [**`user systemd units`**](https://github.com/hok7z/dotfiles/tree/main/.config/systemd/user)
# TODO
- [x] Update neovim configuration
- [ ] custom statusline
- [ ] code folding
- [ ] write eww config

BIN
images/my_rice.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
images/old_rice.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

109
install-on-arch.sh Executable file
View File

@ -0,0 +1,109 @@
#!/bin/bash
config_directory="$HOME/.config"
fonts_directory="/usr/share/fonts"
green="\033[0;32m"
no_color='\033[0m'
echo "Welcome"
alias pacman="pacman --noconfirm --needed"
alias paru="paru --noconfirm --needed"
# sudo pacman -Sy dialog
install_base_pkgs() {
echo -e "${green}[*] Doing a system update, cause stuff may break if it's not the latest version...${no_color}"
sudo pacman -Suuy
sudo pacman -S base-devel wget git curl vim
sudo pacman -S pacman-contrib
}
install_software_pkgs() {
# Software
sudo pacman -S bluez bluez-utils cups
sudo systemctl enable bluetooth
sudo systemctl enable cups
echo -e "${green}[*] Installing software.${no_color}"
sudo pacman -S kitty tmux bottom flameshot keepassxc gnupg nitrogen pipewire pipewire-pulse polkit-gnome
sudo pacman -S discord
sudo pacman -S rofi rofi-calc xsel neofetch dunst libqalculate ranger pkgfile zathura texlive-core
# Shell utils
echo -e "${green}[*] Installing shell utils.${no_color}"
sudo pacman -S fish bat lsd fzf
sudo pacman -S mpv jq feh yt-dlp
# Graphics
echo -e "${green}[*] Installing graphics.${no_color}"
sudo pacman -S xorg xorg-server xorg-xinit lxappearance papirus-icon-theme
sudo pacman -S bspwm sxhkd
sudo pacman -S tor
sudo systemctl enable --now tor
# MTP protocol
echo -e "${green}[*] Installing mtp protocol.${no_color}"
sudo pacman -S mtpfs gvfs-mtp gvfs-gphoto2
sudo pacman -S ntfs-3g
# Python
echo -e "${green}[*] Installing python.${no_color}"
sudo pacman -S ipython poetry
sudo pacman -S python python-pip python-poetry
# VirtualMachine tool
echo -e "${green}[*] Configuring virtual manager.${no_color}"
sudo pacman -S qemu virt-manager ebtables dnsmasq firewalld nmap
sudo systemctl --now enable libvirtd
sudo systemctl --now enable firewalld
sudo sytemctl restart libvirtd
}
create_dotfiles() {
echo -e "${green}[*] Copying configs to $config_directory.${no_color}"
mkdir -p "$HOME"/.config
mkdir -p /usr/share/themes
mkdir -p "$HOME"/Pictures/screenshots
}
copy_fonts(){
echo -e "${green}[*] Copying fonts to $fonts_directory.${no_color}"
sudo cp -r ./fonts/* "$fonts_directory"
fc-cache -fv
}
# Install paru
install_aur_helper() {
echo -e "${green}[*] Installing aur helper.${no_color}"
git clone https://aur.archlinux.org/paru.git
(cd paru && makepkg -si)
rm -rf paru
}
install_aur_pkgs() {
paru -S librewolf-bin timeshift-bin kotatogram-desktop-bin spotify pandoc-bin
paru -S polybar-git light-git picom-animations-git betterlockscreen
paru -S nordic-darker-theme
paru -S jmtpfs
paru -S epson-inkjet-printer-escpr
}
finishing() {
echo -e "${green}[*] Copying wallpapers to "$HOME"/Pictures/wallpapers.${no_color}"
cp -r ./wallpapers/* "$HOME"/Pictures/wallpapers
sudo chsh -s /bin/fish
# NeoVim
echo -e "${green}[*] Installing neovim.${no_color}"
sudo pacman -S neovim neovim-qt
sudo pacman -S npm ninja cargo go
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim
echo -e "${green}[*] Updating nvim extensions.${no_color}"
nvim +PackerSync
}