-
Notifications
You must be signed in to change notification settings - Fork 0
/
refresh.sh
54 lines (46 loc) · 1.86 KB
/
refresh.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
cur=$(cd "$(dirname "$0")"; pwd)
cd $cur
chmod +x ./dot/Desktop/* ./bin/*
ls -la
# bin
\cp -a ./bin/* /usr/bin/
# /etc: dbus-1
\cp -a ./etc/* /etc/
# dots: /etc/skel
dst=/etc/skel
\cp -a ./dot/. $dst/
\cp -a ./xf/. $dst/
\cp -a ./.mint-artwork-xfce/. $dst/
# dconf: ibus, plank, engrampa; dconf dump / > xx.ini
mkdir -p /etc/dconf/db;\
cat dconf.ini |grep -Ev '^;' > /tmp/.dconf.ini; \
# gosu_x2; TODO: osproc > 2 err; @arm64
gosu headless bash -c "dbus-launch dconf reset -f /; dbus-launch dconf load / < /tmp/.dconf.ini; ";\
dbus-launch dconf update;
# plank-theme: clear3d
mkdir -p /usr/share/plank/themes/Default
\cp -a clear3d.theme /usr/share/plank/themes/Default/dock.theme
# env
: > /.env2
cat env |egrep -v "^#|^$" |while read one; do
echo "export $one" >> /.env2
done
# bg,icon,theme: wget -qO
$RUN cd /etc/skel/.config/plank/dock1/launchers && rm -f ristretto* geany* flameshot*; \
\
export assets_repo=https://gitee.com/infrastlabs/docker-headless; \
mkdir -p /usr/share/backgrounds/xfce/; \
curl -k -fsSL -o /usr/share/backgrounds/xfce/xfce-teal.png $assets_repo/raw/dev/_doc/assets/bg/bg-debian-liteblue.png; \
curl -k -fsSL -o /usr/share/backgrounds/xfce/xfce-pure-blue.jpg $assets_repo/raw/dev/_doc/assets/bg/pure-blue.jpg;
# \
# 清理ubt自带图标, keep项: hicolor ##TODO @pkg-installer
# locolor gnome bloom
# cd /usr/share/icons && rm -rf Humanity* ubuntu-mono* LoginIcons Tango; \
# \
sed -i "s^value=\"Mint-Y\"^value=\"Papirus-Bunsen-bluegrey\"^g" /etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml; \
sed -i "s^xfce-teal.png^xfce-pure-blue.jpg^g" /etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml;
# cp from Dockerfile.xx
bash /etc/skel/.fluxbox/fluxbox.sh;
# skel: copy
\cp -a /etc/skel/. /home/headless/; chown -R headless:headless /home/headless;