update: slightly WIP update with cool features

This commit is contained in:
2026-05-12 19:50:46 +03:00
parent a304ecefcc
commit 9d23965acc
47 changed files with 244 additions and 278 deletions

View File

@@ -27,6 +27,7 @@ cp -r ~/.bash_profile "$CONFIG_SAVE_DIR/.bash_profile"
cp -r ~/.bashrc "$CONFIG_SAVE_DIR/.bashrc"
cp -r ~/.bash_exports "$CONFIG_SAVE_DIR/.bash_exports"
cp -r ~/.bash_aliases "$CONFIG_SAVE_DIR/.bash_aliases"
cp -r ~/.bash_prompt "$CONFIG_SAVE_DIR/.bash_prompt"
cp -r ~/.ideavimrc "$CONFIG_SAVE_DIR/.ideavimrc"
echo 'Copied configs'

View File

@@ -1,61 +1,82 @@
#!/bin/bash
set -uo pipefail
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
RED='\033[0;31m'
NC='\033[0m'
# ---- Preparing for setup ----
# Testing for sudo access
if ! sudo -v; then
echo -e "${RED}Error: Failed to use sudo.${NC}" >&2
exit 1
fi
# ---- Initial setup ----
# Creating all the directories
echo "Creating all the directories...."
mkdir -p ~/.config/bash
mkdir -p ~/Documents/obsidian/Notes
mkdir -p ~/Pictures/Screenshots
mkdir -p ~/Pictures/Wallpapers
mkdir ~/Downloads
mkdir ~/Programming
mkdir ~/Public
mkdir ~/Music
mkdir ~/Videos
mkdir ~/config-scripts
mkdir ~/scripts
mkdir -p ~/tmp/daily
echo -e "${YELLOW}Creating all the directories....${NC}"
mkdir -p "$HOME/.config/bash"
mkdir -p "$HOME/Documents/obsidian/Notes"
mkdir -p "$HOME/Pictures/Screenshots"
mkdir -p "$HOME/Pictures/Wallpapers"
mkdir -p "$HOME/Downloads"
mkdir -p "$HOME/Programming"
mkdir -p "$HOME/Public"
mkdir -p "$HOME/Music"
mkdir -p "$HOME/Videos"
mkdir -p "$HOME/config-scripts"
mkdir -p "$HOME/scripts"
mkdir -p "$HOME/tmp/daily"
# Creating extra files
echo "Creating extra files...."
touch ~/.bash_profile
touch ~/.bash_exports
touch ~/.inputrc
touch ~/.bashrc
touch ~/.bash_aliases
touch ~/.bash_private
echo -e "${YELLOW}Creating extra files....${NC}"
touch "$HOME/.bash_profile"
touch "$HOME/.bash_exports"
touch "$HOME/.inputrc"
touch "$HOME/.bashrc"
touch "$HOME/.bash_aliases"
touch "$HOME/.bash_private"
touch "$HOME/.bash_prompt"
# Creating extra links
echo "Creating extra links...."
ln -s ~/.bash_profile ~/.config/bash/bash_profile
ln -s ~/.bash_exports ~/.config/bash/bash_exports
ln -s ~/.inputrc ~/.config/bash/inputrc
ln -s ~/.bashrc ~/.config/bash/bashrc
ln -s ~/.bash_aliases ~/.config/bash/bash_aliases
ln -s ~/.bash_private ~/.config/bash/bash_private
echo -e "${YELLOW}Creating extra links....${NC}"
ln -sf "$HOME/.bash_profile" "$HOME/.config/bash/bash_profile"
ln -sf "$HOME/.bash_exports" "$HOME/.config/bash/bash_exports"
ln -sf "$HOME/.inputrc" "$HOME/.config/bash/inputrc"
ln -sf "$HOME/.bashrc" "$HOME/.config/bash/bashrc"
ln -sf "$HOME/.bash_aliases" "$HOME/.config/bash/bash_aliases"
ln -sf "$HOME/.bash_private" "$HOME/.config/bash/bash_private"
ln -sf "$HOME/.bash_prompt" "$HOME/.config/bash/bash_prompt"
# ---- Packages setup ----
# Updating package databases & installed packages
echo "Updating package databases & installed packages...."
sudo pacman -Syu --noconfirm
# Updating package databases
echo -e "${YELLOW}Updating package databases....${NC}"
sudo pacman -Sy
# Installing the base packages
echo "Installing the base packages...."
sudo pacman -S --needed git base-devel less jq inetutils
echo -e "${YELLOW}Installing the base packages....${NC}"
sudo pacman -S --needed --noconfirm git base-devel less jq inetutils
# Installing extra packages
echo "Installing extra packages...."
sudo pacman -S --noconfirm yadm wl-clipboard hyprland uwsm hypridle hyprlock brightnessctl
sudo pacman -S --noconfirm xdg-desktop-portal-hyprland xdg-desktop-portal xdg-desktop-portal-gtk
sudo pacman -S --noconfirm rofi waybar dunst awww kitty neovim nwg-look grim slurp
sudo pacman -S --noconfirm thunar thunar-shares-plugin thunar-archive-plugin thunar-volman
sudo pacman -S --niconfirm gvfs gvfs-mtp gvfs-afc gvfs-nfs gvfs-smb gvfs-goa gvfs-wsdd gvfs-dnssd gvfs-gphoto2
echo -e "${YELLOW}Installing extra packages....${NC}"
sudo pacman -S --needed --noconfirm \
yadm wl-clipboard hyprland uwsm hypridle hyprlock brightnessctl \
xdg-desktop-portal-hyprland xdg-desktop-portal xdg-desktop-portal-gtk \
rofi waybar dunst awww kitty neovim yazi nwg-look grim slurp \
thunar thunar-shares-plugin thunar-archive-plugin thunar-volman \
gvfs gvfs-mtp gvfs-afc gvfs-nfs gvfs-smb gvfs-goa gvfs-wsdd gvfs-dnssd gvfs-gphoto2
# ---- Config setup ----
# This will delete all current dotfiles. Please be careful!
# Cloning config from git
echo "Cloning config from git...."
echo -e "${YELLOW}Cloning config from git....${NC}"
yadm clone https://git.frik.su/Beesquit/dotfiles.git
yadm reset --hard origin/main
ya pkg upgrade
# ---- Finished ----
echo -e "${GREEN}The setup is finished!${NC}"

View File

@@ -1,4 +1,6 @@
#!/bin/bash
# Installing needed packages
sudo pacman -S --noconfirm --needed git base-devel
# Installing yay
echo "Checking if yay is installed...."
if ! command -v yay >/dev/null 2>&1; then

View File

@@ -7,6 +7,7 @@ touch ~/.bashrc
touch ~/.bash_aliases
touch ~/.bash_private
touch ~/.bash_exports
touch ~/.bash_prompt
mkdir -p "$bash_cfg_path"
ln -s ~/.inputrc "$bash_cfg_path/inputrc"
@@ -15,3 +16,4 @@ ln -s ~/.bashrc "$bash_cfg_path/bashrc"
ln -s ~/.bash_aliases "$bash_cfg_path/bash_aliases"
ln -s ~/.bash_private "$bash_cfg_path/bash_private"
ln -s ~/.bash_exports "$bash_cfg_path/bash_exports"
ln -s ~/.bash_prompt "$bash_cfg_path/bash_prompt"

View File

@@ -18,5 +18,6 @@ yadm add ~/.bash_profile
yadm add ~/.bashrc
yadm add ~/.bash_exports
yadm add ~/.bash_aliases
yadm add ~/.bash_prompt
yadm add ~/.ideavimrc