Something went wrong. Try again.
clone of my dotfiles.ssp.sh
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102# Linking dotfiles with Stow#.DEFAULT_GOAL := arch
# Shared packages (work on both platforms)SHARED = nvim git zsh tmux kitty ghostty lazygit k9s btop fzf helix presenterm ruff sesh mutt msmtp lazydocker yazi
# Platform-specific packagesMACOS = karabiner yabai skhd alfredLINUX = kanata hypr walker waybar obsidian mako mise XCompose clipse OBS
.PHONY: mac linux shared clean
# Install shared dotfilesshared: stow $(SHARED)
# TODO: Does not yet work on Mac, just the preparationmac: shared stow $(MACOS)
# Install Linux-specific setup linux: shared stow $(LINUX)
# Remove all symlinksclean: stow -D $(SHARED) $(MACOS) $(LINUX)
# Remove only macOS symlinksclean-mac: stow -D $(MACOS)
# Remove only Linux symlinksclean-linux: stow -D $(LINUX)
install-kanata: sudo cp systemd/.config/systemd/system/kanata.service /etc/systemd/system/ sudo systemctl daemon-reload sudo systemctl enable kanata.service
uninstall-kanata: sudo systemctl stop kanata.service sudo systemctl disable kanata.service sudo rm /etc/systemd/system/kanata.service
arch: pacman -Qqm > yay_aur.txt pacman -Qqen | grep -v -f <(pacman -Qqm) > pacman.txt pacman -Qen | grep -v -f <(pacman -Qqm) > pacman-versions.txt
## how it works:# make arch-orphans # List orphaned packages → arch-orphans.txt# make arch-cleanup # Remove orphaned packages (after review)# make arch-package-check # Analyze all packages → arch-package-analysis.txt# make arch-check-deps # Check what depends on a package# make arch-clean-cache # Clean package cache (keeps 3 versions)arch-orphans: ./_utils/arch-maintenance.sh orphans
arch-cleanup: ./_utils/arch-maintenance.sh cleanup
arch-package-check: ./_utils/arch-maintenance.sh package-check
arch-check-deps: ./_utils/arch-maintenance.sh check-deps
arch-clean-cache: ./_utils/arch-maintenance.sh clean-cache
oh-my-zsh: sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" #install oh-my-zsh git clone --depth=1 https://github.com/romkatv/powerlevel10k.git "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k"
#TODOpost-omarchy-install: arch-install cp ~/stow/.stowrc ~/.stowrc linux oh-my-zsh sudo systemctl enable --now sshd rsync TODO _post-scripts/rsync.sh (take from readme) sudo systemctl enable --now sshd install-kanata
arch-install: sudo pacman -S --needed - < pacman.txt yay -S --needed --noconfirm - < yay_aur.txt
tmux-init-install: rm -rf ~/.tmux/plugins tmux new-session -d && tmux kill-session mkdir -p ~/.tmux/plugins git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm 2>/dev/null || true ~/.tmux/plugins/tpm/bin/install_plugins