update: hypr&neovim improvements, yazi plugins, waybar tweaking before bigger update

This commit is contained in:
2026-04-25 09:48:48 +03:00
parent 1930ed092f
commit 6cbd52f0db
71 changed files with 1470 additions and 223 deletions

33
config-scripts/export-config.sh Executable file
View File

@@ -0,0 +1,33 @@
#!/bin/bash
CONFIG_TIME=$(date +"%Y-%m-%d-%H-%M")
CONFIG_SAVE_DIR="$HOME/tmp/config-$CONFIG_TIME"
mkdir -p "$CONFIG_SAVE_DIR/.config"
mkdir -p "$CONFIG_SAVE_DIR/.themes"
echo 'Created config save directory'
cp -r ~/config-scripts "$CONFIG_SAVE_DIR/config-scripts"
cp -r ~/.themes/Colloid-Transparent-Dracula "$CONFIG_SAVE_DIR/.themes/Colloid-Transparent-Dracula/"
cp -r ~/.config/nvim "$CONFIG_SAVE_DIR/.config/nvim/"
cp -r ~/.config/rofi "$CONFIG_SAVE_DIR/.config/rofi/"
cp -r ~/.config/yazi "$CONFIG_SAVE_DIR/.config/yazi/"
cp -r ~/.config/hypr "$CONFIG_SAVE_DIR/.config/hypr/"
cp -r ~/.config/waybar "$CONFIG_SAVE_DIR/.config/waybar/"
cp -r ~/.config/dunst "$CONFIG_SAVE_DIR/.config/dunst/"
cp -r ~/.config/kitty "$CONFIG_SAVE_DIR/.config/kitty/"
cp -r ~/.config/fastfetch "$CONFIG_SAVE_DIR/.config/fastfetch/"
cp -r ~/.inputrc "$CONFIG_SAVE_DIR/.inputrc"
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 ~/.ideavimrc "$CONFIG_SAVE_DIR/.ideavimrc"
echo 'Copied configs'
zip -r "$HOME/tmp/config-$CONFIG_TIME.zip" "$CONFIG_SAVE_DIR"
echo 'Compressed the configs'
echo -e "\e[32mDone!\e[0m"

51
config-scripts/import-config.sh Executable file
View File

@@ -0,0 +1,51 @@
#!/bin/bash
SOURCE=$1
if [ -z "$SOURCE" ]; then
echo "Usage: $0 <path-to-zip-or-directory>"
exit 1
fi
# Handle zip extraction
if [[ "$SOURCE" == *.zip ]]; then
TEMP_DIR=$(mktemp -d)
unzip -q "$SOURCE" -d "$TEMP_DIR"
RESTORE_PATH=$(find "$TEMP_DIR" -maxdepth 1 -type d -name "config-*" | head -n 1)
else
RESTORE_PATH="$SOURCE"
fi
if [ ! -d "$RESTORE_PATH" ]; then
echo "Error: Invalid config source"
exit 1
fi
# Clean and restore config-scripts/
rm -rf ~/config-scripts
cp -r "$RESTORE_PATH/config-scripts" ~/
# Clean and restore .themes/
rm -rf ~/.themes/Colloid-Transparent-Dracula
mkdir -p ~/.themes
cp -r "$RESTORE_PATH/.themes/Colloid-Transparent-Dracula" ~/.themes/
# Clean and restore .config/
for dir in nvim rofi yazi hypr waybar dunst kitty fastfetch; do
rm -rf ~/.config/$dir
mkdir -p ~/.config/$dir
cp -r "$RESTORE_PATH/.config/$dir/." ~/.config/$dir/
done
# Restore single dotfiles
cp -r "$RESTORE_PATH/.inputrc" ~/
cp -r "$RESTORE_PATH/.bash_profile" ~/
cp -r "$RESTORE_PATH/.bashrc" ~/
cp -r "$RESTORE_PATH/.bash_exports" ~/
cp -r "$RESTORE_PATH/.bash_aliases" ~/
cp -r "$RESTORE_PATH/.ideavimrc" ~/
echo 'Restored configs'
# Cleanup temp files
[ -n "$TEMP_DIR" ] && rm -rf "$TEMP_DIR"
echo -e "\e[32mDone!\e[0m"

View File

@@ -0,0 +1,59 @@
#!/bin/bash
# ---- 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 ~/Downloads
mkdir ~/Programming
mkdir ~/Public
mkdir ~/Music
mkdir ~/Videos
mkdir ~/config-scripts
mkdir ~/scripts
mkdir -p ~/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
# 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
# ---- Packages setup ----
# Updating package databases & installed packages
echo "Updating package databases & installed packages...."
sudo pacman -Syu --noconfirm
# Installing the base packages
echo "Installing the base packages...."
sudo pacman -S --needed 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 gvfs gvfs-goa gvfs-nfs gvfs-smb
# ---- Config setup ----
# This will delete all current dotfiles. Please be careful!
# Cloning config from git
echo "Cloning config from git...."
yadm clone https://git.frik.su/Beesquit/dotfiles.git
yadm reset --hard origin/main
ya pkg upgrade

15
config-scripts/install-yay.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
# Installing yay
echo "Checking if yay is installed...."
if ! command -v yay >/dev/null 2>&1; then
echo "yay is not installed. Installing..."
mkdir -p ~/tmp/yay-install
cd ~/tmp/yay-install
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
cd
rm -rf ~/tmp/yay-install
else
echo "yay is installed. Skipping..."
fi

17
config-scripts/link-bash.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
bash_cfg_path=~/.config/bash
touch ~/.inputrc
touch ~/.bash_profile
touch ~/.bashrc
touch ~/.bash_aliases
touch ~/.bash_private
touch ~/.bash_exports
mkdir -p "$bash_cfg_path"
ln -s ~/.inputrc "$bash_cfg_path/inputrc"
ln -s ~/.bash_profile "$bash_cfg_path/bash_profile"
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"

20
config-scripts/yadm-readd.sh Executable file
View File

@@ -0,0 +1,20 @@
yadm add ~/config-scripts
yadm add ~/.themes/Colloid-Transparent-Dracula/
yadm add ~/.config/nvim/
yadm add ~/.config/rofi/
yadm add ~/.config/yazi/
yadm add ~/.config/hypr/
yadm add ~/.config/waybar/
yadm add ~/.config/dunst/
yadm add ~/.config/kitty/
yadm add ~/.config/fastfetch/
yadm add ~/.inputrc
yadm add ~/.bash_profile
yadm add ~/.bashrc
yadm add ~/.bash_exports
yadm add ~/.bash_aliases
yadm add ~/.ideavimrc