Kris Lamoureux
b3e232451c
- Upgraded project to Debian 12 - .vscode added to .gitignore - LICENSE formatting updated - Copyright refreshed for 2023 - Added Libvirt settings - Refactored packages to inventory-specific - Committed missing autostart-scripts
12 lines
399 B
Django/Jinja
12 lines
399 B
Django/Jinja
#!/bin/bash
|
|
|
|
PINNED="{% for item in pinned %}{{ item }}{{ ',' if not loop.last else '' }}{% endfor %}"
|
|
FILE="~/.config/plasma-org.kde.plasma.desktop-appletsrc"
|
|
HEADER="[Containments][2][Applets][5][Configuration][General]"
|
|
SECTIONUNDER="[Containments][2][Applets][6]"
|
|
if [ -f "$FILE" ]; then
|
|
if ! grep -q "$PINNED" "$FILE"; then
|
|
sed -i "/^$HEADER\nlaunchers=.*/i\n\n$SECTIONUNDER" "$FILE"
|
|
fi
|
|
fi
|