diff --git a/.config/gtk-4.0/assets b/.config/gtk-4.0/assets deleted file mode 120000 index 3136d316..00000000 --- a/.config/gtk-4.0/assets +++ /dev/null @@ -1 +0,0 @@ -/usr/share/themes/adw-gtk3-dark/gtk-4.0/assets \ No newline at end of file diff --git a/.config/gtk-4.0/gtk-dark.css b/.config/gtk-4.0/gtk-dark.css deleted file mode 120000 index fd29fc89..00000000 --- a/.config/gtk-4.0/gtk-dark.css +++ /dev/null @@ -1 +0,0 @@ -/usr/share/themes/adw-gtk3-dark/gtk-4.0/gtk-dark.css \ No newline at end of file diff --git a/.config/gtk-4.0/gtk.css b/.config/gtk-4.0/gtk.css deleted file mode 120000 index 0359752e..00000000 --- a/.config/gtk-4.0/gtk.css +++ /dev/null @@ -1 +0,0 @@ -/usr/share/themes/adw-gtk3-dark/gtk-4.0/gtk.css \ No newline at end of file diff --git a/.krypt/links.toml b/.krypt/links.toml index fd12238f..0b558b5c 100644 --- a/.krypt/links.toml +++ b/.krypt/links.toml @@ -251,9 +251,6 @@ dst = "${LOCAL_BIN}/.swap" src = ".local/bin/.swaync-test" dst = "${LOCAL_BIN}/.swaync-test" -[[link]] -src = ".local/bin/.update" -dst = "${LOCAL_BIN}/.update" [[link]] src = ".local/bin/grimblast" diff --git a/.local/bin/.update b/.local/bin/.update deleted file mode 100755 index e3f6132a..00000000 --- a/.local/bin/.update +++ /dev/null @@ -1,168 +0,0 @@ -#!/usr/bin/env bash -# vi: ft=bash -# WARN: make sure things are sure -set -euo pipefail - -GREEN_CHECK="\e[32m✅\e[0m" -WARN_CHECK="\e[38;5;208m✅\e[0m" - -DOTFILES_REPO="${DOTFILES_REPO:-https://github.com/mxaddict/dotfiles.git}" -dotfiles="${DOTFILES_DIR:-$HOME/.files}" -config="$HOME/.config" -tpm="$config/tmux/plugins/tpm" - -DRY_RUN=false -NO_STASH=false -for arg in "$@"; do - case "$arg" in - --dry-run) DRY_RUN=true ;; - --no-stash) NO_STASH=true ;; - -h|--help) - cat </dev/null 2>&1 -done - -mkdir -p "$config/hypr" >/dev/null 2>&1 -touch "$config/hypr/workspaces.conf" >/dev/null 2>&1 - -# Seed user-configurable files from templates if they don't exist yet. -# Format: "template-path-in-repo => destination-path-in-home" -# Destinations are gitignored so stow leaves them alone. -declare -a TEMPLATES=( - ".config/hypr/hyprpaper.template.conf => $config/hypr/hyprpaper.conf" - ".config/hypr/monitors.template.conf => $config/hypr/monitors.conf" - ".config/hypr/apps.template.conf => $config/hypr/apps.conf" - ".config/hypr/input.template.conf => $config/hypr/input.conf" - ".gitconfig.local.template => $HOME/.gitconfig.local" -) - -for entry in "${TEMPLATES[@]}"; do - src="${entry%%=>*}" - dst="${entry##*=>}" - # Strip leading/trailing whitespace (TEMPLATES uses pretty alignment). - src="${src#"${src%%[![:space:]]*}"}" - src="${src%"${src##*[![:space:]]}"}" - dst="${dst#"${dst%%[![:space:]]*}"}" - dst="${dst%"${dst##*[![:space:]]}"}" - src_path="$dotfiles/$src" - [ -f "$src_path" ] || continue - if [ ! -s "$dst" ]; then - mkdir -p "$(dirname "$dst")" >/dev/null 2>&1 - cp "$src_path" "$dst" - echo -e "$GREEN_CHECK Seeded $dst from $src" - fi -done - -echo -e "$GREEN_CHECK Updating dotfiles repository..." -[ -d "$dotfiles" ] || git clone "$DOTFILES_REPO" "$dotfiles" >/dev/null 2>&1 -SELF_PATH="$(readlink -f "$0")" -ORIGINAL_ARGS=("$@") - -pwd=$(pwd) -cd "$dotfiles" || exit - -STASHED_CHANGES=false -if ! git diff --quiet --exit-code; then - if [ "$NO_STASH" = true ]; then - echo -e "$WARN_CHECK Local changes present and --no-stash set. Aborting." >&2 - exit 1 - fi - echo -e "$GREEN_CHECK Stashing local changes before update..." - git stash push --include-untracked -m "Pre-update stash by self-update script" >/dev/null 2>&1 - STASHED_CHANGES=true -fi - -PULL_OUTPUT=$(git pull --ff-only 2>&1) -git_pull_status=$? - -if [ "$git_pull_status" -eq 0 ] && [[ ! "$PULL_OUTPUT" == *"Already up to date."* ]]; then - echo -e "$GREEN_CHECK Dotfiles updated. Re-executing script with new version." - cd "$pwd" - exec "$SELF_PATH" "${ORIGINAL_ARGS[@]}" -fi - -if [ "$STASHED_CHANGES" = true ]; then - echo -e "$GREEN_CHECK Applying stashed changes..." - git stash pop >/dev/null 2>&1 || true -fi - -if [ "$DRY_RUN" = true ]; then - echo -e "$GREEN_CHECK Dry run — skipping deps, stow, and plugin updates." - exit 0 -fi - -echo -e "$GREEN_CHECK Checking dependencies..." -"$dotfiles/.local/bin/.deps" - -echo -e "$GREEN_CHECK Stowing dotfiles..." -stow --adopt . >/dev/null 2>&1 || echo -e "$WARN_CHECK Failed to stow dotfiles" -cd "$pwd" || exit - -if command -v hyprctl >/dev/null && hyprctl version >/dev/null 2>&1; then - echo -e "$GREEN_CHECK Reloading Hyprland config..." - hyprctl reload >/dev/null 2>&1 || echo -e "$WARN_CHECK Failed to reload Hyprland" -fi - -if command -v dconf >/dev/null; then - echo -e "$GREEN_CHECK Loading dconf settings..." - dconf load / <~/.config/dconf/user.ini >/dev/null 2>&1 || echo -e "$WARN_CHECK Failed to load dconf settings" -fi - -if command -v batcat >/dev/null; then - alias bat=batcat -fi -if command -v bat >/dev/null; then - echo -e "$GREEN_CHECK Building bat cache..." - bat cache --build >/dev/null 2>&1 || echo -e "$WARN_CHECK Failed to build bat cache" -fi - -echo -e "$GREEN_CHECK Updating tldr cache..." -tldr --update >/dev/null 2>&1 || echo -e "$WARN_CHECK Failed to update tldr cache" -echo -e "$GREEN_CHECK Updating Fish shell plugins..." -fish -c "curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish > /tmp/fisher.fish" >/dev/null 2>&1 || echo -e "$WARN_CHECK Failed to download fisher.fish" -fish -c "source /tmp/fisher.fish && fisher update" >/dev/null 2>&1 || echo -e "$WARN_CHECK Failed to update Fish plugins via fisher" -echo -e "$GREEN_CHECK Updating Neovim plugins..." -nvim --headless "+Lazy! install all" "+Lazy! update all" +TSUpdate +qa >/dev/null 2>&1 || echo -e "$WARN_CHECK Failed to update Neovim plugins" - -echo -e "$GREEN_CHECK Updating Tmux plugins..." -[ -d "$tpm" ] || git clone https://github.com/tmux-plugins/tpm "$tpm" >/dev/null 2>&1 -cd "$tpm" || exit -git pull >/dev/null 2>&1 || echo -e "$WARN_CHECK Failed to pull tpm repo" -tmux source "$config/tmux/tmux.conf" 2>/dev/null || true -"$tpm/bin/install_plugins" >/dev/null 2>&1 || echo -e "$WARN_CHECK Failed to install Tmux plugins" -"$tpm/bin/update_plugins" all >/dev/null 2>&1 || echo -e "$WARN_CHECK Failed to update Tmux plugins" -"$tpm/bin/clean_plugins" >/dev/null 2>&1 || echo -e "$WARN_CHECK Failed to clean Tmux plugins" -cd "$pwd" || exit - -echo -e "$GREEN_CHECK Dotfiles update complete."