mirror of
https://github.com/getcompanion-ai/computer-guest.git
synced 2026-04-15 09:01:12 +00:00
feat: replace openbox with XFCE4 + Plank desktop stack
This commit is contained in:
parent
f028880bc6
commit
221cbf0588
17 changed files with 224 additions and 27 deletions
28
desktop/scripts/apply-desktop-profile.sh
Normal file
28
desktop/scripts/apply-desktop-profile.sh
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
: "${HOME:=/home/node}"
|
||||
: "${XDG_CONFIG_HOME:=$HOME/.config}"
|
||||
: "${XDG_STATE_HOME:=$HOME/.local/state}"
|
||||
|
||||
PROFILE_VERSION="v1"
|
||||
PROFILE_ROOT="/opt/desktop"
|
||||
MARKER_DIR="$XDG_STATE_HOME/microagent/desktop"
|
||||
MARKER_FILE="$MARKER_DIR/desktop-${PROFILE_VERSION}.seeded"
|
||||
|
||||
if [ -f "$MARKER_FILE" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
mkdir -p "$MARKER_DIR" "$XDG_CONFIG_HOME"
|
||||
|
||||
# XFCE config
|
||||
rm -rf "$XDG_CONFIG_HOME/xfce4"
|
||||
cp -R "$PROFILE_ROOT/xfce" "$XDG_CONFIG_HOME/xfce4"
|
||||
|
||||
# Plank config
|
||||
mkdir -p "$XDG_CONFIG_HOME/plank"
|
||||
cp -R "$PROFILE_ROOT/plank/." "$XDG_CONFIG_HOME/plank/"
|
||||
|
||||
touch "$MARKER_FILE"
|
||||
echo "Applied desktop profile: ${PROFILE_VERSION}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue