GNU Stow • Linux • Dotfiles

Declarative Dotfiles with GNU Stow

Modular, symlink-managed configurations for Hyprland, Neovim, Waybar, Tmux, and Zsh. Keep your environments clean, versioned, and reproducible.

Advertisement

Quickstart Installation

Clone the repository to your home directory, verify your dependencies, and run GNU Stow.

# 1. Install GNU Stow
# Debian/Ubuntu
sudo apt install stow
# Arch Linux
sudo pacman -S stow
# Fedora
sudo dnf install stow

# 2. Clone repository to ~/.stowfiles
git clone https://github.com/joshuacox/stowfiles.git ~/.stowfiles
cd ~/.stowfiles

# 3. Stow an individual module (e.g. hyprland)
stow -vv hypr

# 4. Or deploy everything at once using the meta-script
./stow_all.sh

Configured Modules

Each directory corresponds to a top-level stow package that mirrors the target file hierarchy relative to $HOME.

šŸ“¦ hypr

Hyprland compositor configuration, keybindings, animations, monitor setup, and autostart routines.

hypr/.config/hypr

šŸ“¦ waybar / waybar_min

Highly customized Waybar status bar setups with full modular components and minimalist variants.

waybar/.config/waybar

šŸ“¦ astronvim

AstroNvim IDE distribution with LSP, treesitter, fuzzy finder, and custom user plugins pre-configured.

astronvim/.config/nvim

šŸ“¦ starship

Cross-shell prompt customization delivering instantaneous context for git, cloud runtimes, and languages.

starship/.config/starship.toml

šŸ“¦ zsh

Zsh environment configuration (.zshrc) and profile definitions tailored for high-speed terminal productivity.

zsh/.zshrc

šŸ“¦ tmuxinator

Terminal multiplexer project sessions to instantly spawn and arrange complex dev environments.

tmuxinator/.config/tmuxinator

šŸ“¦ lazygit & k9s

TUI dashboards for terminal Git workflow and Kubernetes cluster administration.

lazygit/.config/lazygit, k9s/.config/k9s

šŸ“¦ bin

Custom personal executable scripts and CLI utilities automatically symlinked directly to ~/bin.

bin/bin

šŸ“¦ omarchynvim / svim / tvim

Specialized modular Neovim variants tuned for specific project contexts and lightweight remote sessions.

omarchynvim, svim, tvim
Advertisement

Automation & Helper Scripts

stowfiles ships with battle-tested shell utilities to automate ingesting new configurations and rebuilding symlinks.

āš™ļø Meta Stower

Symlinks all configured package folders into your home directory ($HOME) sequentially in one step.

./stow_all.sh

āš™ļø New Package Ingestion

Moves ~/.config/<package> into the repository, appends it to stow_all.sh, and creates the symlink.

./stower.sh <package_name>

āš™ļø Directory Config Snatcher

Safely imports an existing ~/.config directory into the stow hierarchy with validation and verbosity.

./init_new_config_dir.sh <target>

āš™ļø Single File Config Snatcher

Extracts a single configuration file into the stow tree and symlinks it back cleanly.

./init_new_config_file.sh <target>

How GNU Stow Works Here

Understanding how GNU Stow links relative paths without copying or clobbering existing configuration files.

GNU Stow creates symlinks from the parent directory (usually your $HOME) to files residing inside package subdirectories.

stowfiles/
ā”œā”€ā”€ hypr/
│   └── .config/
│       └── hypr/
│           └── hyprland.conf  --->  ~/.config/hypr/hyprland.conf
ā”œā”€ā”€ zsh/
│   └── .zshrc                 --->  ~/.zshrc
└── bin/
    └── bin/
        └── myscript           --->  ~/bin/myscript

To cleanly un-stow a package at any time: stow -D <package_name>.

Frequently Asked Questions

What happens if a config file already exists?

Stow will safely abort with a conflict warning without overwriting your original file. You can either back up the existing file or use init_new_config_dir.sh to automatically move it into the stow tree.

How do I add my own customized tool?

Simply run ./stower.sh <tool_name>. It will move ~/.config/<tool_name> into the stow directory, append it to stow_all.sh, and create the symlink automatically.

AdSense & Monetization Verification

This site is configured for Google AdSense compliance with official publisher declaration.

Publisher ID: pub-8973108060277483

ads.txt record: google.com, pub-8973108060277483, DIRECT, f08c47fec0942fa0

View the published ads.txt file.