Centralized dotfiles.conf, revamped stuff.
This commit is contained in:
62
dotfiles.conf
Normal file
62
dotfiles.conf
Normal file
@@ -0,0 +1,62 @@
|
||||
# ============================================================================
|
||||
# Dotfiles Configuration
|
||||
# ============================================================================
|
||||
# Fork this repo? Update the values below to match your setup.
|
||||
# All scripts source this file for configuration.
|
||||
# ============================================================================
|
||||
|
||||
# --- GitHub Settings ---
|
||||
DOTFILES_GITHUB_USER="adlee-was-taken"
|
||||
DOTFILES_REPO_NAME="dotfiles"
|
||||
DOTFILES_BRANCH="main"
|
||||
|
||||
# --- Local Paths ---
|
||||
DOTFILES_DIR="$HOME/.dotfiles"
|
||||
DOTFILES_BACKUP_PREFIX="$HOME/.dotfiles_backup"
|
||||
|
||||
# --- User Identity (used by setup-espanso.sh) ---
|
||||
# Leave blank to be prompted during setup, or pre-fill for automated installs
|
||||
USER_FULLNAME=""
|
||||
USER_EMAIL=""
|
||||
USER_PHONE=""
|
||||
USER_WEBSITE=""
|
||||
USER_GITHUB=""
|
||||
|
||||
# --- Feature Toggles ---
|
||||
# Set to "true" or "false" to control what gets installed
|
||||
INSTALL_ESPANSO="ask" # "true", "false", or "ask"
|
||||
INSTALL_FZF="ask"
|
||||
INSTALL_BAT="ask"
|
||||
INSTALL_EZA="ask"
|
||||
SET_ZSH_DEFAULT="ask"
|
||||
|
||||
# --- Theme Settings ---
|
||||
ZSH_THEME_NAME="adlee"
|
||||
THEME_TIMER_THRESHOLD=10 # Show elapsed time for commands longer than N seconds
|
||||
THEME_PATH_TRUNCATE_LENGTH=32 # Truncate path display after N characters
|
||||
|
||||
# --- Espanso Settings ---
|
||||
ESPANSO_TRIGGER_PREFIX=".." # Prefix for all triggers (e.g., "..date")
|
||||
|
||||
# --- Snapper Settings (CachyOS/Arch with btrfs) ---
|
||||
SNAPPER_CONFIG="root"
|
||||
LIMINE_CONF="/boot/limine.conf"
|
||||
|
||||
# ============================================================================
|
||||
# Derived URLs (generally don't edit these)
|
||||
# ============================================================================
|
||||
DOTFILES_REPO_URL="https://github.com/${DOTFILES_GITHUB_USER}/${DOTFILES_REPO_NAME}.git"
|
||||
DOTFILES_RAW_URL="https://raw.githubusercontent.com/${DOTFILES_GITHUB_USER}/${DOTFILES_REPO_NAME}/${DOTFILES_BRANCH}"
|
||||
|
||||
# ============================================================================
|
||||
# Helper function to source this config from any script
|
||||
# ============================================================================
|
||||
# Add this to scripts that need config values:
|
||||
#
|
||||
# SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
# DOTFILES_CONF="${SCRIPT_DIR}/dotfiles.conf"
|
||||
# [[ -f "$DOTFILES_CONF" ]] || DOTFILES_CONF="${SCRIPT_DIR}/../dotfiles.conf"
|
||||
# [[ -f "$DOTFILES_CONF" ]] || DOTFILES_CONF="$HOME/.dotfiles/dotfiles.conf"
|
||||
# source "$DOTFILES_CONF" || { echo "Error: Cannot find dotfiles.conf"; exit 1; }
|
||||
#
|
||||
# ============================================================================
|
||||
Reference in New Issue
Block a user