#!/bin/bash # Copy the live config (~/.config) into this repo. Run it, then `git add -A && git commit`. # Only what belongs to the rice is copied; machine-generated files (hypr/dms/, DMS colour caches) are skipped. set -e cd "$(dirname "$0")" C=${XDG_CONFIG_HOME:-$HOME/.config} mkdir -p hypr dms/plugins systemd/user kitty rsync -a --delete --exclude 'dms/' --exclude 'hyprlock.conf' --exclude 'hyprpaper.conf' --exclude 'scripts/osd.sh' "$C/hypr/" hypr/ rsync -a --delete "$C/dms/plugins/networkEditor/" dms/plugins/networkEditor/ cp -f "$C/dms/settings.json" dms/settings.json cp -f "$C/systemd/user/hyprland-session.target" systemd/user/ cp -f "$C/kitty/kitty.conf" kitty/kitty.conf git status --short