mirror of
https://github.com/getcompanion-ai/computer-guest.git
synced 2026-04-15 05:02:05 +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
BIN
desktop/assets/wallpaper.png
Normal file
BIN
desktop/assets/wallpaper.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
2
desktop/plank/dock1/launchers/chromium.dockitem
Normal file
2
desktop/plank/dock1/launchers/chromium.dockitem
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[PlankDockItemPreferences]
|
||||
Launcher=file:///usr/share/applications/chromium.desktop
|
||||
2
desktop/plank/dock1/launchers/thunar.dockitem
Normal file
2
desktop/plank/dock1/launchers/thunar.dockitem
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[PlankDockItemPreferences]
|
||||
Launcher=file:///usr/share/applications/thunar.desktop
|
||||
2
desktop/plank/dock1/launchers/xfce4-terminal.dockitem
Normal file
2
desktop/plank/dock1/launchers/xfce4-terminal.dockitem
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[PlankDockItemPreferences]
|
||||
Launcher=file:///usr/share/applications/xfce4-terminal.desktop
|
||||
21
desktop/plank/dock1/settings
Normal file
21
desktop/plank/dock1/settings
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
[PlankDockPreferences]
|
||||
Alignment=3
|
||||
AutoPinning=true
|
||||
CurrentWorkspaceOnly=false
|
||||
DockItems=xfce4-terminal.dockitem;;thunar.dockitem;;chromium.dockitem
|
||||
HideDelay=0
|
||||
HideMode=3
|
||||
IconSize=48
|
||||
ItemsAlignment=3
|
||||
LockItems=true
|
||||
Monitor=
|
||||
Offset=0
|
||||
PinnedOnly=false
|
||||
Position=3
|
||||
PressureReveal=false
|
||||
ShowDockItem=false
|
||||
Theme=Transparent
|
||||
TooltipsEnabled=true
|
||||
UnhideDelay=0
|
||||
ZoomEnabled=true
|
||||
ZoomPercent=150
|
||||
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}"
|
||||
3
desktop/xfce/terminal/terminalrc
Normal file
3
desktop/xfce/terminal/terminalrc
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[Configuration]
|
||||
FontName=DejaVu Sans Mono 11
|
||||
FontUseSystem=FALSE
|
||||
24
desktop/xfce/xfconf/xfce-perchannel-xml/xfce4-desktop.xml
Normal file
24
desktop/xfce/xfconf/xfce-perchannel-xml/xfce4-desktop.xml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<channel name="xfce4-desktop" version="1.0">
|
||||
<property name="desktop-icons" type="empty">
|
||||
<property name="style" type="int" value="0"/>
|
||||
</property>
|
||||
<property name="backdrop" type="empty">
|
||||
<property name="screen0" type="empty">
|
||||
<property name="monitor0" type="empty">
|
||||
<property name="image-path" type="string" value="/opt/desktop/assets/wallpaper.png"/>
|
||||
<property name="image-style" type="int" value="5"/>
|
||||
<property name="image-show" type="bool" value="true"/>
|
||||
</property>
|
||||
<property name="monitor1" type="empty">
|
||||
<property name="image-path" type="string" value="/opt/desktop/assets/wallpaper.png"/>
|
||||
<property name="image-style" type="int" value="5"/>
|
||||
<property name="image-show" type="bool" value="true"/>
|
||||
</property>
|
||||
</property>
|
||||
</property>
|
||||
<property name="desktop-menu" type="empty">
|
||||
<property name="show" type="bool" value="true"/>
|
||||
</property>
|
||||
</channel>
|
||||
6
desktop/xfce/xfconf/xfce-perchannel-xml/xfce4-panel.xml
Normal file
6
desktop/xfce/xfconf/xfce-perchannel-xml/xfce4-panel.xml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<channel name="xfce4-panel" version="1.0">
|
||||
<property name="panels" type="array"/>
|
||||
<property name="configver" type="int" value="2"/>
|
||||
</channel>
|
||||
9
desktop/xfce/xfconf/xfce-perchannel-xml/xfwm4.xml
Normal file
9
desktop/xfce/xfconf/xfce-perchannel-xml/xfwm4.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<channel name="xfwm4" version="1.0">
|
||||
<property name="general" type="empty">
|
||||
<property name="theme" type="string" value="Greybird-dark"/>
|
||||
<property name="title_alignment" type="string" value="center"/>
|
||||
<property name="use_compositing" type="bool" value="false"/>
|
||||
</property>
|
||||
</channel>
|
||||
27
desktop/xfce/xfconf/xfce-perchannel-xml/xsettings.xml
Normal file
27
desktop/xfce/xfconf/xfce-perchannel-xml/xsettings.xml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<channel name="xsettings" version="1.0">
|
||||
<property name="Net" type="empty">
|
||||
<property name="ThemeName" type="string" value="Greybird-dark"/>
|
||||
<property name="IconThemeName" type="string" value="elementary-xfce-dark"/>
|
||||
<property name="FallbackIconTheme" type="string" value="gnome"/>
|
||||
</property>
|
||||
<property name="Xft" type="empty">
|
||||
<property name="DPI" type="int" value="96"/>
|
||||
<property name="Antialias" type="int" value="1"/>
|
||||
<property name="Hinting" type="int" value="1"/>
|
||||
<property name="HintStyle" type="string" value="hintslight"/>
|
||||
<property name="RGBA" type="string" value="rgb"/>
|
||||
<property name="Lcdfilter" type="string" value="lcddefault"/>
|
||||
</property>
|
||||
<property name="Gtk" type="empty">
|
||||
<property name="CursorThemeName" type="string" value="DMZ-White"/>
|
||||
<property name="CursorThemeSize" type="int" value="24"/>
|
||||
<property name="DecorationLayout" type="string" value="menu:minimize,maximize,close"/>
|
||||
<property name="FontName" type="string" value="Noto Sans 9"/>
|
||||
<property name="IconSizes" type="string" value="gtk-button=16,16"/>
|
||||
</property>
|
||||
<property name="Xfce" type="empty">
|
||||
<property name="SyncThemes" type="bool" value="true"/>
|
||||
</property>
|
||||
</channel>
|
||||
Loading…
Add table
Add a link
Reference in a new issue