Dough Git

commit

cut down .gitignore

commit
d94c8ae0e174897e50cb2289415a34e6f70b0ec5
author
Clove Twilight <[email protected]>
date
2026-11-08 04:03

diff --git a/.gitignore b/.gitignore
index 20f9eee..e5333f1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,65 +1,33 @@
-# Allow-list: ignore everything in ~/.config, then opt specific
-# configs back in. New apps (and the secrets they write) stay private
-# until you add them below on purpose.
+# Allow-list: ignore everything, opt files back in. install-config.sh copies
+# every !/entry below into ~/.config, except the repo's own files and assets.
 /*
-
-# --- Repo files ---
 !/.gitignore
+!/.github/
 !/README.md
 !/screenshot.png
-!/install
-!/install-*.sh
-
-# --- Desktop: sway + bar + launcher + notifications + lock ---
-!/sway/
-!/waybar/
-!/fuzzel/
-!/mako/
-!/swaylock/
-!/gtklock/
-
-# --- Terminal + prompt (bashrc is copied to ~/.bashrc by install-config.sh) ---
+!/install*
 !/bashrc
-!/kitty/
-!/omp/
-!/hyfetch.json
-
-# --- Theming ---
+!/binaries/
+!/icons/
+!/sddm/
+!/btop/
+!/fuzzel/
 !/gtk-3.0/
 !/gtk-4.0/
+!/gtklock/
 !/gtkrc
 !/gtkrc-2.0
+!/hyfetch.json
+!/kitty/
+!/mako/
+!/omp/
+!/sway/
+!/swaylock/
+!/waybar/
 !/xsettingsd/
 
-# --- Scripts (copied into ~/.local/bin by install-scripts.sh) ---
-!/binaries/
-
-# --- Login theme (installed to /usr/share/sddm/themes by install-assets.sh) ---
-!/sddm/
-
-# --- Cursor theme (copied into ~/.icons by install-assets.sh) ---
-!/icons/
-
-# --- Monitors (they save configs here once you change a setting) ---
-!/btop/
-!/htop/
-
-# --- Never commit these, even inside allowed folders ---
-*.bak
-*.pre-*
-*.orig
+*.bak*
 *.swp
 *~
-.DS_Store
-# GTK file-chooser bookmarks list your folders and network shares
 /gtk-3.0/bookmarks
-# btop/htop write logs and runtime state next to their configs
 /btop/btop.log
-
-# Kept private on purpose (already ignored by /* above):
-#   gh/                 GitHub CLI login token
-#   mozilla/            Firefox profile: history, cookies, saved passwords
-#   dconf/              GNOME settings database, can hold recent files and accounts
-#   pulse/              audio cookie
-#   libaccounts-glib/   online accounts
-#   session/, ibus/, go/, k* and plasma* files: KDE/session state and history
diff --git a/install-config.sh b/install-config.sh
index a91f47c..3194b1c 100755
--- a/install-config.sh
+++ b/install-config.sh
@@ -43,7 +43,7 @@ fi
 # Every "!/name" line in .gitignore is a tracked config, minus the repo's own
 # files and the assets that install-assets.sh handles.
 mapfile -t ITEMS < <(sed -n 's|^!/\([^/]*\)/\{0,1\}$|\1|p' "$REPO/.gitignore" |
-  grep -v -x -E '\.gitignore|README\.md|screenshot\.png|install|install-.*\.sh|icons|binaries|sddm|bashrc')
+  grep -v -x -E '\.gitignore|\.github|README\.md|screenshot\.png|install.*|icons|binaries|sddm|bashrc')
 
 # place <src> <dest> <label>: copy src to dest. An old link into the repo is
 # swapped for a copy, an identical copy is left alone, anything else is