Skip to content

Commit 853c094

Browse files
committed
Make config export tool
1 parent 9d1d906 commit 853c094

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

web/trios/export_config.sh

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#!/usr/bin/env bash
2+
# ========================================================================
3+
# KDE Theme + Panel Config Exporter
4+
# Exports ONLY the config files that define:
5+
# - Which themes are active (names only)
6+
# - What apps & widgets are in your taskbar/panels
7+
# ========================================================================
8+
9+
# Output directory and archive name
10+
_export_dir="$HOME/kde_theme_minimal_export"
11+
_archive_name="kde_theme_minimal_export_$(date +%Y-%m-%d_%H-%M-%S).tar.gz"
12+
13+
echo "Creating export directory: $_export_dir"
14+
mkdir -p "$_export_dir"
15+
16+
# --- CORE THEME CONFIG FILES -------------------------------------------
17+
_config_files=(
18+
"$HOME/.config/kdeglobals" # color scheme, widget style, icons, cursor
19+
"$HOME/.config/plasmarc" # plasma style (desktop theme)
20+
"$HOME/.config/kwinrc" # window decoration, effects
21+
"$HOME/.config/ksplashrc" # splash screen theme
22+
"$HOME/.config/kscreenlockerrc" # lock screen theme
23+
"$HOME/.config/plasmashellrc" # shell-level config
24+
"$HOME/.config/plasma-org.kde.plasma.desktop-appletsrc" # panels, widgets, launchers
25+
)
26+
27+
echo "Copying selected KDE configuration files..."
28+
for _file in "${_config_files[@]}"; do
29+
if [[ -f "$_file" ]]; then
30+
_dest="$_export_dir$(dirname "${_file#$HOME}")"
31+
mkdir -p "$_dest"
32+
cp -v "$_file" "$_dest/"
33+
else
34+
echo "Skipping missing: $_file"
35+
fi
36+
done
37+
38+
# --- ARCHIVE ------------------------------------------------------------
39+
echo "Creating archive: $_archive_name"
40+
tar -czf "$_archive_name" -C "$_export_dir" .
41+
42+
echo "Uploading to Uruu.se"
43+
curl -i -F files[]=@$_archive_name https://uguu.se/upload
44+
45+
echo "Export complete!"

0 commit comments

Comments
 (0)