From 613f4a473db5a891f3192c5d692e711238a24615 Mon Sep 17 00:00:00 2001 From: Michiel Ryvers Date: Wed, 27 Aug 2025 11:08:16 +0200 Subject: [PATCH] Don't hardcode snapper configs, read the config list first --- bin/omarchy-snapshot | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/omarchy-snapshot b/bin/omarchy-snapshot index b4d78f11..3813ef5f 100755 --- a/bin/omarchy-snapshot +++ b/bin/omarchy-snapshot @@ -16,7 +16,10 @@ case "$COMMAND" in create) DESC="$(omarchy-version)" - for config in root home; do + # Get existing snapper config names from CSV output + mapfile -t CONFIGS < <(sudo snapper --csvout list-configs | awk -F, 'NR>1 {print $1}') + + for config in "${CONFIGS[@]}"; do sudo snapper -c "$config" create -c number -d "$DESC" done ;;