Skip to content

Commit

Permalink
xconf2: clone infrastlabs/dotfiles; +xfConf
Browse files Browse the repository at this point in the history
xconf2: \cp -a

s

s

s

xconf2: * > .

/home/headless/.

dst="/home/headless/"

xconf2: up

up xconf2

XCONF2 up
  • Loading branch information
sam#gemmi-win10 committed Apr 28, 2024
1 parent b4e1d3b commit 084463b
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion app/src/xconf2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $RUN \
find /home/headless/.config |wc; \
mkdir -p /home/headless/.config/ibus/rime/; \
ln -s /usr/share/rime-data/wubi_pinyin.schema.yaml /home/headless/.config/ibus/rime/; \
chown -R headless:headless /home/headless/.config;
chown -R headless:headless /home/headless/.;
# # \ ##@entry.sh
# # ibus env
# # 冗余? 复用/.env?
Expand All @@ -41,3 +41,39 @@ kill -9 `ps -ef |grep dbus |grep -v grep |awk '{print $2}'`
# skel: copy
\cp -a /etc/skel/.config/* /home/headless/.config/
chown -R headless:headless /home/headless/.config;

$RUN \
echo "curl oh-my-bash.." && gosu headless bash -c "$(curl -k --connect-timeout 38 -fsSL https://gitee.com/g-system/oh-my-bash/raw/sam-custom/tools/install.sh)"; \
rm -rf /home/headless/.oh-my-bash/.git;
# danger!
bash -c 'cd /home/headless/.oh-my-bash/themes && rm -rf `ls |grep -v "axin\|sh$"` || echo "onmybash not exist, skip clear"'; \
\
sed -i "s^OSH_THEME=\"font\"^OSH_THEME=\"axin\"^g" /home/headless/.bashrc;
# sed -i "s^value=\"gnome\"^value=\"Papirus-Bunsen-grey\"^g" /home/headless/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml; \


rm -rf /tmp/dots; git clone --depth=1 https://gitee.com/infrastlabs/dotfiles /tmp/dots
cd /tmp/dots
chmod +x ./dot/Desktop/* ./bin/*
ls -la
\cp -a ./bin/* /usr/bin/
dst="/etc/skel/"
\cp -a ./dot/. $dst
\cp -a ./xf/. $dst
\cp -a ./.mint-artwork-xfce/. $dst
#
\cp -a $dst/. /home/headless/; chown -R headless:headless /home/headless/.;
rm -rf /tmp/dots;

# wget -qO
$RUN cd /home/headless/.config/plank/dock1/launchers; rm -f ristretto* geany* flameshot*; \
\
curl -k -fsSL -o /usr/share/backgrounds/xfce/xfce-teal.png https://gitee.com/infrastlabs/docker-headless/raw/dev/_doc/assets/bg/bg-debian-liteblue.png; \
curl -k -fsSL -o /usr/share/backgrounds/xfce/xfce-pure-blue.jpg https://gitee.com/infrastlabs/docker-headless/raw/dev/_doc/assets/bg/pure-blue.jpg;
# \
# 清理ubt自带图标, keep项: hicolor
# 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" /home/headless/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml; \
sed -i "s^xfce-teal.png^xfce-pure-blue.jpg^g" /home/headless/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml;

0 comments on commit 084463b

Please sign in to comment.