workstation/roles/common/templates/pinnedapps.sh.j2
Kris Lamoureux b3e232451c
Upgrade to Debian 12, with minor updates
- 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
2023-06-13 01:04:39 -04:00

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